On 06/02/06, Paul Kraus <[EMAIL PROTECTED]> wrote:
> Thanks for the fast response. This was exactly what I was looking for. One
> last question how would I 'call the method keys'. from the example above.

If b is a Tkinter.Button, then it means call b.keys().

eg:

>>> from Tkinter import *
>>> tk = Tk()
>>> b = Button(tk, text='Hello world!')
>>> b.keys()
['activebackground', 'activeforeground', 'anchor', 'background', 'bd',
'bg', 'bitmap', 'borderwidth', 'command', 'compound', 'cursor',
'default', 'disabledforeground', 'fg', 'font', 'foreground', 'height',
'highlightbackground', 'highlightcolor', 'highlightthickness',
'image', 'justify', 'overrelief', 'padx', 'pady', 'relief',
'repeatdelay', 'repeatinterval', 'state', 'takefocus', 'text',
'textvariable', 'underline', 'width', 'wraplength']

So, these are the possible things you can configure with a Tkinter.Button.

Also, the online documentation at python.org is very good.  I
recommend going to http://www.python.org/doc/ and downloading the
current documentation.  You'll get a bunch of HTML files which you can
put somewhere.  Then set up a bookmark for the main index file.  I
have it on my browser's toolbar and I use it all the time :-)

The Library Reference is particularly useful.  For example, if you
want to know about all the methods specific to lists, you can read the
section on mutable sequence types:
http://docs.python.org/lib/typesseq-mutable.html

HTH!

--
John.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to