def keyclose(self): setAnimation_current(config.misc.window_animation_default.value) setAnimation_speed(int(config.misc.window_animation_speed.value)) if not getBrandOEM() == 'gigablue': setAnimation_current_listbox( int(config.misc.listbox_animation_default.value)) self.close()
def keyGreen(self): config.misc.window_animation_speed.save() setAnimation_speed(int(config.misc.window_animation_speed.value)) config.misc.listbox_animation_default.save() setAnimation_current_listbox( int(config.misc.listbox_animation_default.value)) self.close()
def keyGreen(self): config.misc.window_animation_speed.save() setAnimation_speed(int(config.misc.window_animation_speed.value)) setAnimation_speed(int(config.misc.window_animation_speed.value)) config.misc.listbox_animation_default.save() setAnimation_current_listbox(int(config.misc.listbox_animation_default.value)) self.close()
def keyGreen(self): config.misc.window_animation_speed.save() setAnimation_speed(int(config.misc.window_animation_speed.value)) config.misc.listbox_animation_default.save() if not getBoxBrand() == 'gigablue': setAnimation_current_listbox(int(config.misc.listbox_animation_default.value)) self.close()
def ok(self): current = self["list"].getCurrent() if current: key = current[1] config.misc.window_animation_default.value = key config.misc.window_animation_default.save() setAnimation_current(key) setAnimation_current_listbox(int(config.misc.listbox_animation_default.value)) self.close()
def sessionAnimationSetup(session, reason, **kwargs): setAnimation_current(config.misc.window_animation_default.value) setAnimation_speed(int(config.misc.window_animation_speed.value)) setAnimation_current_listbox(int(config.misc.listbox_animation_default.value)) global g_orig_show, g_orig_doClose if g_orig_show is None: g_orig_show = Screen.show if g_orig_doClose is None: g_orig_doClose = Screen.doClose Screen.show = screen_show Screen.doClose = screen_doClose