Re: calling a class method from a menu in a different class

2010-08-03 Thread Chris Hare
Oh and Risk, I know I was calling the class object. class 1 creates the instance object class 2 tries to use the instance object so the problem is how to make class 2 knowledgable of instance object? I guess I could pass the instance object into the class, since class1 creates the instance and

Re: calling a class method from a menu in a different class

2010-08-03 Thread Chris Hare
No offense taken. I'll get getting the Google Python Style Guide today. I'll package up the code tonight and it to the group. Fortunately ( or unfortunately), it is all in one file right now. On Aug 2, 2010, at 10:31 PM, rantingrick wrote: > > Chris, > > It looks as if you are calling a cl

Re: calling a class method from a menu in a different class

2010-08-02 Thread rantingrick
Chris, It looks as if you are calling a class object and not an instance object. However i cannot be for sure because you are using improper Python style. All classes should be capwords. But here again you have used camelcase for the class identifiers "radarWidgets" and "mainDisplay", which is ba

calling a class method from a menu in a different class

2010-08-02 Thread Chris Hare
What I am trying to do is call a class function from a menu, for example displaySubMenu.add_radiobutton(label="Medium", variable=radarPanelSize, command=radarWidgets.refresh) class radarWidgets: def __init__(self,root): self.window = root