tkinter吧 关注:127贴子:368
  • 4回复贴,共1

新人求教,这里出了什么问题

只看楼主收藏回复



IP属地:广西1楼2021-11-13 16:58回复
    父类多打了()


    来自手机贴吧2楼2021-11-14 13:03
    收起回复
      其中一种修改方式:
      import tkinter #导入tkinter模块
      class wxWindows():
      def __init__(self):
      self.root = tkinter.Tk()
      self.root.title("******************")
      self.button1=tkinter.Button(self.root,anchor=tkinter.E,text="按钮1",width=30,height=7)
      self.button1.pack()
      self.root.mainloop()
      if __name__ == '__main__':
      wxWindows()


      IP属地:山东3楼2021-12-11 11:12
      回复