Ejemplo n.º 1
0
	def windowKeyPressed(self, widget, event):
		## Emits signals defined in lists.keypressDict.
		# Don't process if alt or ctrl is down.
		if (event.state & gtk.gdk.MOD1_MASK) or (event.state & gtk.gdk.CONTROL_MASK): return
		keyname = gtk.gdk.keyval_name(event.keyval)
		if keyname in lists.keypressDict:
			for x in lists.keypressDict[keyname]:
				signals.emit(x)
		# Also send the keypress to gstreamer in case it needs to act.
		player.sendNavigationKeypress(keyname)
Ejemplo n.º 2
0
	def gotoDVDMenu(self,widget):
		# Go to the DVD menu.
		player.sendNavigationKeypress('m')