Skip to content

Instantly share code, notes, and snippets.

@tcrowson
Last active August 29, 2015 14:06
Show Gist options
  • Save tcrowson/e3d401055739d1a72863 to your computer and use it in GitHub Desktop.
Save tcrowson/e3d401055739d1a72863 to your computer and use it in GitHub Desktop.
Basic Modo Progress Bar
import lx
import time
dialog_svc = lx.service.StdDialog()
mymonitor = lx.object.Monitor(dialog_svc.MonitorAllocate('Some task or other ...'))
mymonitor.Initialize(10)
for x in range(10):
mymonitor.Increment(1)
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment