backend.py 495 B

12345678910111213141516171819202122232425
  1. import os
  2. import kaute
  3. from jinja2 import Environment, FileSystemLoader
  4. class Backend(kaute.Object):
  5. def __init__(self, app):
  6. super(Backend, self).__init__()
  7. self.app = app
  8. #self.app._AppGUI__templating_environment.globals['function_name'] = function_name
  9. self.app.window.closeEvent = self.closeEvent
  10. return
  11. def closeEvent(self, event):
  12. return
  13. @kaute.Slot()
  14. def system_exit(self):
  15. return
  16. @kaute.Slot()
  17. def index(self):
  18. self.app.template = ('index.html', {})
  19. return