Pmw Use and Grayson's Book

petercable at gmail.com petercable at gmail.com
Mon Feb 18 03:29:58 EST 2008


On Feb 18, 5:30 am, "W. Watson" <wolf_tra... at invalid.com> wrote:
> I wonder why he uses it?

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

> If I want to run his examples, where do I put the
> lib he includes? Same folder as the example?

Library modules (like Pmw) generally belong in site-packages (/usr/lib/
python2.x/site-packages in most unixes... not sure about windows).

HTH,

Pete



More information about the Python-list mailing list