For example, in the code below, we create a string variable using StringVar() and assign it to the textvariable parameter of Label widget. import tkinter as tk.
確定! 回上一頁