Last active
May 30, 2017 17:19
-
-
Save Dayof/a4c59ac4847ac998c6b1ab1db33b0f55 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
class StartApp(toga.App): | |
def startup(self): | |
self.main_window = toga.MainWindow(self.name) | |
self.main_window.app = self | |
box1 = toga.Box(children=[toga.Label('test')]) | |
box2 = toga.Box(children=[toga.Label('split_container')]) | |
main_content = toga.OptionContainer() | |
main_content.add('box1', box1) | |
main_content.add('box2', box2) | |
self.main_window.content = main_content | |
self.main_window.show() | |
def main(): | |
app = StartApp('OptionContainer 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