[prog] Quick Python question
David Sumbler
david at aeolia.co.uk
Thu Jul 14 11:21:43 UTC 2011
On Thu, 2011-07-14 at 16:42 +0530, Chris Wilson wrote:
> Hi David,
>
> On Thu, 14 Jul 2011, David Sumbler wrote:
>
> > But if I type help(tkinter.Message.config) I get
> >
> > Help on function configure in module tkinter:
> >
> > configure(self, cnf=None, **kw)
> > Configure resources of a widget.
> >
> > The values for resources are specified as keyword
> > arguments. To get an overview about
> > the allowed keyword arguments call the method keys.
> >
> > I may well be being a bit stupid here, but try as I might, I can't
> > figure out what I am supposed to do to get the information I want. What
> > does it mean by "call the method keys"? Everything I have tried doesn't
> > work.
>>> tkinter.Message.keys()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: keys() takes exactly 1 positional argument (0 given)
>>> keys(tkinter.Message)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'keys' is not defined
David
--
David Sumbler <david at aeolia.co.uk>
More information about the Programming
mailing list