Select All and Clear - Build A Text Editor Part 9 - Python Tkinter GUI Tutorial #112

preview_player
Показать описание
In this video I'll show you how to select all text and clear text for our text editor using tkinter and Python.

Selecting all text in a Tkinter text widget is fairly straight forward, we'll just create a tag call sel that Tkinter knows how to handle.

Clearing the text from a text widget is even easier! We'll just use the delete() function and set the range from 1.0 to end.
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

Very good series. Excellent videos. Thank you very much.

anurasenarathna
Автор

Thank you so much this series has helped me so much .

suryabhavithperugupalli
Автор

How to make many sizes for app like the grid system in web development ?
Example: when click maximize the text boxes and buttons change their order

ramehharmouch
Автор

there is a problem in the text editor!

lets say you copy something for the text, delete the ttext and type some new text, hen you hightight the new text and paste the old text, since the new text is highlighted you would want to delete the new text and paste the old text in, but if the new text is not hilighted then you would want to just paste the old text beside the new text and if the text box was empty you would just want to paste the text you copied last. Can you fix that?

kuaboiilol
Автор

One mini-boo-boo? I think you left accelerator="(Ctrl+y)" attribute on the Edit menu definition for "Clear All". It's duplicating (due to the copy-paste) the same accelerator shortcut for "Redo".
Looking forward to more vids. Thank you John E.

johngiangrande
Автор

Is there a trick for doing a "Clear All" but having it Clear multiple Entry Boxes rather than just the 1 my_text that the def is aimed at?

Romalian
Автор

You don't need lambda, just put e=None

damus
Автор

Hi,
How can I select all items in a treeview?

sananragimov
Автор

Sir you are great teacher and your videos are really nice but still waiting for a video on how to display a graph(matplotlib) inside a tkinter window instead of it popping up in another window. If you could do that as a subscriber request that would be great

suryanshtokas
Автор

Sir, there are two main problems in the text editor:
1) When we save the file, all the bold, italics, underline, and formatting (like change text color) are gone!
2) When we change the text color of the SELECTED text, the text that we type after becomes that color instead of the default black!
Also, sir, you haven't given more information on the Print function

luinérion
Автор

and thank you for your vids they are so awesome!
# my_label = Label(root, text = "Thank you Jhon Elder", fg = "Blue").pack()

kuaboiilol
welcome to shbcf.ru