glade- все статьи тега
Поместите цифровые часы в окно pygtk
Привет, У меня есть этот код для цифровых часов с TKinter: #!/usr/bin/python # -*- coding: utf-8 -*- import Tkinter import time def tick(time_old, clock): # get the current local time from the PC time_now = time.strftime('%H:%M:%S') # if time string has changed, update it if time_now != time_old: time_old = time_now clock.config(text = time_now) # calls itself every 200 milliseconds # to update the time display as needed # could use >200 ms, ...