コード例 #1
0
	def __init__(self, control='Primary', id=0, card='hw:4'):
		self._mixers = dict()
		self._limiters = dict()
		self._def_control = control
		self._def_id = id
		self._def_card = card
		if architecture == 'pc':
			self._mixers['Fake'] = FakeMixer()
			self._def_control = 'Fake'
		else:
			self.add_control(control)
		events_watch(self.handle)
		self.window = SoundLevelWindow(_('Sound level'))
		self.mute_window = MuteWindow(_('Mute'))
		self._hide_task = Task(self.window.hide)
		self._hide_mute_task = Task(self.mute_window.hide)
		self._save_task = Task(user_config.save)
		self.soft_mute_flag = 0
		self.soft_mute_prev_vol = 0
		self._fill_limiters()
		self._gain = False
		self._vol_id = user_config['sound']['volume']
		self.set_volume(self._vol_id)
		self.set_mute(user_config['sound']['mute'])
		self.set_hdmi_mute(user_config['connections']['hdmi_sound'])
		self._notification()
		return None
コード例 #2
0
ファイル: stack.py プロジェクト: rayman18/wydev
	def __init__(self, *args, **kw):
		self.menus_stack = MenuStack()
		self.windows = []
		self.engines = []
		self._home_timestamp = None
		self._failsafe_log = []
		events_watch(self.handle)
		self._on_idle = False
		pygui_globs['menustack'] = self
		return None
コード例 #3
0
ファイル: banzai.py プロジェクト: wydevices/wydevices
	def __init__(self):
		self._backlog = []
		events_watch(self.handle)
コード例 #4
0
ファイル: banzai.py プロジェクト: wydevices/wydevices
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# 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)[self._backlog = []
events_watch(self.handle)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76dcf2c>}
nname: 168
n 168(None)[]:
	i: 103(), 167()
	o: 

nname: 167
n 167(None)[]:
	i: 45(f)
	o: 168()

nname: 103
コード例 #5
0
    elif ev.name == "LEFT":
        send_event("CURSOR_LEFT")
    elif ev.name == "RIGHT":
        send_event("CURSOR_RIGHT")
    elif ev.name == "UP":
        send_event("CURSOR_UP")
    elif ev.name == "DOWN":
        send_event("CURSOR_DOWN")
    elif ev.name == "SELECT":
        send_event("ENTER")
    #elif ev.name == "PREVIOUS":
    #    launchProcesses()
    else:
        print "Event = ", ev
    """
    elif ev.name == "short_DEBUG":
        print "Received : short_DEBUG"
    else:
        print "Event = ", ev
    """


initGraphics()
launchProcesses()

events_watch(got_event)

print "Begin loop"

loop()
コード例 #6
0
ファイル: power.py プロジェクト: rayman18/wydev
	def __init__(self):
		PowerManagerModule.__init__(self, 'pygui')
		self.sleeping = False
		self._mute_flag = False
		events_watch(self.handle)
コード例 #7
0
ファイル: power.py プロジェクト: rayman18/wydev
#
# 2012-01-10
# Initial Commit
#
#
# 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)[PowerManagerModule.__init__(self, 'pygui')
self.sleeping = False
self._mute_flag = False
events_watch(self.handle)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb75ccd0c>}
nname: 153
n 153(None)[]:
	i: 85(JA), 149(), 152()
	o: 

nname: 152
n 152(None)[]:
	i: 0(f)
	o: 153()

nname: 149