Answers for "tkinter display text"

1

python tkinter ausgabefeld

from Tkinter import *

root = Tk()

w = Label(root, text="Hello Tkinter!")
w.pack()

root.mainloop()
Posted by: Guest on June-20-2020
0

python textbox

from Tkinter import *

root = Tk()
T = Text(root, height=2, width=30)
T.pack()
quote = """HAMLET: To be, or not to be--that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles
And by opposing end them. To die, to sleep--
No more--and by a sleep to say we end
The heartache, and the thousand natural shocks
That flesh is heir to. 'Tis a consummation
Devoutly to be wished."""
T.insert(END, quote)
mainloop()
Posted by: Guest on January-14-2021
0

python tkinter text get

def retrieve_input():
    input = self.myText_Box.get("1.0",END)
Posted by: Guest on July-23-2020
0

tkinter label

from Tkinter import *

root = Tk()
var = StringVar()
label = Label( root, textvariable=var, relief=RAISED )

var.set("Hey!? How are you doing?")
label.pack()
root.mainloop()
Posted by: Guest on August-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language