QInstrument 2.2.0__tar.gz → 2.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qinstrument-2.2.0 → qinstrument-2.4.0}/PKG-INFO +3 -3
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrument.egg-info/PKG-INFO +3 -3
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrument.egg-info/SOURCES.txt +2 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/README.md +2 -2
- qinstrument-2.4.0/instruments/IPGPhotonics/IPGLaser/IPGLaserWidget.ui +426 -0
- qinstrument-2.4.0/instruments/IPGPhotonics/IPGLaser/__init__.py +6 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus/OpusWidget.ui +1 -8
- qinstrument-2.4.0/instruments/Novanta/Opus/__init__.py +6 -0
- qinstrument-2.4.0/instruments/Novanta/Opus1064/__init__.py +10 -0
- qinstrument-2.4.0/instruments/Novanta/Opus532/__init__.py +10 -0
- qinstrument-2.4.0/instruments/Novanta/Opus660/__init__.py +10 -0
- qinstrument-2.4.0/instruments/PiezoDrive/PDUS210/__init__.py +6 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/Proscan/ProscanWidget.ui +16 -12
- qinstrument-2.4.0/instruments/PriorScientific/Proscan/__init__.py +6 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/Proscan/widget.py +15 -1
- qinstrument-2.4.0/instruments/StanfordResearch/DS345/__init__.py +6 -0
- qinstrument-2.4.0/instruments/StanfordResearch/SR830/__init__.py +6 -0
- qinstrument-2.4.0/instruments/StanfordResearch/SR844/__init__.py +6 -0
- qinstrument-2.4.0/instruments/Tektronix/TDS1000/__init__.py +6 -0
- qinstrument-2.4.0/instruments/__init__.py +38 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QInstrumentWidget.py +14 -6
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QInstrumentWorker.py +8 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QSerialInstrument.py +0 -8
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QSerialInterface.py +31 -9
- qinstrument-2.4.0/lib/lazy.py +52 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/pyproject.toml +1 -1
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QInstrumentWorker.py +2 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QSR830Worker.py +2 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QSerialInterface.py +20 -27
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/QJoystickPad.py +27 -6
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/QRotaryEncoderSpinBox.py +9 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/QRotaryEncoderSpinBox.ui +1 -8
- qinstrument-2.2.0/instruments/IPGPhotonics/IPGLaser/IPGLaserWidget.ui +0 -421
- qinstrument-2.2.0/instruments/IPGPhotonics/IPGLaser/__init__.py +0 -11
- qinstrument-2.2.0/instruments/Novanta/Opus/__init__.py +0 -11
- qinstrument-2.2.0/instruments/Novanta/Opus1064/__init__.py +0 -15
- qinstrument-2.2.0/instruments/Novanta/Opus532/__init__.py +0 -15
- qinstrument-2.2.0/instruments/Novanta/Opus660/__init__.py +0 -15
- qinstrument-2.2.0/instruments/PiezoDrive/PDUS210/__init__.py +0 -11
- qinstrument-2.2.0/instruments/PriorScientific/Proscan/__init__.py +0 -11
- qinstrument-2.2.0/instruments/StanfordResearch/DS345/__init__.py +0 -11
- qinstrument-2.2.0/instruments/StanfordResearch/SR830/__init__.py +0 -11
- qinstrument-2.2.0/instruments/StanfordResearch/SR844/__init__.py +0 -11
- qinstrument-2.2.0/instruments/Tektronix/TDS1000/__init__.py +0 -11
- qinstrument-2.2.0/instruments/__init__.py +0 -10
- {qinstrument-2.2.0 → qinstrument-2.4.0}/LICENSE.md +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrument.egg-info/dependency_links.txt +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrument.egg-info/entry_points.txt +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrument.egg-info/requires.txt +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrument.egg-info/top_level.txt +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/QInstrumentRack.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/__main__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/IPGPhotonics/IPGLaser/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/IPGPhotonics/IPGLaser/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/IPGPhotonics/IPGLaser/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/IPGPhotonics/IPGLaser/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/IPGPhotonics/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus1064/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus1064/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus1064/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus1064/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus532/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus532/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus532/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus532/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus660/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus660/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus660/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/Opus660/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Novanta/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PiezoDrive/PDUS210/PDUS210Widget.ui +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PiezoDrive/PDUS210/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PiezoDrive/PDUS210/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PiezoDrive/PDUS210/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PiezoDrive/PDUS210/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PiezoDrive/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/Proscan/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/Proscan/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/Proscan/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/DS345/DS345Widget.ui +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/DS345/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/DS345/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/DS345/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/DS345/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR830/SR830Widget.ui +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR830/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR830/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR830/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR830/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR830/worker.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR844/SR844Widget.ui +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR844/fake.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR844/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR844/tree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR844/widget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/SR844/worker.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/StanfordResearch/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Tektronix/TDS1000/instrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/Tektronix/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/Configure.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QAbstractInstrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QFakeInstrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QInstrumentTree.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/QReconcileDialog.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/lib/__init__.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/setup.cfg +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_Configure.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QAbstractInstrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QDS345.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QFakeInstrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QIPGLaser.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QInstrumentRack.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QInstrumentWidget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QLedWidget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QOpus.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QPDUS210.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QProscan.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QRotaryEncoderSpinBox.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QSR830.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QSR844.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/tests/test_QSerialInstrument.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/QJoystick.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/QLedWidget.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/QRotaryEncoder.py +0 -0
- {qinstrument-2.2.0 → qinstrument-2.4.0}/widgets/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: QInstrument
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Qt-based framework for controlling scientific instruments over serial ports
|
|
5
5
|
Author-email: "David G. Grier" <david.grier@nyu.edu>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -139,7 +139,7 @@ simulated (fake) device so the UI is always usable.
|
|
|
139
139
|
|
|
140
140
|
```python
|
|
141
141
|
from qtpy.QtWidgets import QApplication
|
|
142
|
-
from QInstrument.instruments
|
|
142
|
+
from QInstrument.instruments import QDS345Widget
|
|
143
143
|
|
|
144
144
|
app = QApplication([])
|
|
145
145
|
widget = QDS345Widget()
|
|
@@ -152,7 +152,7 @@ app.exec()
|
|
|
152
152
|
When hardware is not available, pass a fake device directly:
|
|
153
153
|
|
|
154
154
|
```python
|
|
155
|
-
from QInstrument.instruments
|
|
155
|
+
from QInstrument.instruments import QDS345Widget, QFakeDS345
|
|
156
156
|
|
|
157
157
|
app = QApplication([])
|
|
158
158
|
widget = QDS345Widget(device=QFakeDS345())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: QInstrument
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Qt-based framework for controlling scientific instruments over serial ports
|
|
5
5
|
Author-email: "David G. Grier" <david.grier@nyu.edu>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -139,7 +139,7 @@ simulated (fake) device so the UI is always usable.
|
|
|
139
139
|
|
|
140
140
|
```python
|
|
141
141
|
from qtpy.QtWidgets import QApplication
|
|
142
|
-
from QInstrument.instruments
|
|
142
|
+
from QInstrument.instruments import QDS345Widget
|
|
143
143
|
|
|
144
144
|
app = QApplication([])
|
|
145
145
|
widget = QDS345Widget()
|
|
@@ -152,7 +152,7 @@ app.exec()
|
|
|
152
152
|
When hardware is not available, pass a fake device directly:
|
|
153
153
|
|
|
154
154
|
```python
|
|
155
|
-
from QInstrument.instruments
|
|
155
|
+
from QInstrument.instruments import QDS345Widget, QFakeDS345
|
|
156
156
|
|
|
157
157
|
app = QApplication([])
|
|
158
158
|
widget = QDS345Widget(device=QFakeDS345())
|
|
@@ -85,6 +85,7 @@ pyproject.toml
|
|
|
85
85
|
./lib/QSerialInstrument.py
|
|
86
86
|
./lib/QSerialInterface.py
|
|
87
87
|
./lib/__init__.py
|
|
88
|
+
./lib/lazy.py
|
|
88
89
|
./widgets/QJoystick.py
|
|
89
90
|
./widgets/QJoystickPad.py
|
|
90
91
|
./widgets/QLedWidget.py
|
|
@@ -176,6 +177,7 @@ lib/QReconcileDialog.py
|
|
|
176
177
|
lib/QSerialInstrument.py
|
|
177
178
|
lib/QSerialInterface.py
|
|
178
179
|
lib/__init__.py
|
|
180
|
+
lib/lazy.py
|
|
179
181
|
tests/test_Configure.py
|
|
180
182
|
tests/test_QAbstractInstrument.py
|
|
181
183
|
tests/test_QDS345.py
|
|
@@ -85,7 +85,7 @@ simulated (fake) device so the UI is always usable.
|
|
|
85
85
|
|
|
86
86
|
```python
|
|
87
87
|
from qtpy.QtWidgets import QApplication
|
|
88
|
-
from QInstrument.instruments
|
|
88
|
+
from QInstrument.instruments import QDS345Widget
|
|
89
89
|
|
|
90
90
|
app = QApplication([])
|
|
91
91
|
widget = QDS345Widget()
|
|
@@ -98,7 +98,7 @@ app.exec()
|
|
|
98
98
|
When hardware is not available, pass a fake device directly:
|
|
99
99
|
|
|
100
100
|
```python
|
|
101
|
-
from QInstrument.instruments
|
|
101
|
+
from QInstrument.instruments import QDS345Widget, QFakeDS345
|
|
102
102
|
|
|
103
103
|
app = QApplication([])
|
|
104
104
|
widget = QDS345Widget(device=QFakeDS345())
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<ui version="4.0">
|
|
3
|
+
<class>IPGLaserWidget</class>
|
|
4
|
+
<widget class="QWidget" name="IPGLaserWidget">
|
|
5
|
+
<property name="windowTitle">
|
|
6
|
+
<string>IPG Laser</string>
|
|
7
|
+
</property>
|
|
8
|
+
<layout class="QVBoxLayout" name="outerLayout">
|
|
9
|
+
<property name="spacing">
|
|
10
|
+
<number>2</number>
|
|
11
|
+
</property>
|
|
12
|
+
<property name="leftMargin">
|
|
13
|
+
<number>2</number>
|
|
14
|
+
</property>
|
|
15
|
+
<property name="topMargin">
|
|
16
|
+
<number>1</number>
|
|
17
|
+
</property>
|
|
18
|
+
<property name="rightMargin">
|
|
19
|
+
<number>2</number>
|
|
20
|
+
</property>
|
|
21
|
+
<property name="bottomMargin">
|
|
22
|
+
<number>1</number>
|
|
23
|
+
</property>
|
|
24
|
+
<item>
|
|
25
|
+
<widget class="QGroupBox" name="groupBox">
|
|
26
|
+
<property name="title">
|
|
27
|
+
<string>IPG Fiber Laser</string>
|
|
28
|
+
</property>
|
|
29
|
+
<layout class="QHBoxLayout" name="innerLayout">
|
|
30
|
+
<property name="spacing">
|
|
31
|
+
<number>6</number>
|
|
32
|
+
</property>
|
|
33
|
+
<property name="leftMargin">
|
|
34
|
+
<number>6</number>
|
|
35
|
+
</property>
|
|
36
|
+
<property name="topMargin">
|
|
37
|
+
<number>4</number>
|
|
38
|
+
</property>
|
|
39
|
+
<property name="rightMargin">
|
|
40
|
+
<number>6</number>
|
|
41
|
+
</property>
|
|
42
|
+
<property name="bottomMargin">
|
|
43
|
+
<number>6</number>
|
|
44
|
+
</property>
|
|
45
|
+
<!-- Left column: status LEDs, control pairs -->
|
|
46
|
+
<item>
|
|
47
|
+
<layout class="QVBoxLayout" name="leftLayout">
|
|
48
|
+
<property name="spacing">
|
|
49
|
+
<number>4</number>
|
|
50
|
+
</property>
|
|
51
|
+
<!-- Status row: power supply, keyswitch, fault LEDs + power readout -->
|
|
52
|
+
<item>
|
|
53
|
+
<layout class="QHBoxLayout" name="statusLayout">
|
|
54
|
+
<property name="spacing">
|
|
55
|
+
<number>4</number>
|
|
56
|
+
</property>
|
|
57
|
+
<item>
|
|
58
|
+
<widget class="QGroupBox" name="supplyGroup">
|
|
59
|
+
<property name="title">
|
|
60
|
+
<string>Supply</string>
|
|
61
|
+
</property>
|
|
62
|
+
<property name="alignment">
|
|
63
|
+
<set>Qt::AlignCenter</set>
|
|
64
|
+
</property>
|
|
65
|
+
<property name="minimumSize">
|
|
66
|
+
<size>
|
|
67
|
+
<width>52</width>
|
|
68
|
+
<height>52</height>
|
|
69
|
+
</size>
|
|
70
|
+
</property>
|
|
71
|
+
<property name="maximumSize">
|
|
72
|
+
<size>
|
|
73
|
+
<width>64</width>
|
|
74
|
+
<height>64</height>
|
|
75
|
+
</size>
|
|
76
|
+
</property>
|
|
77
|
+
<layout class="QVBoxLayout" name="supplyLedLayout">
|
|
78
|
+
<property name="leftMargin">
|
|
79
|
+
<number>4</number>
|
|
80
|
+
</property>
|
|
81
|
+
<property name="topMargin">
|
|
82
|
+
<number>2</number>
|
|
83
|
+
</property>
|
|
84
|
+
<property name="rightMargin">
|
|
85
|
+
<number>4</number>
|
|
86
|
+
</property>
|
|
87
|
+
<property name="bottomMargin">
|
|
88
|
+
<number>4</number>
|
|
89
|
+
</property>
|
|
90
|
+
<item>
|
|
91
|
+
<widget class="QLedWidget" name="power_supply">
|
|
92
|
+
<property name="minimumSize">
|
|
93
|
+
<size>
|
|
94
|
+
<width>20</width>
|
|
95
|
+
<height>20</height>
|
|
96
|
+
</size>
|
|
97
|
+
</property>
|
|
98
|
+
<property name="maximumSize">
|
|
99
|
+
<size>
|
|
100
|
+
<width>32</width>
|
|
101
|
+
<height>32</height>
|
|
102
|
+
</size>
|
|
103
|
+
</property>
|
|
104
|
+
</widget>
|
|
105
|
+
</item>
|
|
106
|
+
</layout>
|
|
107
|
+
</widget>
|
|
108
|
+
</item>
|
|
109
|
+
<item>
|
|
110
|
+
<widget class="QGroupBox" name="keyGroup">
|
|
111
|
+
<property name="title">
|
|
112
|
+
<string>Key</string>
|
|
113
|
+
</property>
|
|
114
|
+
<property name="alignment">
|
|
115
|
+
<set>Qt::AlignCenter</set>
|
|
116
|
+
</property>
|
|
117
|
+
<property name="minimumSize">
|
|
118
|
+
<size>
|
|
119
|
+
<width>52</width>
|
|
120
|
+
<height>52</height>
|
|
121
|
+
</size>
|
|
122
|
+
</property>
|
|
123
|
+
<property name="maximumSize">
|
|
124
|
+
<size>
|
|
125
|
+
<width>64</width>
|
|
126
|
+
<height>64</height>
|
|
127
|
+
</size>
|
|
128
|
+
</property>
|
|
129
|
+
<layout class="QVBoxLayout" name="keyLedLayout">
|
|
130
|
+
<property name="leftMargin">
|
|
131
|
+
<number>4</number>
|
|
132
|
+
</property>
|
|
133
|
+
<property name="topMargin">
|
|
134
|
+
<number>2</number>
|
|
135
|
+
</property>
|
|
136
|
+
<property name="rightMargin">
|
|
137
|
+
<number>4</number>
|
|
138
|
+
</property>
|
|
139
|
+
<property name="bottomMargin">
|
|
140
|
+
<number>4</number>
|
|
141
|
+
</property>
|
|
142
|
+
<item>
|
|
143
|
+
<widget class="QLedWidget" name="keyswitch">
|
|
144
|
+
<property name="minimumSize">
|
|
145
|
+
<size>
|
|
146
|
+
<width>20</width>
|
|
147
|
+
<height>20</height>
|
|
148
|
+
</size>
|
|
149
|
+
</property>
|
|
150
|
+
<property name="maximumSize">
|
|
151
|
+
<size>
|
|
152
|
+
<width>32</width>
|
|
153
|
+
<height>32</height>
|
|
154
|
+
</size>
|
|
155
|
+
</property>
|
|
156
|
+
</widget>
|
|
157
|
+
</item>
|
|
158
|
+
</layout>
|
|
159
|
+
</widget>
|
|
160
|
+
</item>
|
|
161
|
+
<item>
|
|
162
|
+
<widget class="QGroupBox" name="faultGroup">
|
|
163
|
+
<property name="title">
|
|
164
|
+
<string>Fault</string>
|
|
165
|
+
</property>
|
|
166
|
+
<property name="alignment">
|
|
167
|
+
<set>Qt::AlignCenter</set>
|
|
168
|
+
</property>
|
|
169
|
+
<property name="minimumSize">
|
|
170
|
+
<size>
|
|
171
|
+
<width>52</width>
|
|
172
|
+
<height>52</height>
|
|
173
|
+
</size>
|
|
174
|
+
</property>
|
|
175
|
+
<property name="maximumSize">
|
|
176
|
+
<size>
|
|
177
|
+
<width>64</width>
|
|
178
|
+
<height>64</height>
|
|
179
|
+
</size>
|
|
180
|
+
</property>
|
|
181
|
+
<layout class="QVBoxLayout" name="faultLedLayout">
|
|
182
|
+
<property name="leftMargin">
|
|
183
|
+
<number>4</number>
|
|
184
|
+
</property>
|
|
185
|
+
<property name="topMargin">
|
|
186
|
+
<number>2</number>
|
|
187
|
+
</property>
|
|
188
|
+
<property name="rightMargin">
|
|
189
|
+
<number>4</number>
|
|
190
|
+
</property>
|
|
191
|
+
<property name="bottomMargin">
|
|
192
|
+
<number>4</number>
|
|
193
|
+
</property>
|
|
194
|
+
<item>
|
|
195
|
+
<widget class="QLedWidget" name="fault">
|
|
196
|
+
<property name="minimumSize">
|
|
197
|
+
<size>
|
|
198
|
+
<width>20</width>
|
|
199
|
+
<height>20</height>
|
|
200
|
+
</size>
|
|
201
|
+
</property>
|
|
202
|
+
<property name="maximumSize">
|
|
203
|
+
<size>
|
|
204
|
+
<width>32</width>
|
|
205
|
+
<height>32</height>
|
|
206
|
+
</size>
|
|
207
|
+
</property>
|
|
208
|
+
</widget>
|
|
209
|
+
</item>
|
|
210
|
+
</layout>
|
|
211
|
+
</widget>
|
|
212
|
+
</item>
|
|
213
|
+
<item>
|
|
214
|
+
<spacer name="statusSpacer">
|
|
215
|
+
<property name="orientation">
|
|
216
|
+
<enum>Qt::Horizontal</enum>
|
|
217
|
+
</property>
|
|
218
|
+
<property name="sizeHint" stdset="0">
|
|
219
|
+
<size>
|
|
220
|
+
<width>0</width>
|
|
221
|
+
<height>0</height>
|
|
222
|
+
</size>
|
|
223
|
+
</property>
|
|
224
|
+
</spacer>
|
|
225
|
+
</item>
|
|
226
|
+
<item>
|
|
227
|
+
<widget class="QGroupBox" name="powerGroup">
|
|
228
|
+
<property name="title">
|
|
229
|
+
<string>Power [W]</string>
|
|
230
|
+
</property>
|
|
231
|
+
<property name="alignment">
|
|
232
|
+
<set>Qt::AlignCenter</set>
|
|
233
|
+
</property>
|
|
234
|
+
<property name="minimumSize">
|
|
235
|
+
<size>
|
|
236
|
+
<width>80</width>
|
|
237
|
+
<height>52</height>
|
|
238
|
+
</size>
|
|
239
|
+
</property>
|
|
240
|
+
<property name="maximumSize">
|
|
241
|
+
<size>
|
|
242
|
+
<width>120</width>
|
|
243
|
+
<height>64</height>
|
|
244
|
+
</size>
|
|
245
|
+
</property>
|
|
246
|
+
<layout class="QVBoxLayout" name="powerSpinLayout">
|
|
247
|
+
<property name="leftMargin">
|
|
248
|
+
<number>4</number>
|
|
249
|
+
</property>
|
|
250
|
+
<property name="topMargin">
|
|
251
|
+
<number>2</number>
|
|
252
|
+
</property>
|
|
253
|
+
<property name="rightMargin">
|
|
254
|
+
<number>4</number>
|
|
255
|
+
</property>
|
|
256
|
+
<property name="bottomMargin">
|
|
257
|
+
<number>4</number>
|
|
258
|
+
</property>
|
|
259
|
+
<item>
|
|
260
|
+
<widget class="QDoubleSpinBox" name="power">
|
|
261
|
+
<property name="readOnly">
|
|
262
|
+
<bool>true</bool>
|
|
263
|
+
</property>
|
|
264
|
+
<property name="buttonSymbols">
|
|
265
|
+
<enum>QAbstractSpinBox::NoButtons</enum>
|
|
266
|
+
</property>
|
|
267
|
+
<property name="alignment">
|
|
268
|
+
<set>Qt::AlignCenter</set>
|
|
269
|
+
</property>
|
|
270
|
+
<property name="decimals">
|
|
271
|
+
<number>2</number>
|
|
272
|
+
</property>
|
|
273
|
+
<property name="maximum">
|
|
274
|
+
<double>9999.0</double>
|
|
275
|
+
</property>
|
|
276
|
+
</widget>
|
|
277
|
+
</item>
|
|
278
|
+
</layout>
|
|
279
|
+
</widget>
|
|
280
|
+
</item>
|
|
281
|
+
</layout>
|
|
282
|
+
</item>
|
|
283
|
+
<!-- Control row: aiming and emission LED + button pairs -->
|
|
284
|
+
<item>
|
|
285
|
+
<layout class="QHBoxLayout" name="controlLayout">
|
|
286
|
+
<property name="spacing">
|
|
287
|
+
<number>4</number>
|
|
288
|
+
</property>
|
|
289
|
+
<!-- Aiming: status LED + toggle button -->
|
|
290
|
+
<item>
|
|
291
|
+
<widget class="QLedWidget" name="aiming">
|
|
292
|
+
<property name="minimumSize">
|
|
293
|
+
<size>
|
|
294
|
+
<width>20</width>
|
|
295
|
+
<height>20</height>
|
|
296
|
+
</size>
|
|
297
|
+
</property>
|
|
298
|
+
<property name="maximumSize">
|
|
299
|
+
<size>
|
|
300
|
+
<width>24</width>
|
|
301
|
+
<height>24</height>
|
|
302
|
+
</size>
|
|
303
|
+
</property>
|
|
304
|
+
</widget>
|
|
305
|
+
</item>
|
|
306
|
+
<item>
|
|
307
|
+
<widget class="QPushButton" name="aiming_button">
|
|
308
|
+
<property name="text">
|
|
309
|
+
<string>Aiming</string>
|
|
310
|
+
</property>
|
|
311
|
+
<property name="minimumSize">
|
|
312
|
+
<size>
|
|
313
|
+
<width>60</width>
|
|
314
|
+
<height>0</height>
|
|
315
|
+
</size>
|
|
316
|
+
</property>
|
|
317
|
+
</widget>
|
|
318
|
+
</item>
|
|
319
|
+
<item>
|
|
320
|
+
<spacer name="aimEmitSpacer">
|
|
321
|
+
<property name="orientation">
|
|
322
|
+
<enum>Qt::Horizontal</enum>
|
|
323
|
+
</property>
|
|
324
|
+
<property name="sizeType">
|
|
325
|
+
<enum>QSizePolicy::Fixed</enum>
|
|
326
|
+
</property>
|
|
327
|
+
<property name="sizeHint" stdset="0">
|
|
328
|
+
<size>
|
|
329
|
+
<width>8</width>
|
|
330
|
+
<height>0</height>
|
|
331
|
+
</size>
|
|
332
|
+
</property>
|
|
333
|
+
</spacer>
|
|
334
|
+
</item>
|
|
335
|
+
<!-- Emission: status LED + toggle button -->
|
|
336
|
+
<item>
|
|
337
|
+
<widget class="QLedWidget" name="emission">
|
|
338
|
+
<property name="minimumSize">
|
|
339
|
+
<size>
|
|
340
|
+
<width>20</width>
|
|
341
|
+
<height>20</height>
|
|
342
|
+
</size>
|
|
343
|
+
</property>
|
|
344
|
+
<property name="maximumSize">
|
|
345
|
+
<size>
|
|
346
|
+
<width>24</width>
|
|
347
|
+
<height>24</height>
|
|
348
|
+
</size>
|
|
349
|
+
</property>
|
|
350
|
+
</widget>
|
|
351
|
+
</item>
|
|
352
|
+
<item>
|
|
353
|
+
<widget class="QPushButton" name="emission_button">
|
|
354
|
+
<property name="text">
|
|
355
|
+
<string>Emission</string>
|
|
356
|
+
</property>
|
|
357
|
+
<property name="minimumSize">
|
|
358
|
+
<size>
|
|
359
|
+
<width>60</width>
|
|
360
|
+
<height>0</height>
|
|
361
|
+
</size>
|
|
362
|
+
</property>
|
|
363
|
+
</widget>
|
|
364
|
+
</item>
|
|
365
|
+
<item>
|
|
366
|
+
<spacer name="controlSpacer">
|
|
367
|
+
<property name="orientation">
|
|
368
|
+
<enum>Qt::Horizontal</enum>
|
|
369
|
+
</property>
|
|
370
|
+
<property name="sizeHint" stdset="0">
|
|
371
|
+
<size>
|
|
372
|
+
<width>0</width>
|
|
373
|
+
<height>0</height>
|
|
374
|
+
</size>
|
|
375
|
+
</property>
|
|
376
|
+
</spacer>
|
|
377
|
+
</item>
|
|
378
|
+
</layout>
|
|
379
|
+
</item>
|
|
380
|
+
<!-- Vertical spacer to fill remaining height beside the rotary encoder -->
|
|
381
|
+
<item>
|
|
382
|
+
<spacer name="verticalSpacer">
|
|
383
|
+
<property name="orientation">
|
|
384
|
+
<enum>Qt::Vertical</enum>
|
|
385
|
+
</property>
|
|
386
|
+
<property name="sizeHint" stdset="0">
|
|
387
|
+
<size>
|
|
388
|
+
<width>0</width>
|
|
389
|
+
<height>0</height>
|
|
390
|
+
</size>
|
|
391
|
+
</property>
|
|
392
|
+
</spacer>
|
|
393
|
+
</item>
|
|
394
|
+
</layout>
|
|
395
|
+
</item>
|
|
396
|
+
<!-- Right column: rotary encoder spinbox for current setpoint -->
|
|
397
|
+
<item>
|
|
398
|
+
<widget class="QRotaryEncoderSpinBox" name="current">
|
|
399
|
+
<property name="maximumSize">
|
|
400
|
+
<size>
|
|
401
|
+
<width>120</width>
|
|
402
|
+
<height>16777215</height>
|
|
403
|
+
</size>
|
|
404
|
+
</property>
|
|
405
|
+
</widget>
|
|
406
|
+
</item>
|
|
407
|
+
</layout>
|
|
408
|
+
</widget>
|
|
409
|
+
</item>
|
|
410
|
+
</layout>
|
|
411
|
+
</widget>
|
|
412
|
+
<customwidgets>
|
|
413
|
+
<customwidget>
|
|
414
|
+
<class>QLedWidget</class>
|
|
415
|
+
<extends>QWidget</extends>
|
|
416
|
+
<header>QInstrument.widgets.QLedWidget</header>
|
|
417
|
+
</customwidget>
|
|
418
|
+
<customwidget>
|
|
419
|
+
<class>QRotaryEncoderSpinBox</class>
|
|
420
|
+
<extends>QWidget</extends>
|
|
421
|
+
<header>QInstrument.widgets.QRotaryEncoderSpinBox</header>
|
|
422
|
+
</customwidget>
|
|
423
|
+
</customwidgets>
|
|
424
|
+
<resources/>
|
|
425
|
+
<connections/>
|
|
426
|
+
</ui>
|
|
@@ -44,14 +44,7 @@
|
|
|
44
44
|
</property>
|
|
45
45
|
<!-- Left: rotary encoder for power setpoint -->
|
|
46
46
|
<item>
|
|
47
|
-
<widget class="QRotaryEncoderSpinBox" name="power_setpoint"
|
|
48
|
-
<property name="minimumSize">
|
|
49
|
-
<size>
|
|
50
|
-
<width>100</width>
|
|
51
|
-
<height>100</height>
|
|
52
|
-
</size>
|
|
53
|
-
</property>
|
|
54
|
-
</widget>
|
|
47
|
+
<widget class="QRotaryEncoderSpinBox" name="power_setpoint"/>
|
|
55
48
|
</item>
|
|
56
49
|
<!-- Right: status displays (top) and emission control (bottom) -->
|
|
57
50
|
<item>
|
{qinstrument-2.2.0 → qinstrument-2.4.0}/instruments/PriorScientific/Proscan/ProscanWidget.ui
RENAMED
|
@@ -140,18 +140,6 @@
|
|
|
140
140
|
</item>
|
|
141
141
|
<item row="1" column="0" colspan="2">
|
|
142
142
|
<widget class="QJoystickPad" name="joystick" native="true">
|
|
143
|
-
<property name="sizePolicy">
|
|
144
|
-
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
145
|
-
<horstretch>0</horstretch>
|
|
146
|
-
<verstretch>0</verstretch>
|
|
147
|
-
</sizepolicy>
|
|
148
|
-
</property>
|
|
149
|
-
<property name="minimumSize">
|
|
150
|
-
<size>
|
|
151
|
-
<width>100</width>
|
|
152
|
-
<height>100</height>
|
|
153
|
-
</size>
|
|
154
|
-
</property>
|
|
155
143
|
<property name="focusPolicy">
|
|
156
144
|
<enum>Qt::NoFocus</enum>
|
|
157
145
|
</property>
|
|
@@ -340,6 +328,22 @@
|
|
|
340
328
|
</layout>
|
|
341
329
|
</widget>
|
|
342
330
|
</item>
|
|
331
|
+
<item>
|
|
332
|
+
<widget class="QPushButton" name="advancedToggle">
|
|
333
|
+
<property name="text">
|
|
334
|
+
<string>▸ Advanced Settings</string>
|
|
335
|
+
</property>
|
|
336
|
+
<property name="checkable">
|
|
337
|
+
<bool>true</bool>
|
|
338
|
+
</property>
|
|
339
|
+
<property name="flat">
|
|
340
|
+
<bool>true</bool>
|
|
341
|
+
</property>
|
|
342
|
+
<property name="focusPolicy">
|
|
343
|
+
<enum>Qt::NoFocus</enum>
|
|
344
|
+
</property>
|
|
345
|
+
</widget>
|
|
346
|
+
</item>
|
|
343
347
|
<item>
|
|
344
348
|
<widget class="QFrame" name="advanced">
|
|
345
349
|
<property name="autoFillBackground">
|
|
@@ -6,8 +6,8 @@ from qtpy import QtCore
|
|
|
6
6
|
from QInstrument.lib.QInstrumentWidget import QInstrumentWidget
|
|
7
7
|
from QInstrument.instruments.PriorScientific.Proscan.instrument import QProscan
|
|
8
8
|
|
|
9
|
-
logger = logging.getLogger(__name__)
|
|
10
9
|
|
|
10
|
+
logger = logging.getLogger(__name__)
|
|
11
11
|
|
|
12
12
|
_NORMAL_STYLE = 'background: lightyellow;'
|
|
13
13
|
_LIMIT_STYLE = 'background: #FF6B6B;'
|
|
@@ -52,6 +52,20 @@ class QProscanWidget(QInstrumentWidget):
|
|
|
52
52
|
self.zdial.stepDown.connect(self.device.stepDown)
|
|
53
53
|
self.stop.clicked.connect(self.device.stop)
|
|
54
54
|
self.set_origin.clicked.connect(self.device.set_origin)
|
|
55
|
+
self.advancedToggle.toggled.connect(self._onAdvancedToggled)
|
|
56
|
+
self.advanced.setVisible(False)
|
|
57
|
+
|
|
58
|
+
@QtCore.Slot(bool)
|
|
59
|
+
def _onAdvancedToggled(self, checked: bool) -> None:
|
|
60
|
+
'''Show or hide the advanced settings panel.'''
|
|
61
|
+
self.advanced.setVisible(checked)
|
|
62
|
+
self.advancedToggle.setText(
|
|
63
|
+
'▾ Advanced Settings' if checked else '▸ Advanced Settings')
|
|
64
|
+
self.window().adjustSize()
|
|
65
|
+
|
|
66
|
+
def showEvent(self, event: object) -> None:
|
|
67
|
+
super().showEvent(event)
|
|
68
|
+
self.window().adjustSize()
|
|
55
69
|
|
|
56
70
|
def _startPolling(self) -> None:
|
|
57
71
|
self._timer = QtCore.QTimer(self)
|