행위

"PyQt"의 두 판 사이의 차이

DB CAFE

1번째 줄: 1번째 줄:
 
참고 : https://opentutorials.org/module/544/4998
 
참고 : https://opentutorials.org/module/544/4998
  
 
+
## Hello World 화면 만들기
##UI 만들기  
+
### ui화면 만들기 
 +
### UI 만들기
 
<source lang=python>
 
<source lang=python>
 
# coding: utf-8
 
# coding: utf-8

2018년 12월 3일 (월) 12:06 판

thumb_up 추천메뉴 바로가기


참고 : https://opentutorials.org/module/544/4998

    1. Hello World 화면 만들기
      1. ui화면 만들기
      2. UI 만들기
# coding: utf-8

import sys
from PyQt5 import QtWidgets
from PyQt5 import uic

class Form(QtWidgets.QDialog):
    def __init__(self, parent=None):
        QtWidgets.QDialog.__init__(self, parent)
        self.ui = uic.loadUi("QT_WIN_01.ui")
        self.ui.show()


if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)
    w   = Form()
    sys.exit(app.exec())