Answers for "how to make an input box in tkinter"

4

tkinter input text box

from tkinter import *


textBox = Entry(text="Placeholder text")
Posted by: Guest on June-11-2021
1

how to add input box in tkinter

from tkinter import *

window = Tk()
# entry box
my_input = Entry()
my_input.pack()

window.mainloop()
Posted by: Guest on February-01-2021
0

tkinter input box

import tkinter as tk

root= tk.Tk()

canvas1 = tk.Canvas(root, width = 400, height = 300)
canvas1.pack()

entry1 = tk.Entry (root) 
canvas1.create_window(200, 140, window=entry1)

def getSquareRoot ():  
    x1 = entry1.get()
    
    label1 = tk.Label(root, text= float(x1)**0.5)
    canvas1.create_window(200, 230, window=label1)
    
button1 = tk.Button(text='Get the Square Root', command=getSquareRoot)
canvas1.create_window(200, 180, window=button1)

root.mainloop()
Posted by: Guest on July-09-2021
4

read value from entry tkinter

#ent is the name of the Entry
s = ent.get()
Posted by: Guest on April-20-2020
1

how to create a enter box in tkinter

canvas1 = tk.Canvas(root, width = 400, height = 300)
canvas1.pack()
Posted by: Guest on June-10-2020

Code answers related to "how to make an input box in tkinter"

Browse Popular Code Answers by Language