How to get the Tkinter Label text?

前端 未结 2 1372
灰色年华
灰色年华 2020-12-08 10:37

Im making a list of addresses that the user will select from, and the address text will be returned. I need to use Tkinter.Label because the Tkinter.List

2条回答
  •  孤城傲影
    2020-12-08 11:21

    label = Label(text = 'Hello, World!')
    print(label['text']) # output is: Hello, World!
    

提交回复
热议问题