MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / start_stop

Method start_stop

scripts/python/ui/ui_demo.py:332–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

330 self.timer.start()
331
332 def start_stop(self):
333 if self.running:
334 self.running = False
335 self.start_stop_button.label = "Start"
336 self.progress_bar.fraction = 0
337 if self.timer:
338 self.timer.cancel()
339 self.timer = None
340 else:
341 self.running = True
342 self.start_stop_button.label = "Stop"
343 self.timer = threading.Timer(0.05, self.timer_callback)
344 self.timer.start()
345
346
347# Create testbed and windows

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected