Skip to content

Instantly share code, notes, and snippets.

@Dayof
Last active May 30, 2017 12:59
Show Gist options
  • Select an option

  • Save Dayof/1b1fcc8a4b463739a41919a77ee26d89 to your computer and use it in GitHub Desktop.

Select an option

Save Dayof/1b1fcc8a4b463739a41919a77ee26d89 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
outer_box = toga.Box()
box1 = toga.Box(children=[toga.Label('test')])
box2 = toga.Box(children=[toga.Label('split_container')])
split_container = toga.SplitContainer()
split_container.content = [box1, box2]
outer_box.add(split_container)
self.main_window.content = outer_box
self.main_window.show()
def main():
app = StartApp('SplitContainer 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