You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
438 B

  1. '''
  2. Main runner entry point for Gooey.
  3. '''
  4. import wx
  5. from gooey.gui.lang import i18n
  6. from gooey.gui.controller import Controller
  7. from gooey.gui import image_repository
  8. def run(build_spec):
  9. app = wx.App(False)
  10. i18n.load(build_spec['language_dir'], build_spec['language'])
  11. image_repository.patch_images(build_spec['image_dir'])
  12. controller = Controller(build_spec)
  13. controller.run()
  14. app.MainLoop()