Exemplo n.º 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()
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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()
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 10
0
def sessionAnimationSetup(session, reason, **kwargs):
	setAnimation_current(config.misc.window_animation_default.value)
	setAnimation_speed(int(config.misc.window_animation_speed.value))
Exemplo n.º 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)
Exemplo n.º 12
0
        def keyclose(self):
		setAnimation_current(config.misc.window_animation_default.value)
                setAnimation_speed(int(config.misc.window_animation_speed.value))
		self.close()
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 15
0
def sessionAnimationSetup(session, reason, **kwargs):
	setAnimation_current(config.misc.window_animation_default.value)
	setAnimation_speed(int(config.misc.window_animation_speed.value))
Exemplo n.º 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)
Exemplo n.º 17
0
	def keyclose(self):
		setAnimation_current(config.misc.window_animation_default.value)
		setAnimation_speed(int(config.misc.window_animation_speed.value))
		self.close()
Exemplo n.º 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()