15.04.2013 Views

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

either from the Tkinter topics page at the main <strong>Python</strong> Web site or the abundant number of Tcl/Tk<br />

printed and online resources (some of which are available in AppendixB). However, we will present<br />

several simple examples to help you get started.<br />

<strong>Core</strong> Note: Default arguments are your friend<br />

GUI development really takes advantage of default arguments in<br />

<strong>Python</strong> because there are numerous default actions in Tkinter widgets.<br />

Unless you know every single option available to you for every single<br />

widget you are using, it's best to start out by setting only the<br />

parameters you are aware of and letting the system handle the rest.<br />

These defaults were chosen carefully. If you do not provide these<br />

values, do not worry about your applications appearing odd on the<br />

screen. They were created with an optimized set of default arguments<br />

as a general rule, and only when you know how to exactly customize<br />

your widgets should you use values other than the default.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!