def __init__(self, **kwargs): super(UpdateClient, self).__init__(**kwargs) osc.init() oscid = osc.listen('127.0.0.1', CLIENT_PORT) osc.bind(oscid, self.recv_osc, SERVICE_PATH) Clock.schedule_interval(lambda _: osc.readQueue(oscid), 0) self.current_version = str(get_current_version())
def get_current_version(self): print 'getting current version...' version_code = get_current_version() print 'current version =', version_code return version_code