Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tkinter stringvar not working

Try This One:

def ventanaPrincipal():
    top = Tkinter.Tk()
    var = Tkinter.StringVar()
    L1 = Tkinter.Label(top, text="Introduzca el nombre"+"
"+ "completo del remitente:")
    E1 = Tkinter.Entry(top,textvariable = var)
    def buscar():
        buscarPorNombreYApellidos(var.get())

    B1 = Tkinter.Button(top, text ="Buscar", command = buscar)
    L1.pack(side = Tkinter.LEFT)
    B1.pack(side = Tkinter.RIGHT)
    E1.pack( side = Tkinter.RIGHT)
    top.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: convert excel workbook to dataframe 
Python :: sorting decimal numbers in python 
Python :: python fiboncci 
Python :: quantile-quantile plot python 
Python :: stacks in python 
Python :: create_polygon tkinter 
Python :: link_to class 
Python :: len of iterator python 
Python :: elementwise comparison list python 
Python :: CACHE_TYPE flask 
Python :: python area calculator 
Python :: pandas aggregate dataframe 
Python :: blur an image in python 
Python :: while not command in python 
Python :: change list item in python 
Python :: np.array([(1,2),(3,4)],dtype 
Python :: get height of image in pygame 
Python :: python how to import a module given a stringg 
Python :: python how to use logarithm 
Python :: python breadth first search 
Python :: python how to make integer show 2 numbers 
Python :: add list of dictionaries to pandas dataframe 
Python :: python form html 
Python :: python type hint list of specific values 
Python :: re.search() 
Python :: strip() 
Python :: ipython and virtualenvs 
Python :: for loop 
Python :: add data to empty column pandas 
Python :: // meaning in python 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =