No input possible after tk

后端 未结 2 1777
既然无缘
既然无缘 2021-01-29 11:17

If have this piece of code:

import Tkinter as tk
import tkFileDialog

menu = tk.Tk()
res = tkFileDialog.askopenfilename() # un-/comment this line
label = tk.Labe         


        
2条回答
  •  旧时难觅i
    2021-01-29 11:49

    askopenfilenamehas it's own event loop. The programm stops, until you selected a filename, and continues afterwards.

提交回复
热议问题