파이썬 #QT #가위바위보1 파이썬(QT) 가위바위보 프로그램 만들기 예제 import sys from PyQt5 import(uic) from PyQt5.QtWidgets import QApplication, QMainWindow from random import random form_class = uic.loadUiType("myqt06.ui")[0] class WindowClass(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) self.pb.clicked.connect(self.myclick) def myclick(self): me = self.pte_mine.toPlainText() arr = ["가위","바위","보"] ran = int(random()*3) com .. 2023. 6. 29. 이전 1 다음