Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102602
| From | boB Stepp <robertvstepp@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Simple tkinter query about creating a tk,StringVar() failure |
| Date | 2016-02-06 20:40 -0600 |
| Message-ID | <mailman.55.1454812824.2317.python-list@python.org> (permalink) |
| References | <CAJ4+4arcRMjm=4szxqokk1415Li=CYuOSSyPsvumpH2uSMF6AQ@mail.gmail.com> |
On Sat, Feb 6, 2016 at 6:38 PM, <paul.hermeneutic@gmail.com> wrote: > Why does this interactive instantiation fail when it seems to work > when run in a script? You have to establish your root window first: Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tkinter as tk >>> root = tk.Tk() # This will open an empty window. >>> name = tk.StringVar() >>> -- boB
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Simple tkinter query about creating a tk,StringVar() failure boB Stepp <robertvstepp@gmail.com> - 2016-02-06 20:40 -0600
csiph-web