Subclasses of App class *must* declare a main function that will be the entry point of the application. Inside the main function you have to declare the GUI structure and return the root widget.
(self, *_)
| 446 | def _net_interface_ip(self): |
| 447 | return self.headers.get('Host', "%s:%s"%(self.connection.getsockname()[0],self.server.server_address[1])) |
| 448 | def main(self, *_): |
| 449 | """ Subclasses of App class *must* declare a main function |
| 450 | that will be the entry point of the application. |
| 451 | Inside the main function you have to declare the GUI structure |
| 452 | and return the root widget. """ |
| 453 | raise NotImplementedError("Applications must implement 'main()' function.") |
| 454 | |
| 455 | def _idle_loop(self): |
| 456 | """ This is used to exec the idle function in a safe context and a separate thread |