Skip to content

Instantly share code, notes, and snippets.

@gatherKnowledge
Created January 15, 2018 06:46
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 gatherKnowledge/bf6dd45c3fe38b59fe1856d8db606d1f to your computer and use it in GitHub Desktop.
Save gatherKnowledge/bf6dd45c3fe38b59fe1856d8db606d1f to your computer and use it in GitHub Desktop.
pyqt5 기본 실행폼
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