summaryrefslogtreecommitdiffstats
path: root/pulsecaster
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2009-05-25 06:04:50 -0400
committerPaul W. Frields <stickster@gmail.com>2009-05-25 06:04:50 -0400
commit084643c68796761e71818b929342a36653648d5e (patch)
treedcf484bc1dc7059f9f8036e500f10305d8e1266c /pulsecaster
parent4c58f7c527f1f8dccc916cd230c0f025056c567a (diff)
downloadpulsecaster-084643c68796761e71818b929342a36653648d5e.tar.gz
pulsecaster-084643c68796761e71818b929342a36653648d5e.tar.xz
pulsecaster-084643c68796761e71818b929342a36653648d5e.zip
Still trying to get these even subscriptions to work
Diffstat (limited to 'pulsecaster')
-rw-r--r--pulsecaster/ui.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py
index 6ccaf93..16afbef 100644
--- a/pulsecaster/ui.py
+++ b/pulsecaster/ui.py
@@ -92,12 +92,11 @@ class PulseCasterUI:
# Fill the combo boxes initially
self.repop_sources()
- self.pa.pulse_context_subscribe(0x0001, self.dummy)
- self.pa.pulse_context_subscribe(0x0021, self.dummy)
self.pa.pulse_context_set_subscribe_callback(self.dummy)
+ self.pa.pulse_context_subscribe(0x10, self.dummy)
- def dummy(self, *args):
- print('Dummy: ', args)
+ def dummy(self, c, event, index, userdata):
+ print('Dummy:', c, event, index, userdata)
def repop_sources(self, *args):
self.sources = self.pa.pulse_source_list()