Alarm Demo : Alarm « GUI Tk « Python
from Tkinter import * class Alarm(Frame): def repeater(self): self.bell() self.after(self.msecs, self.repeater) def __init__(self): Frame.__init__(self) self.msecs = 1000 self.pack() stopper = Button(self, text='Stop the beeps!', command=self.quit) stopper.pack() stopper.config(bg='navy', fg='white', bd=8) self.stopper = stopper self.repeater() if __name__ == '__main__': Alarm().mainloop() |
'IT' 카테고리의 다른 글
ANDROID スピナー (0) | 2021.07.04 |
---|---|
【PHPMyAdmin】PHPMyAdminでデータをCSVでエクスポートする方法 (0) | 2021.07.03 |
androidcalendarview (0) | 2021.07.03 |
mysql 12.5.2 正規表現 (0) | 2021.07.01 |
구인구직 【品川】IT Application Support Specialist(Enabling) (0) | 2021.07.01 |
댓글