Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- MySQL
- Excel
- port
- flutter
- sqlite
- urllib
- python
- 날짜
- Linux
- 리눅스
- 유니티
- PyQt5
- GIT
- mssql
- Unity
- javascript
- PyQt
- IOS
- PER
- 맛집
- tensorflow
- 다이어트
- ASP
- 함수
- 라즈베리파이
- pandas
- swift
- node.js
- ubuntu
- MS-SQL
Archives
아미(아름다운미소)
python PyQt 본문
6줄의 코드로 윈도우를 만들고 그 안에 'Hello PyQt'라는 문자열을 출력했습니다.
특히 처음 두 줄은 모듈을 임포트하는 구문으로, 실제로 윈도우를 생성하는 코드는 딱 4줄입니다.
# -*- coding: utf-8 -*-
'''
Created on 2018. 9. 10.
@author: bhm
'''
import sys
from PyQt5.QtWidgets import *
app = QApplication(sys.argv)
label = QLabel("Hello PyQt")
label.show()
app.exec_()
'랭귀지 > python' 카테고리의 다른 글
| python pandas_datareader.data as web cannot import name 'is_list_like' error (0) | 2018.09.14 |
|---|---|
| Python PyQt 이벤트 처리 (0) | 2018.09.13 |
| python 엑셀(excel) 파일 읽기 (0) | 2018.09.11 |
| python excel 셀에 컬러 입히기 (0) | 2018.09.10 |
| python 엑셀(excel) 다루기 (0) | 2018.09.09 |
Comments