Page 218 - 2020학년도 MDP과제발표회 자료집 (통신과) (3)
P. 218

self.num_pushbutton_5.clicked.connect(lambda
            state,


            button=self.num_pushbutton_5:  self.NumClicked(state,  button))

            self.num_pushbutton_6.clicked.connect(lambda
            state,
            button=self.num_pushbutton_6:  self.NumClicked(state,  button))
            self.num_pushbutton_7.clicked.connect(lambda
            state,

            button=self.num_pushbutton_7:  self.NumClicked(state,  button))
            self.num_pushbutton_8.clicked.connect(lambda
            state,
            button=self.num_pushbutton_8:  self.NumClicked(state,  button))
            self.num_pushbutton_9.clicked.connect(lambda

            state,
            button=self.num_pushbutton_9:  self.NumClicked(state,  button))
            self.num_pushbutton_0.clicked.connect(lambda
            state,

            button=self.num_pushbutton_0:  self.NumClicked(state,  button))


            self.del_pushbutton.clicked.connect(self.Delete)  #delete  버튼과  연  결된  함수
            self.home_pushbutton.clicked.connect(self.Back)  #  home  button    과  연결된  함수



            #  키패드버튼  이미지  self.num_pushbutton_1.setIcon(QIcon(QPixmap("n1.png")))
            self.num_pushbutton_2.setIcon(QIcon(QPixmap("n2.png")))
            self.num_pushbutton_3.setIcon(QIcon(QPixmap("n3.png")))
            self.num_pushbutton_4.setIcon(QIcon(QPixmap("n4.png")))

            self.num_pushbutton_5.setIcon(QIcon(QPixmap("n5.png")))
            self.num_pushbutton_6.setIcon(QIcon(QPixmap("n6.png")))
            self.num_pushbutton_7.setIcon(QIcon(QPixmap("n7.png")))
            self.num_pushbutton_8.setIcon(QIcon(QPixmap("n8.png")))
            self.num_pushbutton_9.setIcon(QIcon(QPixmap("n9.png")))
            self.num_pushbutton_0.setIcon(QIcon(QPixmap("n0.png")))

            self.num_pushbutton_1.setIconSize(QSize(80,80))
            self.num_pushbutton_2.setIconSize(QSize(80,80))
            self.num_pushbutton_3.setIconSize(QSize(80,80))



            self.num_pushbutton_4.setIconSize(QSize(80,80))
            self.num_pushbutton_5.setIconSize(QSize(80,80))
            self.num_pushbutton_6.setIconSize(QSize(80,80))
            self.num_pushbutton_7.setIconSize(QSize(80,80))


                                                         -  227  -
   213   214   215   216   217   218   219   220   221   222   223