Skip to content

Instantly share code, notes, and snippets.

@Dayof
Created July 10, 2017 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dayof/e48de03372c21db554840362c817fc15 to your computer and use it in GitHub Desktop.
Save Dayof/e48de03372c21db554840362c817fc15 to your computer and use it in GitHub Desktop.
import toga
class StartApp(toga.App):
def startup(self):
self.main_window = toga.MainWindow(self.name)
self.main_window.app = self
main_content = toga.Box()
bar = toga.ProgressBar(max=100, value=50)
label = toga.Label('Bar')
main_content.add(label)
main_content.add(bar)
self.main_window.content = main_content
self.main_window.show()
def main():
app = StartApp('ProgressBar Test', 'org.pybee.test')
app.main_loop()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment