Making a control frame in python with Tkinter
Hello all,
I am working on a simulation where I need to have a control frame running alongside the simulation. I wrote the simulation in pyhton, so I can't use nib files and was wondering if anyone can help me out with some simple code to get a second frame working in breve.
Very simply, this line of code, called in the controller __init__ return the error below
root=tk()
returns
Traceback (most recent call last):
File "/Users/aogden/Workspace/Dropbox/antSim_simp.py", line 288, in ?
myController()
File "/Users/aogden/Workspace/Dropbox/antSim_simp.py", line 32, in __init__
root=Tk()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/Tkinter.py", line 1560, in __init__
baseName = os.path.basename(sys.argv[0])
IndexError: list index out of range
An error occurred while executing the file "/Users/aogden/Workspace/Dropbox/antSim_simp.py"
Any help?
Thanks
- Login to post comments
