コード例 #1
0
ファイル: __init__.py プロジェクト: rayman18/wydev
 def display_action_menu(self):
     sel = self.selected
     from pygui.menu.menu import ActionMenu
     parent = None
     if sel is None and self._history:
         parent = self._history[-1]['selected']
     else:
         parent = sel.parent
     context = dict(menu=self, selected=sel, parent=parent)
     s = ActionMenu(context, universe=self.universe)
     s.show()
     return None
コード例 #2
0
	def event_action_menu(self, event):
		stack = pygui_globs['menustack']
		from pygui.menu.menu import ActionMenu
		sel = self.player.selected
		parent = None
		if sel is None and self.player._history:
			parent = self.player._history[-1]['selected']
		else:
			parent = sel.parent
		context = dict(menu=self.player, selected=sel, parent=parent)
		s = ActionMenu(context, type_='thumbnailaction', category='thumbnail_navigator', universe=self.player.universe)
		s.show()
		return True
コード例 #3
0
ファイル: tv_player.py プロジェクト: rayman18/wydev
 def event_action_menu(self, event):
     from pygui.menu.menu import ActionMenu
     sel = self.player.selected
     context = dict(menu=self.player, selected=sel, parent=None)
     ActionMenu(context,
                category='tv_player',
                type_='playeraction',
                universe=self.player.universe).show()
     return True
コード例 #4
0
	def event_action_menu(self, event):
		sel = self.player.selected
		from pygui.menu.menu import ActionMenu
		parent = None
		if sel is None and self.player._history:
			parent = self.player._history[-1]['selected']
		else:
			parent = sel.parent
		context = dict(menu=self.player, selected=sel, parent=parent)
		s = ActionMenu(context, universe=self.player.universe)
		s.show()
		if sel == None:
			s.select(-1)
			s.select(1)
		return True
コード例 #5
0
ファイル: core.py プロジェクト: rayman18/wydev
	def event_action_menu(self, event):
		w = LoadingWindow()
		w.show()
		from pygui.menu.menu import ActionMenu
		sel = self.player.selected
		parent = None
		if sel is None and self.player._history:
			parent = self.player._history[-1]['selected']
		else:
			parent = sel.parent
		context = dict(menu=self.player, selected=sel, parent=parent)
		s = ActionMenu(context, type_='playeraction', category='player', universe=self.player.universe)
		if s.get_item_list('main_list'):
			s.show()
			if not s.get_item_list('options_list'):
				louie_send('empty_options', sender=s)
			else:
				louie_send('not_empty_options', sender=s)
			w.hide()
		else:
			w.hide()
			self.player._error_spawner()
		return True
コード例 #6
0
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 ([email protected])
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 0
n 0(None)[GridNavigatorEventHandler.__init__(self, player)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb776cfac>}
nname: 103
n 103(None)[context = dict(menu=self.player, selected=sel, parent=parent)
s = ActionMenu(context, type_='thumbnailaction', category='thumbnail_navigator', universe=self.player.universe)
s.show()
return True
]:
	i: 69(), 93()
	o: 

nname: 93
n 93(None)[parent = sel.parent
]:
	i: 0&56(f)
	o: 103()

nname: 69
n 69(None)[parent = self.player._history[-1]['selected']
]:
コード例 #7
0
ファイル: core.py プロジェクト: rayman18/wydev
nname: 219
n 219(None)[louie_send('empty_options', sender=s)
]:
	i: 193(f)
	o: 256()

nname: 193
n 193(s.get_item_list('options_list'))[s.show()
]:
	i: 112(t)
	o: 219(f), 239(t)

nname: 112
n 112(s.get_item_list('main_list'))[context = dict(menu=self.player, selected=sel, parent=parent)
s = ActionMenu(context, type_='playeraction', category='player', universe=self.player.universe)
]:
	i: 78(), 102()
	o: 193(t), 269(f)

nname: 102
n 102(None)[parent = sel.parent
]:
	i: 0&65(f)
	o: 112()

nname: 78
n 78(None)[parent = self.player._history[-1]['selected']
]:
	i: 0&65(t)
	o: 112()
コード例 #8
0
nname: 199
n 199(None)[]:
	i: 93(f)
	o: 200()

nname: 169
n 169(None)[s.select(-1)
s.select(1)
]:
	i: 93(t)
	o: 200()

nname: 93
n 93(sel == None)[context = dict(menu=self.player, selected=sel, parent=parent)
s = ActionMenu(context, universe=self.player.universe)
s.show()
]:
	i: 59(), 83()
	o: 169(t), 199(f)

nname: 83
n 83(None)[parent = sel.parent
]:
	i: 0&46(f)
	o: 93()

nname: 59
n 59(None)[parent = self.player._history[-1]['selected']
]:
	i: 0&46(t)