定制窗口尺寸
root = tkinter.Tk()
root.minsize(400,500)
root.title('微硬计算器')
#生成用于保存数值的变量
self.num...)
buttonDel.place(relx=0.5,rely=0.4,relwidth=0.25,relheight=0.1)
#绑定按钮 生成鼠标经过变色效果
buttonDel.bind...(relx=0,rely=0.5,relwidth=0.25,relheight=0.1)
#绑定按钮 生成鼠标经过变色效果
button1.bind('',self.changeBg...(relx=0,rely=0.6,relwidth=0.25,relheight=0.1)
#绑定按钮 生成鼠标经过变色效果
button4.bind('',self.changeBg...,width=30,height = 1,padx=0)
bottomLabel.place(relx=0,rely=0.9,relwidth=1.0,relheight=0.1)
#主窗口循环