Tkinter Python GUI Issues

后端 未结 2 1165
甜味超标
甜味超标 2020-12-22 15:04

Below is my code, it runs but I\'m not sure how to get the \"Run text\" button to prompt me to open text file in new window, currently a new window appears with a \"Quit\" b

2条回答
  •  粉色の甜心
    2020-12-22 15:25

    If you want that "Run text" open's a file dialog change called method:

    self.button1 = tk.Button(self.frame, text = 'Run Text', width = 25, command = self.openFile)
    

提交回复
热议问题