X-Received: by 10.224.175.65 with SMTP id w1mr4539179qaz.7.1361659844046; Sat, 23 Feb 2013 14:50:44 -0800 (PST) X-Received: by 10.49.48.41 with SMTP id i9mr494535qen.36.1361659844019; Sat, 23 Feb 2013 14:50:44 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no4510061qal.0!news-out.google.com!t2ni671qaj.0!nntp.google.com!dd2no2580525qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sat, 23 Feb 2013 14:50:43 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.122.78.83; posting-account=-0CKXAoAAACFHnFd5Ix76lxoh3Lhtj3a NNTP-Posting-Host: 76.122.78.83 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <724fdb01-d042-4e2f-b19e-18df25507abb@googlegroups.com> Subject: tkinter / gui From: Rex Macey Injection-Date: Sat, 23 Feb 2013 22:50:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:39718 Here is one general and one specific question about creating GUIs using tki= nter from a newbie. I have created a class in which to hold some data. I = want to create a GUI to get the data from the user and store it in the obje= ct. Browsing the web I see that a lot of examples on GUIs have the forms p= ut into classes. I'm not clear why. Why is that? Second, I've created a f= orm with a bunch of widgets on it, one of which is a listbox. This is done= with a script, not a class. I've defined a method that responds to a But= ton Release event. I know this works because I can print the value selecte= d in the listbox while within the method. However, I want the value of the= listbox after I've closed the form. How do I get that? Thanks.