mirror of
https://github.com/Death916/deathclock.git
synced 2026-04-10 03:04:40 -07:00
added time nd semi calendar
This commit is contained in:
parent
343b76948c
commit
e9c49c50c9
1 changed files with 17 additions and 5 deletions
|
|
@ -6,7 +6,8 @@ import dearpygui.dearpygui as dpg
|
|||
class clock():
|
||||
|
||||
def time_and_date(self):
|
||||
print(time.asctime())
|
||||
return time.asctime()
|
||||
|
||||
|
||||
def alarm(self):
|
||||
alarm_time = None
|
||||
|
|
@ -25,15 +26,26 @@ class weather():
|
|||
|
||||
class gui():
|
||||
def show_time(self):
|
||||
|
||||
clock1 = clock()
|
||||
timenow = clock1.time_and_date()
|
||||
with dpg.window(label="time"):
|
||||
dpg.add_text(time.asctime())
|
||||
dpg.start_dearpygui()
|
||||
dpg.add_text(timenow)
|
||||
|
||||
|
||||
def show_cur_weather(self):
|
||||
with dpg.window(label="Current Weather"):
|
||||
dpg.load_image()
|
||||
|
||||
def alarm_button(self):
|
||||
with dpg.window(label="Set Alarm"):
|
||||
dpg.add_date_picker(track_offset=.5, indent=6)
|
||||
|
||||
|
||||
def main():
|
||||
gui1 = gui()
|
||||
gui1.show_time()
|
||||
gui1.alarm_button()
|
||||
dpg.start_dearpygui()
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue