[NCLUG] Dumb Python Question
Evelyn Mitchell
efm at tummy.com
Tue Jul 30 11:41:01 MDT 2002
* On 2002-07-30 16:28 marciot <marciot at holly.colostate.edu> wrote:
> What's wrong with this line?
>
> popupMenu = Menu(self, tearoff=0)
> popupMenu.add_command(label="water", command=lambda: pass )
>
> Python whines about a syntax error right after "pass". I've tried to RTFM, but
What package is "Menu" from?
> there is so much documentation out there I can't find one that addresses my
> specific problem. There is such a thing as *too* much docs...
pydoc2 'name of package containing Menu'
look for 'add_command'
--
Regards, tummy.com, ltd
Evelyn Mitchell Linux Consulting since 1995
efm at tummy.com Senior System and Network Administrators
http://www.tummy.com/
More information about the NCLUG
mailing list