예제 #1
0
 def krpc_connect(self):
     logger.info('Connecting to KSP...')
     try:
         Core.client().connect(ip=self.ip_input.text,
                               rpc_port=int(self.rpc_port_input.text),
                               stream_port=int(self.stream_port_input.text))
     except (KrappErrorOSConnection, KrappErrorConnection):
         ErrorPopup().open()
예제 #2
0
 def initialize(self, dt):
     Core.client().add_observer(self)
예제 #3
0
 def stage(self):
     Core.client().stage()
예제 #4
0
 def initialize(self, dt):
     Core.client().add_observer(self)  # Register as observer
예제 #5
0
 def on_enter(self, *args):
     Screen.on_enter(self, *args)
     Core.client().add_altitude_callback(self.update_altitude)