Changeset 4163
- Timestamp:
- 12/20/06 12:52:04
- Files:
-
- gnuradio/trunk/gr-wxgui/src/python/powermate.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/gr-wxgui/src/python/powermate.py
r3534 r4163 26 26 This is Linux and wxPython specific. 27 27 """ 28 import select 28 29 29 import os 30 import fcntl30 import sys 31 31 import struct 32 32 import exceptions 33 33 import threading 34 import sys35 34 import wx 36 35 from gnuradio import gru 36 37 imported_ok = True 38 39 try: 40 import select 41 import fcntl 42 except ImportError: 43 imported_ok = False 44 37 45 38 46 # First a little bit of background: … … 158 166 self.event_receiver = event_receiver 159 167 self.handle = -1 168 if not imported_ok: 169 raise exceptions.RuntimeError, 'powermate not supported on this platform' 170 160 171 if filename: 161 172 if not self._open_device(filename):
