python Tkinter get() value from Entry Field

前端 未结 3 1179
感情败类
感情败类 2020-12-10 09:31

I have getting confused in getting the value from the Tkinter() Entry Field. I have this kind of code...

from Tkinter import*

def valueGET(val1, val2):
             


        
3条回答
  •  旧巷少年郎
    2020-12-10 10:30

    you need brackets in the print command in your function

    def valueGET(val1, val2):
        print val1 + "  " + val2
    

提交回复
热议问题