Skip to content

Instantly share code, notes, and snippets.

@Dayof
Created May 30, 2017 17:31
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/cbc2ca87c094d924f087f4f975463987 to your computer and use it in GitHub Desktop.
Save Dayof/cbc2ca87c094d924f087f4f975463987 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.OptionContainer(content=[('b1', toga.Box()),
('b2', toga.Box())])
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