[Tkinter-discuss] Thanks!
Peter Lacroix
pjlacroix at hotmail.com
Mon May 15 04:56:55 CEST 2006
Thanks Michael! Yes this is what I was wondering about.
Message: 2
Date: Thu, 11 May 2006 18:33:18 +0200
From: Michael Lange <klappnase at web.de>
Subject: Re: [Tkinter-discuss] Radio Buttons
To: tkinter-discuss at python.org
Message-ID: <20060511183318.3139e3ca.klappnase at web.de>
Content-Type: text/plain; charset=US-ASCII
Hi Peter,
do you mean something like this:
def create_widgets(self):
(... snip ...)
self.submit_button = Button(self, text='Submit', command=self.submit)
self.submit_button.grid(row=8, column=0)
def submit(self):
f = open(your_filename_here, 'w')
f.write(self.current_selection_get())
f.close()
The value of the StringVar is updated automatically each time the user
changes the selection.
I hope this helps
Michael
------------------------------
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss at python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
End of Tkinter-discuss Digest, Vol 27, Issue 8
**********************************************
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Tkinter-discuss
mailing list