Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit e2c7918

Browse files
Include CheckBox for ColorBar Label and check for state
1 parent 6d5a0e9 commit e2c7918

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

PythonGUI_apps/Export_Windows/Export_window.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,16 @@ def __init__(self):
3232
'autumn', 'winter', 'cool', 'Wistia', 'hot',
3333
'afmhot', 'gist_heat', 'copper', 'rainbow', 'jet'])
3434
# self.ui.dataChannel_comboBox.addItems(['Raw', 'Fitted'])
35+
self.ui.cbar_checkBox.stateChanged.connect(self.cbar_title_state)
3536
self.ui.exportFig_pushButton.clicked.connect(self.export)
3637
self.show()
3738

39+
def cbar_title_state(self):
40+
if self.ui.cbar_checkBox.isChecked():
41+
self.ui.cbar_label.setEnabled(True)
42+
else:
43+
self.ui.cbar_label.setEnabled(False)
44+
3845
def export(self):
3946
self.export_fig_signal.emit()
4047
self.close()

PythonGUI_apps/Export_Windows/export_fig_gui.ui

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>302</width>
10-
<height>317</height>
9+
<width>572</width>
10+
<height>606</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -118,6 +118,9 @@
118118
</item>
119119
<item row="8" column="0" colspan="2">
120120
<widget class="QLineEdit" name="cbar_label">
121+
<property name="enabled">
122+
<bool>false</bool>
123+
</property>
121124
<property name="font">
122125
<font>
123126
<pointsize>15</pointsize>
@@ -149,6 +152,18 @@
149152
</property>
150153
</widget>
151154
</item>
155+
<item row="7" column="1">
156+
<widget class="QCheckBox" name="cbar_checkBox">
157+
<property name="font">
158+
<font>
159+
<pointsize>15</pointsize>
160+
</font>
161+
</property>
162+
<property name="text">
163+
<string/>
164+
</property>
165+
</widget>
166+
</item>
152167
</layout>
153168
</widget>
154169
<resources/>

0 commit comments

Comments
 (0)