Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to add strings with entry in tkinter

from tkinter import *
root=Tk()
name_info=Entry(root,width=30)
name_info.grid(row=0,column=0)
name="My name is "
def show_sentence():
    name_label = Label(root , text=name + str(name_info.get())).grid(row=2 , column=0)
showname_btn=Button(root,text="submit",command=show_sentence).grid(row=1,column=0)
root.mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: what is topic modelling in nlp 
Python :: how to truncate a float in jinja template 
Python :: scatter plot python color according to gender 
Python :: HIDING AND ENCRYPTING USING BASE24 MODULE 
Python :: python tk highlightthicknes 
Python :: Customizing multiple plots in the same figure 
Python :: how to install python on linux chromebook 
Python :: how to check if the update_one success in flask 
Python :: python not showing output 
Python :: allow django imagefield accept base 64 image 
Python :: 100 days of python 
Python :: Basic 13 Algorithm 
Python :: Insert datframe column at specific place 
Python :: change font size pandas scatter_matrix 
Python :: windows py SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate 
Python :: change between two python 3 version in raspberrry pi 
Python :: quoto x discord selfbot 
Python :: change the surface color rhinopython 
Python :: if user_answer==answer: ecpeted index erroe pythin fx 
Python :: python input byte array 
Python :: dataframe groupby rank by multiple column value 
Python :: python - dataframe columns is a list - drop 
Python :: python run scp command 
Python :: create a variable python 
Python :: ios iterate through dictionary 
Python :: Build the union of a list of RDDs 
Python :: How to hyperlink image in blender 
Python :: oscillating fan 
Python :: add input to list python 
Python :: python set class variable 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =