Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
pyqt spinbox set value 본문
How can I set default values to QDoubleSpinBox
pyqt spinbox set value
from PyQt5.QtWidgets import *
from PyQt5 import uic
form_class = uic.loadUiType("test.ui")[0]
class test(QMainWindow, form_class):
def __init__(self):
super().__init__()
self.setupUi(self)
self.price1.setValue(4000)
if __name__ == "__main__":
app = QApplication(sys.argv)
testWindow = test()
testWindow.show()
app.exec_()
'랭귀지 > python' 카테고리의 다른 글
| pyQt5 QLineEdit 패스워드설정 (0) | 2018.11.16 |
|---|---|
| python 숫자 출력에서 천(1000) 단위마다 콤마를 출력 (0) | 2018.11.15 |
| 파이썬 스케줄러를 지속적으로 돌리기위한 방법{python threading} (0) | 2018.11.12 |
| python round를 이용한 소수점 반올림 (0) | 2018.11.11 |
| not all arguments converted during string formatting (0) | 2018.11.10 |
Comments