Skip to content

Instantly share code, notes, and snippets.

@JoshAshby
Created July 9, 2009 17:14
Show Gist options
  • Save JoshAshby/143811 to your computer and use it in GitHub Desktop.
Save JoshAshby/143811 to your computer and use it in GitHub Desktop.
import Tkinter
import math
import thread
def update():
data = 1
while 1:
y = data + 1
data = y
text.set(`data`)
app = Tkinter.Tk()
text = Tkinter.StringVar()
Tkinter.Label(app, textvariable = text).pack()
Tkinter.Button(app, text="start", command = thread.start_new(update, ()) ).pack()
app.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment