Created
February 3, 2017 22:08
-
-
Save W4RH4WK/f3b703e54e73bffa031470a2f7fd76e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from PyQt5.QtCore import pyqtSlot | |
from PyQt5.QtWidgets import QApplication, QDialog | |
from PyQt5.uic import loadUi | |
class FooWindow(QDialog): | |
def __init__(self): | |
super(FooWindow, self).__init__() | |
loadUi('foo.ui', self) | |
@pyqtSlot() | |
def on_pushButton_clicked(self): | |
print("Hello World") | |
if __name__ == '__main__': | |
app = QApplication(sys.argv) | |
window = FooWindow() | |
window.show() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment