PYQT5 빠르게 배워보기 2편 이 정도만 알아도 GUI 만들 수 있습니다 함수연결 이벤트발생시키기











############################# Video Source: www.youtube.com/watch?v=rHDWnfsJP4A

STACK CODING 입니다. • 아래 카페에서 모든 코드를 공유하고 있습니다. • 코드가 모이면 더 나은 일들이 일어난다 는 STACK CODING의 모토입니다. • 도움이 되시길 바랍니다. • 여러분들도 멋진 코드를 공유해주세요 ! • 항상 간단하게 배우고 강력하게 사용하시길 바랍니다. • https://cafe.naver.com/stackcoding • • import sys • from automatic import Ui_MainWindow #수정부분 • from PyQt5 import * • from PyQt5.QtCore import * • from PyQt5.QtWidgets import * • • class kinwriter(QMainWindow, Ui_MainWindow): • • def __init__(self): • super().__init__() • self.setupUi(self) • self.timer = QTimer(self) • self.timer.setSingleShot(False) • self.timer.setInterval(5000) # in milliseconds, so 5000 = 5 seconds • # self.timer.timeout.connect(self.start_Macro) • self.timer.start()i0nscn2kdlr2k • • #print(self.hasMouseTracking()) • • self.show() • • app = QApplication([]) • sn = kinwriter() • QApplication.processEvents() • sys.exit(app.exec_())

#############################









Content Report
Youtor.org / Youtor.org Torrents YT video Downloader © 2024

created by www.mixer.tube