Tkinter help on MacOSX please.
sarmstrong13 at mac.com
Fri Jun 7 20:10:01 CEST 2002
I've installed python, tcl, tk on my MacOSX 10.1.5 system using the
--enable-frameworks configuration. I have a framework for tcl,tk,and python
under my /Library/Frameworks directory. When I run a simple button code in a
from Tkinter import *
root = Tk()
button = Button(root)
button["text"] = "Hello"
I get the following output in my shell(tcsh by the way):
original argv = "python"
original argv = "./ave.py"
modified argv = "python"
modified argv = "./ave.py"
So I then hit Ctrl-C to stop the script and I get the following Traceback
Traceback (most recent call last):
File "./ave.py", line 14, in ?
ter.py", line 929, in mainloop
It looks like it is calling the correct Tkinter Module, but nothing is bein
displayed. If however I enter the code line for line in the Python.app that
I compile, I get the proper button widget. Maybe I'm wrong (because I
definitely do NOT fully understand the Mac OSX Frameworks system yet), but
if the coded is properly calling the correct Tkinter module, it should not
matter whether or not it is done within the Python.app or by calling python
from within Python.app. Is this correct? Is there a way to do this on a Mac?
(other than MacPython wich works only on pre OSX systems and doe not take
advantage of the BSD under OSX)
More information about the Python-list