Created
January 15, 2018 06:46
-
-
Save gatherKnowledge/bf6dd45c3fe38b59fe1856d8db606d1f to your computer and use it in GitHub Desktop.
pyqt5 기본 실행폼
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
import sys | |
from PyQt5 import uic | |
from PyQt5.QtWidgets import * | |
form = uic.loadUiType("spend_log.ui")[0] | |
class ui(QMainWindow, form): | |
def __init__(self): | |
super().__init__() | |
self.setupUi(self) | |
def main(): | |
app = QApplication(sys.argv) | |
w = ui() | |
w.show() | |
app.exec_() | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment