added timer input
This commit is contained in:
@@ -33,10 +33,10 @@ with dpg.window(tag="Primary Window"):
|
||||
dpg.add_button(label="Hold", callback=hold)
|
||||
dpg.add_button(label="Scrub", callback=scrub)
|
||||
dpg.add_button(label="Toggle T- L-", callback=Ttoggle)
|
||||
|
||||
|
||||
dpg.show_metrics()
|
||||
dpg.show_style_editor()
|
||||
with dpg.group(horizontal=True):
|
||||
dpg.add_input_int(label="Hours",min_value=0, max_value=24, width=100, min_clamped=True, max_clamped=True)
|
||||
dpg.add_input_int(label="Minutes",min_value=0, max_value=59, width=100, min_clamped=True, max_clamped=True)
|
||||
dpg.add_input_int(label="Secconds",min_value=0, max_value=59, width=100, min_clamped=True, max_clamped=True)
|
||||
|
||||
dpg.setup_dearpygui()
|
||||
dpg.show_viewport()
|
||||
|
||||
@@ -65,7 +65,7 @@ def pullSpreedsheet(inputCol, inputRow, link):
|
||||
def countdownTime(countTime, onHold):
|
||||
TimeNow = countTime
|
||||
while True:
|
||||
while onHold == False:
|
||||
while not onHold:
|
||||
t1 = monotonic()
|
||||
TimeNow = TimeNow - 1
|
||||
if TimeNow <= 0: # are we counting up?
|
||||
|
||||
Reference in New Issue
Block a user