Tkinter & Tkconstants
- From: "codecraig" <codecraig@xxxxxxxxx>
- Date: 18 Apr 2005 13:09:26 -0700
Hi,
I was reading through the Tkinter tutorial at
http://www.pythonware.com/library/tkinter/introduction/index.htm ...and
it mentions that by doing,
from Tkinter import *
you have access to the constants in Tkconstants, since Tkinter imports
it automatically.
However, in the shell if I do..
from Tkinter import *
print Tkinter.HORIZONTAL
I get an error..NameError: Tkinter is not defined
any ideas? However, if I do,
import Tkconstants
print Tkconstants.HORIZTONAL
I get what i expect. but according to the tutorial i should only need
Tkinter.
Thanks.
.
- Follow-Ups:
- Re: Tkinter & Tkconstants
- From: codecraig
- Re: Tkinter & Tkconstants
- From: tiissa
- Re: Tkinter & Tkconstants
- Prev by Date: def a((b,c,d),e):
- Next by Date: Re: def a((b,c,d),e):
- Previous by thread: def a((b,c,d),e):
- Next by thread: Re: Tkinter & Tkconstants
- Index(es):
Relevant Pages
|
Loading