MCPcopy Index your code
hub / github.com/rawpython/remi / main

Method main

remi/server.py:448–453  ·  view source on GitHub ↗

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, *_)

Source from the content-addressed store, hash-verified

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

Callers 15

do_GETMethod · 0.95
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45
test_mainMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36
test_mainMethod · 0.36