Skip to content

Instantly share code, notes, and snippets.

@Dayof
Created July 27, 2017 07:46
Show Gist options
  • Save Dayof/2fc470d1d6d92aedc8b1488f159d8e5a to your computer and use it in GitHub Desktop.
Save Dayof/2fc470d1d6d92aedc8b1488f159d8e5a to your computer and use it in GitHub Desktop.
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
outer_box = toga.Box()
box1 = toga.Box(children=[toga.Label('test')])
box2 = toga.Box(children=[toga.Label('split_container')])
split_container = toga.SplitContainer(style=CSS(height=1000))
split_container.content = [box1, box2]
footer = toga.Box(children=[toga.Label('BOXXXXX')])
outer_box.add(split_container)
outer_box.add(footer)
self.main_window.content = outer_box
self.main_window.show()
def main():
app = StartApp('SplitContainer Style 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