Skip to content

Instantly share code, notes, and snippets.

@W4RH4WK
Created February 3, 2017 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save W4RH4WK/f3b703e54e73bffa031470a2f7fd76e0 to your computer and use it in GitHub Desktop.
Save W4RH4WK/f3b703e54e73bffa031470a2f7fd76e0 to your computer and use it in GitHub Desktop.
#!/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