appWindow.py 537 B

1234567891011121314151617181920212223
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3. from PyQt5.QtWidgets import *
  4. from PyQt5.QtCore import (QSettings, QThread, pyqtSignal, pyqtSlot)
  5. from ui.windkanal import Ui_Form
  6. from ui.main_ui import Ui_MainWindow
  7. class AppWindow(QMainWindow):
  8. def __init__(self):
  9. super().__init__()
  10. self.ui = Ui_MainWindow()
  11. self.ui.setupUi(self)
  12. self.ui.saveButton.clicked.connect(self.save_pressed)
  13. self.show()
  14. def save_pressed(self):
  15. self.ui.lcdNumber_pressure.intValue(123)
  16. print(dir(self.ui.lcdNumber_pressure))