Page 272 -
P. 272
building a graphical user interface
Test Drive There’s a convention in the Python
programs with a “.pyw” extension,
Let’s take your first GUI program for a test drive. With your tkinter code world that suggests naming tkinter
entered into IDLE, save it as tvn.pyw and press F5 to see how it looks:
as opposed to the usual “.py”. This
helps your operating system run your
tkinter programs properly, especially on
Your code in IDLE Windows.
There's your GUI window...
Looking good, eh?
...and there are
your two buttons.
That’s one nice, professional-looking GUI! What do the
people at TVN think?
you are here 4 237