How To Create Spin Boxes - PyQt5 GUI Thursdays #3

In this video I'll show you how to create spin boxes for PyQT5 and Python using the QSpinBox widget. Spin boxes allow you to spin thru a list of numbers. They have a minimum value and a maximum value, as well as a singleStep value. You can add a prefix and a suffix to your spin box values to that there are words listed. QSpinBox uses integers. If you want to use decimals or floats in your spin box, you need to use the QDoubleSpinBox widget instead. But everything else stays the same with your code. Timecodes 0:00 - Intro 1:26 - Create PyQT5 Spinbox Widget 2:07 - Set PyQT5 QSpinBox Attributes 4:00 - Change Font Size of Spinbox 5:43 - Add Prefix And Suffix to Spinbox 6:40 - Pass Prefix and Suffix To A Function 7:20 - Use Decimals with QDoubleSpinBox 9:02 - Using a Prefix Without A Suffix 9:33 - Using Only a Suffix Without A Prefix 10:42 - Conclusion