tkinter input text box
from tkinter import *
textBox = Entry(text="Placeholder text")
tkinter input text box
from tkinter import *
textBox = Entry(text="Placeholder text")
creating a text box with tkinter py
import tkinter as tk
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()
def create_widgets(self):
self.w3=tk.Entry(self.master)
self.w3.pack(side='top')
self.quit = tk.Button(self.master, text='quit', command=self.master.destroy).pack()
self.test = tk.Button(self.master, text='print', command=self.get_text).pack()
def get_text(self):
print(self.w3.get())
root = tk.Tk()
app = Application(master=root)
app.mainloop()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us