-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_1.py
More file actions
31 lines (25 loc) · 855 Bytes
/
test_1.py
File metadata and controls
31 lines (25 loc) · 855 Bytes
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
'''
설명주석
전국 동아리 소프트웨어 경진대회 출전 당시
GUI를 제작하기 위한 PyQt5 모듈 공부 겸
여러코드를 제작하고 지우고 반복하는 파일로 사용됨
초기 자료
'''
from PyQt5 import QtCore
from PyQt5 import QtWidgets
from PyQt5 import QtGui
import sys
class StartDialog(QtGui.QDialog, QtCore.QObject):
new_start_signal = QtCore.pyqtSignal()
def __init__(self, parent=None):
QtGui.QDialog.__init__(self, parent)
QtCore.QObject.__init__(self)
self.setupUi(parent)
self.new_button.clicked.connect(self.new_button_clicked)
def new_button_clicked(self):
self.new_start_signal.emit()
app = QtGui.QApplication(sys.argv)
start_dialog = StartDialog()
if __name__ == '__main__':
app.show()
sys.exit(app.exec_())