summaryrefslogtreecommitdiff
path: root/plugins/Shortcuts.py
diff options
context:
space:
mode:
authorjerous <jerous@gmail.com>2008-09-10 04:48:46 +0200
committerjerous <jerous@gmail.com>2008-09-10 04:48:46 +0200
commit84c0d868ae4e0b7c998fcf0fa3c7e9dd61c5d750 (patch)
tree57a3ca03f61f4b1e65f1289295ffd2f5b3caeadd /plugins/Shortcuts.py
parent2119e0ac3dba26d795af9dd202760cd410b35fcf (diff)
grouping by custom tags
Diffstat (limited to 'plugins/Shortcuts.py')
-rw-r--r--plugins/Shortcuts.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/Shortcuts.py b/plugins/Shortcuts.py
deleted file mode 100644
index b91759a..0000000
--- a/plugins/Shortcuts.py
+++ /dev/null
@@ -1,39 +0,0 @@
-from PyQt3 import QtGui, QtCore
-from PyKDE4.kdeui import KGlobalAccel
-from thread import start_new_thread
-
-from clPlugin import Plugin
-from clSettings import settings
-
-
-class pluginShortcuts(Plugin):
- def __init__(self, winMain):
- global keycodes
- Plugin.__init__(self, winMain, 'Shortcuts')
-
- def _load(self):
- action=QtGui.QAction(self.winMain)
- action.setGlobalShortcut(QtCore.Qt.Key_F11)
- self.winMain.addAction(action)
- self.winMain.connect(action, QtCore.SIGNAL("triggered()"), self.test)
- print action
- #start_new_thread(self.keyHandler, (None,))
-
- def test(self):
- print "mreeh"
-
- def getInfo(self):
- return "Control playing using shortcuts."
-
- def _getSettings(self):
- return [
- ['shortcuts.playpauze', 'Play/pauze', 'Key to start playing/pauze.', QtGui.QLineEdit(settings.get('shortcuts.playpauze', 'Win+Home'))],
- ]
- def afterSaveSettings(self):
- pass
-
- def keyHandler(self, emptyParam):
- while 1:
- event=self.root.display.next_event()
- keycode=event.detail
- print keycode