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

Commit c1d3c4a

Browse files
scale gui to window size
1 parent 181abd8 commit c1d3c4a

1 file changed

Lines changed: 99 additions & 126 deletions

File tree

PythonGUI_apps/Spectrum_analysis/Spectra_plot_fit_gui.ui

Lines changed: 99 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<rect>
2020
<x>10</x>
2121
<y>20</y>
22-
<width>351</width>
23-
<height>221</height>
22+
<width>204</width>
23+
<height>231</height>
2424
</rect>
2525
</property>
2626
<property name="font">
@@ -31,115 +31,63 @@
3131
<property name="title">
3232
<string>Import Settings</string>
3333
</property>
34-
<widget class="QPushButton" name="importSpec_pushButton">
35-
<property name="geometry">
36-
<rect>
37-
<x>20</x>
38-
<y>40</y>
39-
<width>121</width>
40-
<height>51</height>
41-
</rect>
42-
</property>
43-
<property name="font">
44-
<font>
45-
<pointsize>12</pointsize>
46-
</font>
47-
</property>
48-
<property name="text">
49-
<string>Spectrum
34+
<layout class="QVBoxLayout" name="verticalLayout_2">
35+
<item>
36+
<widget class="QPushButton" name="importSpec_pushButton">
37+
<property name="font">
38+
<font>
39+
<pointsize>12</pointsize>
40+
</font>
41+
</property>
42+
<property name="text">
43+
<string>Spectrum
5044
File</string>
51-
</property>
52-
</widget>
53-
<widget class="QPushButton" name="importBck_pushButton">
54-
<property name="geometry">
55-
<rect>
56-
<x>20</x>
57-
<y>100</y>
58-
<width>121</width>
59-
<height>51</height>
60-
</rect>
61-
</property>
62-
<property name="font">
63-
<font>
64-
<pointsize>12</pointsize>
65-
</font>
66-
</property>
67-
<property name="text">
68-
<string>Background
45+
</property>
46+
</widget>
47+
</item>
48+
<item>
49+
<widget class="QPushButton" name="importBck_pushButton">
50+
<property name="font">
51+
<font>
52+
<pointsize>12</pointsize>
53+
</font>
54+
</property>
55+
<property name="text">
56+
<string>Background
6957
File</string>
70-
</property>
71-
</widget>
72-
<widget class="QCheckBox" name="subtract_bck_checkBox">
73-
<property name="geometry">
74-
<rect>
75-
<x>160</x>
76-
<y>120</y>
77-
<width>171</width>
78-
<height>21</height>
79-
</rect>
80-
</property>
81-
<property name="font">
82-
<font>
83-
<pointsize>12</pointsize>
84-
</font>
85-
</property>
86-
<property name="text">
87-
<string>Subtract Background</string>
88-
</property>
89-
</widget>
90-
<widget class="QPushButton" name="importWLRef_pushButton">
91-
<property name="geometry">
92-
<rect>
93-
<x>20</x>
94-
<y>160</y>
95-
<width>121</width>
96-
<height>51</height>
97-
</rect>
98-
</property>
99-
<property name="font">
100-
<font>
101-
<pointsize>12</pointsize>
102-
</font>
103-
</property>
104-
<property name="text">
105-
<string>White Light
58+
</property>
59+
</widget>
60+
</item>
61+
<item>
62+
<widget class="QPushButton" name="importWLRef_pushButton">
63+
<property name="font">
64+
<font>
65+
<pointsize>12</pointsize>
66+
</font>
67+
</property>
68+
<property name="text">
69+
<string>White Light
10670
Ref File</string>
107-
</property>
108-
</widget>
109-
<widget class="QCheckBox" name="WLRef_checkBox">
110-
<property name="geometry">
111-
<rect>
112-
<x>160</x>
113-
<y>180</y>
114-
<width>201</width>
115-
<height>21</height>
116-
</rect>
117-
</property>
118-
<property name="font">
119-
<font>
120-
<pointsize>12</pointsize>
121-
</font>
122-
</property>
123-
<property name="text">
124-
<string>Correct for White Light</string>
125-
</property>
126-
</widget>
71+
</property>
72+
</widget>
73+
</item>
74+
</layout>
12775
</widget>
12876
<widget class="PlotWidget" name="plot">
12977
<property name="geometry">
13078
<rect>
131-
<x>370</x>
79+
<x>410</x>
13280
<y>30</y>
133-
<width>961</width>
81+
<width>921</width>
13482
<height>571</height>
13583
</rect>
13684
</property>
13785
</widget>
13886
<widget class="QPushButton" name="plot_pushButton">
13987
<property name="geometry">
14088
<rect>
141-
<x>30</x>
142-
<y>260</y>
89+
<x>20</x>
90+
<y>270</y>
14391
<width>181</width>
14492
<height>51</height>
14593
</rect>
@@ -160,8 +108,8 @@ Ref File</string>
160108
<rect>
161109
<x>10</x>
162110
<y>340</y>
163-
<width>291</width>
164-
<height>141</height>
111+
<width>231</width>
112+
<height>112</height>
165113
</rect>
166114
</property>
167115
<property name="font">
@@ -172,29 +120,18 @@ Ref File</string>
172120
<property name="title">
173121
<string>Fitting Settings</string>
174122
</property>
175-
<widget class="QComboBox" name="fitFunc_comboBox">
176-
<property name="geometry">
177-
<rect>
178-
<x>30</x>
179-
<y>40</y>
180-
<width>211</width>
181-
<height>31</height>
182-
</rect>
183-
</property>
184-
</widget>
185-
<widget class="QPushButton" name="fit_pushButton">
186-
<property name="geometry">
187-
<rect>
188-
<x>90</x>
189-
<y>90</y>
190-
<width>91</width>
191-
<height>31</height>
192-
</rect>
193-
</property>
194-
<property name="text">
195-
<string>Fit</string>
196-
</property>
197-
</widget>
123+
<layout class="QVBoxLayout" name="verticalLayout">
124+
<item>
125+
<widget class="QComboBox" name="fitFunc_comboBox"/>
126+
</item>
127+
<item>
128+
<widget class="QPushButton" name="fit_pushButton">
129+
<property name="text">
130+
<string>Fit</string>
131+
</property>
132+
</widget>
133+
</item>
134+
</layout>
198135
</widget>
199136
<widget class="QPushButton" name="clear_pushButton">
200137
<property name="geometry">
@@ -208,7 +145,7 @@ Ref File</string>
208145
<property name="font">
209146
<font>
210147
<pointsize>15</pointsize>
211-
<strikeout>true</strikeout>
148+
<strikeout>false</strikeout>
212149
</font>
213150
</property>
214151
<property name="text">
@@ -220,7 +157,7 @@ Ref File</string>
220157
<rect>
221158
<x>10</x>
222159
<y>500</y>
223-
<width>341</width>
160+
<width>381</width>
224161
<height>331</height>
225162
</rect>
226163
</property>
@@ -233,8 +170,8 @@ Ref File</string>
233170
<widget class="QCheckBox" name="norm_checkBox">
234171
<property name="geometry">
235172
<rect>
236-
<x>230</x>
237-
<y>280</y>
173+
<x>220</x>
174+
<y>290</y>
238175
<width>101</width>
239176
<height>17</height>
240177
</rect>
@@ -251,7 +188,7 @@ Ref File</string>
251188
<widget class="QPushButton" name="export_fig_pushButton">
252189
<property name="geometry">
253190
<rect>
254-
<x>370</x>
191+
<x>410</x>
255192
<y>620</y>
256193
<width>211</width>
257194
<height>71</height>
@@ -267,6 +204,42 @@ Ref File</string>
267204
Ready Figure</string>
268205
</property>
269206
</widget>
207+
<widget class="QCheckBox" name="subtract_bck_checkBox">
208+
<property name="geometry">
209+
<rect>
210+
<x>220</x>
211+
<y>140</y>
212+
<width>184</width>
213+
<height>23</height>
214+
</rect>
215+
</property>
216+
<property name="font">
217+
<font>
218+
<pointsize>12</pointsize>
219+
</font>
220+
</property>
221+
<property name="text">
222+
<string>Subtract Background</string>
223+
</property>
224+
</widget>
225+
<widget class="QCheckBox" name="WLRef_checkBox">
226+
<property name="geometry">
227+
<rect>
228+
<x>220</x>
229+
<y>200</y>
230+
<width>184</width>
231+
<height>23</height>
232+
</rect>
233+
</property>
234+
<property name="font">
235+
<font>
236+
<pointsize>12</pointsize>
237+
</font>
238+
</property>
239+
<property name="text">
240+
<string>Correct for White Light</string>
241+
</property>
242+
</widget>
270243
</widget>
271244
<widget class="QMenuBar" name="menubar">
272245
<property name="geometry">

0 commit comments

Comments
 (0)