W
W. Watson
I don't have Grayson's Tkinter book, but I see he uses something called Pmw.
Why is it needed with Tkinter?
Why is it needed with Tkinter?
I don't have Grayson's Tkinter book, but I see he uses something called Pmw.
Why is it needed with Tkinter?
I wonder why he uses it?
If I want to run his examples, where do I put the
lib he includes? Same folder as the example?
He uses it because Pmw does a lot of heavy lifting for you when
designing Tkinter apps. Pmw adds things like widgets pre-populated
with scrollbars and labels and automatic widget/label alignment. I use
Pmw for all but the most trivial Tkinter applications. That said,
there is nothing in Pmw that you couldn't implement yourself in plain
Tkinter, it's just already been done for you. Check out the Pmw site
for lots of examples and details. Also, if you do install the module,
it comes with a demo directory. Run all.py to see Pmw in action.
http://pmw.sourceforge.net
Library modules (like Pmw) generally belong in site-packages (/usr/lib/
python2.x/site-packages in most unixes... not sure about windows).
HTH,
Pete
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.