[Tutor] A little help with TKinter please ....!!

Graeme Andrew glide@slingshot.co.nz
Tue, 20 Aug 2002 21:22:41 +1200


Hi there ...

I am new to TKinter but have managed to write a  basic user interface, I
however am puzzled as to how to get data out of the class ?   See following
code.  Sorry if this is obvious but I am pretty new to this .....

My interface routine is wrapped up in a class and is started with a main
loop call ...  ie

class Install(Frame):
   def __init__(self,parent,myFileName):
     Frame.__init__(self,parent)
     self.pack()
     self.data = 0
     self.make_widgets(self.filecontents)

    .... more methods and code here

Install(None,"textfile").mainloop()

My question is how do I get self.data out of the class and back to the code
after the 'mainloop' call  ?

Many thanks for any help !!

Cheers
Graeme Andrew
New Zealand