41 os.path.join(HERE, "qhpgl_plotter.ui"), |
41 os.path.join(HERE, "qhpgl_plotter.ui"), |
42 from_imports=True, import_from='pygpibtoolkit.plotter',) |
42 from_imports=True, import_from='pygpibtoolkit.plotter',) |
43 except Exception as e: |
43 except Exception as e: |
44 from pygpibtoolkit.plotter.qhpgl_plotter_ui import ( |
44 from pygpibtoolkit.plotter.qhpgl_plotter_ui import ( |
45 Ui_MainWindow as form_class) |
45 Ui_MainWindow as form_class) |
46 |
|
47 |
|
48 |
46 |
49 |
47 |
50 class Preferences(AbstractPreferences): |
48 class Preferences(AbstractPreferences): |
51 ORGANISATION = "PyGPIBToolkit" |
49 ORGANISATION = "PyGPIBToolkit" |
52 APPLICATION = "qgpib_plotter" |
50 APPLICATION = "qgpib_plotter" |
305 else: |
303 else: |
306 icn = QtGui.QIcon(':/icons/led_red_off.svg') |
304 icn = QtGui.QIcon(':/icons/led_red_off.svg') |
307 self.receivingButton.setIcon(icn) |
305 self.receivingButton.setIcon(icn) |
308 |
306 |
309 |
307 |
310 |
|
311 class GPIBReceiver(QtCore.QThread): |
308 class GPIBReceiver(QtCore.QThread): |
312 plotStarted = pyqtSignal() |
309 plotStarted = pyqtSignal() |
313 plotReceived = pyqtSignal(int) |
310 plotReceived = pyqtSignal(int) |
314 |
311 |
315 def __init__(self, cnx, parent=None): |
312 def __init__(self, cnx, parent=None): |