Hello,
I'm writing a software for our future robotic telescope in Python and started to make the GUI.
I'm beginner in Tkiner and have a easy question. How to refresh this loop (and print the time) every
second?
 

Here the code:

from Tkinter import *
import win32com.client
Scope = win32com.client.dynamic.Dispatch('ScopeSim.Telescope')
root=Tk()

Label(root, text=Scope.SiderealTime).grid(row=0, sticky=W)

root.mainloop()

-----
Scope.SiderealTime is LST from a telescope simulator, but it is only an exemple. You can also use system time for explaining.
 

Thank You!

Regards,
Aleksandar
 
 
 
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to