파이썬 #구구단 #QT #UI1 파이썬(QT) 구구단 입력 받아 출력 예제 import sys from PyQt5 import(uic) from PyQt5.QtWidgets import QApplication, QMainWindow form_class = uic.loadUiType("myqt04.ui")[0] class WindowClass(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) self.pb.clicked.connect(self.myclick) def myclick(self): a=int(self.le.text()) b=""; for i in range(1,9+1): b += str(a) + "*" + str(i) + "=" + str(a*i)+"\n" self.te.. 2023. 6. 28. 이전 1 다음