[Tutor] Executing a GUI from another GUI with a click of a button
i-scream_cones at hotmail.com
Mon Apr 6 21:30:06 CEST 2009
Before I tell you about my problems, I ask for your consideration as I am a newbie at python...
I was having problems as I tried to open another program within a program (both programs are Tkinter UIs)
As for the reference, here is my code:
from Tkinter import * #Imports the Tkinter module
window = Tk()
frame = Frame(window)
clock_command = lambda : showtime()
b3 = Button(frame, text="What time is it?", command=clock_command)
And the following code is the clock.py:
currenttime = ''
clock = Tkinter.Label()
newtime = time.strftime('%H:%M:%S')
if newtime != currenttime:
currenttime = newtime
I know for certain that the "clock.py" works (because i got it from the web.. -_-;;)
but I'm having a real difficulty trying to open clock.py through my real program....
I know you're busy and everything, but I REALLY hope you can help me soon...
Create a cool, new character for your Windows Live™ Messenger.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor