Created
July 10, 2017 17:46
-
-
Save Dayof/7e4d3bba4907cdd61cf7270ec3b8d678 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import toga | |
from colosseum import CSS | |
class StartApp(toga.App): | |
def startup(self): | |
self.main_window = toga.MainWindow(self.name) | |
self.main_window.app = self | |
main_content = toga.Box(style=CSS(flex_direction='row')) | |
bar = toga.ProgressBar() | |
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