def __init__(self, update_function = None):
Thread.__init__(self)
if not os.path.exists(self.COORD_FNAME):
def __init__(self, update_function = None):
Thread.__init__(self)
if not os.path.exists(self.COORD_FNAME):
def set_mode(self, mode):
#runnig, higher threshold to prevent fake steps
def set_mode(self, mode):
#runnig, higher threshold to prevent fake steps
#set height, will affect the distance
def set_height(self, height_interval):
if height_interval == 0:
#set height, will affect the distance
def set_height(self, height_interval):
if height_interval == 0:
def selector_changed(selector, data):
widget.mode = selector.get_active(0)
widget.client.set_int(MODE, widget.mode)
def selector_changed(selector, data):
widget.mode = selector.get_active(0)
widget.client.set_int(MODE, widget.mode)
def selectorH_changed(selector, data):
widget.height = selectorH.get_active(0)
widget.client.set_int(HEIGHT, widget.height)
def selectorH_changed(selector, data):
widget.height = selectorH.get_active(0)
widget.client.set_int(HEIGHT, widget.height)
def selectorUnit_changed(selector, data):
widget.unit = selectorUnit.get_active(0)
def selectorUnit_changed(selector, data):
widget.unit = selectorUnit.get_active(0)
- hildon.hildon_banner_show_information(self, "None", "You have to Stop/Start the counter to apply the new settings")
+ #hildon.hildon_banner_show_information(self, "None", "You have to Stop/Start the counter to apply the new settings")