Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39718

tkinter / gui

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> (permalink)
Subject tkinter / gui
From Rex Macey <xer0925@gmail.com>
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

Show key headers only | View raw


Here is one general and one specific question about creating GUIs using tkinter 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 object.  Browsing the web I see that a lot of examples on GUIs have the forms put into classes.  I'm not clear why.  Why is that? Second, I've created a form 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 Button Release event.  I know this works because I can print the value selected 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. 

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

tkinter / gui Rex Macey <xer0925@gmail.com> - 2013-02-23 14:50 -0800
  Re: tkinter / gui inq1ltd <inq1ltd@inqvista.com> - 2013-02-24 12:00 -0500
  Re: tkinter / gui Rick Johnson <rantingrickjohnson@gmail.com> - 2013-02-24 20:03 -0800

csiph-web