Re: [Tutor] Calling variable from two different classes

2009-02-13 Thread Alan Gauld
"Hi" wrote I want to be able to call a variable from one of my classes to my main class (interface layout) and have it update every minute. Sp provuide an update method in the class that has the variable. Do not pass the variable to another class to update it, Objects should always do it to

Re: [Tutor] Calling variable from two different classes

2009-02-13 Thread Hi
I want to be able to call a variable from one of my classes to my main class (interface layout) and have it update every minute. I am using Python and wxPython. Is it better to be in the main class and read the variable or should I have the class the variable resides in to send the variable along t