Beispiel #1
0
	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)
		self.close()
Beispiel #2
0
def screen_show(self):
	global g_animation_paused
	if g_animation_paused:
		setAnimation_current(0)

	g_orig_show(self)

	if checkAttrib(self, False):
		g_animation_paused = True
Beispiel #3
0
def screen_show(self):
	global g_animation_paused
	if g_animation_paused:
		setAnimation_current(0)

	g_orig_show(self)

	if checkAttrib(self, False):
		g_animation_paused = True
Beispiel #4
0
	def preview(self):
		current = self["list"].getCurrent()
		if current:
			global g_animation_paused
			tmp = g_animation_paused
			g_animation_paused = False

			setAnimation_current(current[1])
			self.session.open(MessageBox, current[0], MessageBox.TYPE_INFO, timeout=3)
			g_animation_paused = tmp
Beispiel #5
0
	def preview(self):
		current = self["list"].getCurrent()
		if current:
			global g_animation_paused
			tmp = g_animation_paused
			g_animation_paused = False

			setAnimation_current(current[1])
			self.session.open(MessageBox, current[0], MessageBox.TYPE_INFO, timeout=3)
			g_animation_paused = tmp
Beispiel #6
0
 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()
Beispiel #7
0
def sessionAnimationSetup(session, reason, **kwargs):
    setAnimation_current(config.misc.window_animation_default.value)
    setAnimation_speed(int(config.misc.window_animation_speed.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
Beispiel #8
0
def sessionAnimationSetup(session, reason, **kwargs):
	setAnimation_current(config.misc.window_animation_default.value)
	setAnimation_speed(int(config.misc.window_animation_speed.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
Beispiel #9
0
def sessionAnimationSetup(session, reason, **kwargs):
	setAnimation_current(config.misc.window_animation_default.value)
	setAnimation_speed(int(config.misc.window_animation_speed.value))
	if not getBoxBrand() == 'gigablue':
		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
Beispiel #10
0
def sessionAnimationSetup(session, reason, **kwargs):
	setAnimation_current(config.misc.window_animation_default.value)
	setAnimation_speed(int(config.misc.window_animation_speed.value))
Beispiel #11
0
	def preview(self):
		current = self["list"].getCurrent()
		if current:
			setAnimation_current(current[1])
			self.session.open(MessageBox, current[0], MessageBox.TYPE_INFO, timeout=3)
Beispiel #12
0
        def keyclose(self):
		setAnimation_current(config.misc.window_animation_default.value)
                setAnimation_speed(int(config.misc.window_animation_speed.value))
		self.close()
Beispiel #13
0
def screen_doClose(self):
    global g_animation_paused
    if checkAttrib(self, True):
        g_animation_paused = False
        setAnimation_current(config.misc.window_animation_default.value)
    g_orig_doClose(self)
Beispiel #14
0
def screen_doClose(self):
	global g_animation_paused
	if checkAttrib(self, True):
		g_animation_paused = False
		setAnimation_current(config.misc.window_animation_default.value)
	g_orig_doClose(self)
Beispiel #15
0
def sessionAnimationSetup(session, reason, **kwargs):
	setAnimation_current(config.misc.window_animation_default.value)
	setAnimation_speed(int(config.misc.window_animation_speed.value))
Beispiel #16
0
	def preview(self):
		current = self["list"].getCurrent()
		if current:
			setAnimation_current(current[1])
			self.session.open(MessageBox, current[0], MessageBox.TYPE_INFO, timeout=3)
Beispiel #17
0
	def keyclose(self):
		setAnimation_current(config.misc.window_animation_default.value)
		setAnimation_speed(int(config.misc.window_animation_speed.value))
		self.close()
Beispiel #18
0
	def keyclose(self):
		setAnimation_current(config.misc.window_animation_default.value)
		setAnimation_speed(int(config.misc.window_animation_speed.value))
		if not getBoxBrand() == 'gigablue':
			setAnimation_current_listbox(int(config.misc.listbox_animation_default.value))
		self.close()