tobby48 6 年 前
コミット
97bfc09d49
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2
    2
      src/kr/co/swh/lecture/python/pyqt5/pushbutton2.py

+ 2
- 2
src/kr/co/swh/lecture/python/pyqt5/pushbutton2.py ファイルの表示

@@ -11,9 +11,9 @@ class MyWindow(QMainWindow):
11 11
 
12 12
         button = QPushButton("눌러봐", self)
13 13
         button.move(50, 30)
14
-        button.clicked.connect(self.click)
14
+        button.clicked.connect(self.pressed)
15 15
 
16
-    def click(self):
16
+    def pressed(self):
17 17
         QMessageBox.about(self, "메세지 박스", "눌렀어요.")
18 18
 
19 19
 if __name__ == "__main__":