Python Forum
[Tkinter] Troubles with accessing attr from other class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Troubles with accessing attr from other class
#3
I applied what you have written, thank you.

I want to create a function which will call few functions, but i can't get through it..

    def Few_Functions(self):
        self.Load_Data() ##Located in rents.py
        self.test()    ##Located in comments.py (that's why it cannot be called with self i guess?)
It returns:
Error:
AttributeError: 'Rents_Tab' object has no attribute 'historical_entry_market'
Which is true, because Load_Data() function is located in rents.py and the button is also placed right there, but i want to call function from other file and from other class. What can be done here?

My goal is to click 1 button which will call functions from the classes
Reply


Messages In This Thread
RE: [Tkinter] Troubles with accessing attr from other class - by zarize - Aug-20-2020, 05:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb Using Tkinter With Concurrent.Futures / ThreadPoolExecutor Class AaronCatolico1 1 1,576 Dec-14-2022, 08:01 PM
Last Post: deanhystad
Lightbulb [Tkinter] Tkinter Class Import Module Issue AaronCatolico1 6 3,394 Sep-06-2022, 03:37 PM
Last Post: AaronCatolico1
  [Tkinter] Redirecting all print statements from all functions inside a class to Tkinter Anan 1 2,760 Apr-24-2021, 08:57 AM
Last Post: ndc85430
  tkinter moving an class object with keybinds gr3yali3n 5 3,477 Feb-10-2021, 09:13 PM
Last Post: deanhystad
  [Tkinter] Use function from other class (Tkinter) zarize 8 5,090 Aug-17-2020, 09:47 AM
Last Post: zarize
  Unable fetch fucntion data in class in tkinter jenkins43 2 3,980 Nov-30-2019, 09:47 PM
Last Post: jenkins43
  Tkinter Class pythonenthusiast2 1 2,697 Nov-24-2019, 03:51 AM
Last Post: Larz60+
  tkinter button not accessing the command when clicked jhf2 1 3,726 Nov-23-2019, 10:17 PM
Last Post: DT2000
  Tkinter Gui ScrolledText Insert From Different Class whisperquiet 1 4,411 Jan-08-2019, 09:25 PM
Last Post: Larz60+
  Using a class to create instances of Tkinter Toplevel() windows nortski 2 11,157 Mar-27-2018, 11:44 AM
Last Post: nortski

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020