appWindow.py 475 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. import sys
  6. sys.path.insert(1, 'ui')
  7. from main_ui import Ui_MainWindow
  8. class AppWindow(QMainWindow):
  9. def __init__(self):
  10. super().__init__()
  11. self.ui = Ui_MainWindow()
  12. self.ui.setupUi(self)
  13. self.ui.saveButton.clicked.connect(self.save_pressed)
  14. self.show()
  15. def save_pressed(self):
  16. print("Hello World!")