|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
btn1=Button(self.page, text='1', width=22, height=3, bg="Blue",command=self.clickButton).place(x=180, y=420)
btn2=Button(self.page, text='2', width=22, height=3, bg="Blue",command=self.clickButton).place(x=530, y=420)
btn3=Button(self.page, text='3', width=22, height=3, bg="Blue",command=self.clickButton).place(x=880, y=420)
btn4=Button(self.page, text='4', width=22, height=3, bg="Blue",command=self.clickButton).place(x=1230, y=420)
def clickButton(self):
我想在clickButton方法中知道点击的是哪个按钮,根据点击的按钮的不同跳转到不同页面,应该怎么获取点击的是那个按钮 |
|