| | | | | We've talked about various kinds of basic Tkinter widgets, from the Button widget to the different kinds of message boxes. In the next hour, we'll discuss more Tkinter widgets (from Radiobuttons to Text), put together a complete application, and demonstrate Toplevel widgets. | | | |
| | | | | Q Why do Windows, X Windows, and Mac widgets all look so different? | | | |
| | | | | A Originally, Windows and X Windows widgets looked fairly similar because they evolved from a common ancestor developed by HP. On X Windows, the HP widgets transformed in a relatively straightforward way into Motif widgets. Windows widgets, influenced by Mac widgets (which grew out of similar objects developed at Xerox's Palo Alto Research labs), mutated into Windows classes, which changed appearance yet again in the transition from Windows 3.1 to Windows 95. The developers of Tk/TCL originally used widgets that looked the same on all three platforms, but recently they have changed to using the native widget sets for the three differing platforms. The reason for the change, I suspect, is that the portable widgets looked so clunky. | | | |
| | | | | Q One kind of widget I see a lot of on Windows is a list combined with a scrollbar. What are these, and are they available in Tkinter? | | | |
| | | | | A These are usually called combo boxes, and they are not available in Tkinter itself. However, Greg McFarlane, in Australia, has put together an extremely nice package called ''Python Megawidgets," which does include combo boxes; it can be found at http://www.dscpl.com.au/pmw/. Greg says, "It consists of a set of base classes and a library of flexible and extensible megawidgets built on this foundation. These megawidgets include notebooks, comboboxes, selection widgets, paned widgets, scrolled widgets, dialog windows, etc." They're also written in pure Python, with no C extensions needed (this is important if you don't have a C compiler on your machine). | | | |
| | | | | 1. What kind of widget operates like a toggle switch? | | | |
|
No comments:
Post a Comment