Skip to content

Commit bffc7dd

Browse files
tinyboxxxUltrawipf
authored andcommitted
fix for spinboxes bug in pyqt6 == 6.7 (#80)
increase spinbox minimal width to 100 for now. the problem is caused by the new style in pyqt6 == 6.7 have wider right side button in spinbox.
1 parent e25bc21 commit bffc7dd

File tree

4 files changed

+105
-2
lines changed

4 files changed

+105
-2
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__pycache__/*
22
.vscode/*
33
.qt_for_python/*
4-
profiles.json*
4+
profiles.json*
5+
/.venv

Diff for: res/axis_ui.ui

+36
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@
306306
<verstretch>0</verstretch>
307307
</sizepolicy>
308308
</property>
309+
<property name="minimumSize">
310+
<size>
311+
<width>100</width>
312+
<height>0</height>
313+
</size>
314+
</property>
309315
<property name="minimum">
310316
<number>1</number>
311317
</property>
@@ -335,6 +341,12 @@
335341
<verstretch>0</verstretch>
336342
</sizepolicy>
337343
</property>
344+
<property name="minimumSize">
345+
<size>
346+
<width>100</width>
347+
<height>0</height>
348+
</size>
349+
</property>
338350
<property name="minimum">
339351
<number>1</number>
340352
</property>
@@ -556,6 +568,12 @@
556568
</item>
557569
<item row="0" column="2">
558570
<widget class="QSpinBox" name="spinBox_range">
571+
<property name="minimumSize">
572+
<size>
573+
<width>100</width>
574+
<height>0</height>
575+
</size>
576+
</property>
559577
<property name="keyboardTracking">
560578
<bool>false</bool>
561579
</property>
@@ -575,6 +593,12 @@
575593
</item>
576594
<item row="2" column="2">
577595
<widget class="QSpinBox" name="spinBox_damper">
596+
<property name="minimumSize">
597+
<size>
598+
<width>100</width>
599+
<height>0</height>
600+
</size>
601+
</property>
578602
<property name="keyboardTracking">
579603
<bool>false</bool>
580604
</property>
@@ -585,6 +609,12 @@
585609
</item>
586610
<item row="1" column="2">
587611
<widget class="QSpinBox" name="spinBox_idlespring">
612+
<property name="minimumSize">
613+
<size>
614+
<width>100</width>
615+
<height>0</height>
616+
</size>
617+
</property>
588618
<property name="keyboardTracking">
589619
<bool>false</bool>
590620
</property>
@@ -725,6 +755,12 @@
725755
</item>
726756
<item row="2" column="2">
727757
<widget class="QSpinBox" name="spinBox_esgain">
758+
<property name="minimumSize">
759+
<size>
760+
<width>100</width>
761+
<height>0</height>
762+
</size>
763+
</property>
728764
<property name="keyboardTracking">
729765
<bool>false</bool>
730766
</property>

Diff for: res/ffbclass.ui

+30
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@
215215
</item>
216216
<item row="3" column="2">
217217
<widget class="QDoubleSpinBox" name="doubleSpinBox_friction">
218+
<property name="minimumSize">
219+
<size>
220+
<width>100</width>
221+
<height>0</height>
222+
</size>
223+
</property>
218224
<property name="keyboardTracking">
219225
<bool>false</bool>
220226
</property>
@@ -290,6 +296,12 @@
290296
</item>
291297
<item row="4" column="2">
292298
<widget class="QDoubleSpinBox" name="doubleSpinBox_inertia">
299+
<property name="minimumSize">
300+
<size>
301+
<width>100</width>
302+
<height>0</height>
303+
</size>
304+
</property>
293305
<property name="keyboardTracking">
294306
<bool>false</bool>
295307
</property>
@@ -303,6 +315,12 @@
303315
</item>
304316
<item row="1" column="2">
305317
<widget class="QDoubleSpinBox" name="doubleSpinBox_spring">
318+
<property name="minimumSize">
319+
<size>
320+
<width>100</width>
321+
<height>0</height>
322+
</size>
323+
</property>
306324
<property name="keyboardTracking">
307325
<bool>false</bool>
308326
</property>
@@ -400,6 +418,12 @@
400418
</item>
401419
<item row="2" column="2">
402420
<widget class="QDoubleSpinBox" name="doubleSpinBox_damper">
421+
<property name="minimumSize">
422+
<size>
423+
<width>100</width>
424+
<height>0</height>
425+
</size>
426+
</property>
403427
<property name="keyboardTracking">
404428
<bool>false</bool>
405429
</property>
@@ -476,6 +500,12 @@
476500
</item>
477501
<item row="1" column="4">
478502
<widget class="QDoubleSpinBox" name="doubleSpinBox_CFq">
503+
<property name="minimumSize">
504+
<size>
505+
<width>100</width>
506+
<height>0</height>
507+
</size>
508+
</property>
479509
<property name="keyboardTracking">
480510
<bool>false</bool>
481511
</property>

Diff for: res/tmc4671_ui.ui

+37-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>707</width>
9+
<width>744</width>
1010
<height>731</height>
1111
</rect>
1212
</property>
@@ -159,6 +159,12 @@
159159
</item>
160160
<item row="0" column="1">
161161
<widget class="QSpinBox" name="spinBox_tp">
162+
<property name="minimumSize">
163+
<size>
164+
<width>100</width>
165+
<height>0</height>
166+
</size>
167+
</property>
162168
<property name="keyboardTracking">
163169
<bool>false</bool>
164170
</property>
@@ -176,6 +182,12 @@
176182
</item>
177183
<item row="1" column="1">
178184
<widget class="QSpinBox" name="spinBox_ti">
185+
<property name="minimumSize">
186+
<size>
187+
<width>100</width>
188+
<height>0</height>
189+
</size>
190+
</property>
179191
<property name="keyboardTracking">
180192
<bool>false</bool>
181193
</property>
@@ -193,6 +205,12 @@
193205
</item>
194206
<item row="2" column="1">
195207
<widget class="QSpinBox" name="spinBox_fp">
208+
<property name="minimumSize">
209+
<size>
210+
<width>100</width>
211+
<height>0</height>
212+
</size>
213+
</property>
196214
<property name="keyboardTracking">
197215
<bool>false</bool>
198216
</property>
@@ -210,6 +228,12 @@
210228
</item>
211229
<item row="3" column="1">
212230
<widget class="QSpinBox" name="spinBox_fi">
231+
<property name="minimumSize">
232+
<size>
233+
<width>100</width>
234+
<height>0</height>
235+
</size>
236+
</property>
213237
<property name="keyboardTracking">
214238
<bool>false</bool>
215239
</property>
@@ -470,6 +494,12 @@
470494
<property name="enabled">
471495
<bool>false</bool>
472496
</property>
497+
<property name="minimumSize">
498+
<size>
499+
<width>100</width>
500+
<height>0</height>
501+
</size>
502+
</property>
473503
<property name="suffix">
474504
<string> Hz</string>
475505
</property>
@@ -499,6 +529,12 @@
499529
<property name="enabled">
500530
<bool>false</bool>
501531
</property>
532+
<property name="minimumSize">
533+
<size>
534+
<width>100</width>
535+
<height>0</height>
536+
</size>
537+
</property>
502538
<property name="toolTip">
503539
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Caution: can increase max speed but can also cause steppers to accelerate exponentially if too high&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
504540
</property>

0 commit comments

Comments
 (0)