Refresh loop

A

Aleksandar Cikota

Hello,

I'm beginner in python. I want to refresh and print Scope.SiderealTime every
second in Tkiner. I have a easy question. How to refresh this loop 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()


Thank You!

Regards,
Aleksandar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,183
Latest member
GarfieldBa

Latest Threads

Top