예제 #1
0
 def create_server(self):
     """Attempts to create a new server instance."""
     try:
         ip = ServerTools.get_local_ip()
         self.deamon = Pyro4.Daemon(host=ip, port=48280)
         self.uri = self.deamon.register(self, "uri")
         self.deamon.requestLoop()
     except:
         pass
예제 #2
0
 def __init__(self):
     self.ip = str(ServerTools.get_local_ip())
     Popen(["python", "rtsserver.py"])
     try:
         self.connect_server()
     except:
         ServerTools.erbox("Erreur de connexion",
                           "Le serveur n'a pas pu être rejoint.\n" +
                           "Le gestionnaire de serveur va maintenant fermer.")
     else:
         self.gui = ServerView(self.server, ns)
         self.gui_update()
         self.gui.mainloop()