Build A Text Editor Part 4 - Cut Copy Paste - Python Tkinter GUI Tutorial #107

preview_player
Показать описание
In this video we'll work on our Cut, Copy, and Paste functions on the top menu bar.

We''ll also work on keyboard bindings for keyboard shortcuts to cut, copy and paste using Ctrl+c, Ctrl+v, and Ctrl+x

The Cut, Copy, and Paste functions are pretty straight forward, but we need a way to link them up to our keyboard shortcuts using the Windows Clipboard. We'll do that in this video as well.
Рекомендации по теме
Комментарии
Автор

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

Codemycom
Автор

Hi John, This is Abdullah from Egypt, your course is one of the best courses i have ever seen, i hope that you keep going and never stop teaching . Thanks man you helped me alot

abdallaahmed
Автор

please don't stop making tutorials you are so good at explaining

IceTheCoder
Автор

Man your course is the best course that i find for free and even more qualified than the other fee demanding tutorials thank you !

vftunrd
Автор

I learnt tkinter from John, soon after I had learnt Python, so naturally I was a beginner.
John is probably the best teacher ther is for beginners, take it from me!
I started out by learning tkinter with John and now I'm creating android application, with python in the back end.John provides a solid base for your coding endeavours.
But John, I would really appreciate if you start uploading tutorials on more advanced topics like kivy, networking with python, sockets, flutter and much more
Looking forward to the good times!

viswamberprasad
Автор

In the menu, you can add an "accelerator" option to show the shortcut keys like Ctrl+X or Ctrl+C

フウマックス
Автор

I really love your videos man, They are always straight to the point and I love them please can you do a video on freelancing

babi-hr
Автор

For all those watching after me, or facing issue that the cut & paste code isn't working properly, do the following.
1.Remove the keyboard binding from the code. (I think after some update it is not necessary)
2. In the cut function don't put the second if.. statement under else, let it run independently.

ExXGod
Автор

To make it easier: instead of creating the selection variable, put the selection in the global clipboard with the module win32clipboard

damus
Автор

We can also use the clipboard module or pyperclip as this cut, copy function would not allow us to paste it anywhere else on the machine

charchitdahiya
Автор

Hi! Thanks a lot for the great content! I really like your style! However, the paste_text() function does not seem work. I also ran your github code as a separate file and it still does not work, when I copy with Command-c and the try to paste with the menu option "Paste". "Paste" works only when the selected text is copied through the copy meny option. Am on a Mac Catalina. Am not sure if that plays any role. Thanks!

AlexThess
Автор

i have some problem! when I write word with capital letters (for example: ARTEM) and press ctrl+c, I can't paste with menu, but ctrl+v works

artemkhmil
Автор

Sir, while converting py to exe using pyinstaller... I have used some images in my app. I only need one file which includes all png along with exe in one file only.. so that it is easy for making stand alone apps... is there a way out?

codingstudio
Автор

You can make the videos on the Kivy library (for python) ?
Thanks you.

Le-Malus
Автор

I have a question, when I open a file but press cancel it wipes the current text. How do I change or fix this?

Thank you so much for helping me, I find tkinter super usefull.
I wish I could donate or buy the class from you, but I am too young :o

Zhisaoka
Автор

At video whose time position is 04:56,
selected = my_text.selection_get()
... this method only works when the widget's option's setting "exportselection" = True
Suggest to use an alternative code as below :
selected = my_text.get(tk.SEL_FIRST, tk.SEL_LAST)
Both these two coding should co-operate with a try ... except TclError to handle the situation
of nothing being selected when you call this function.

詹明憲-qu
Автор

Is there any way to move between multiple textboxes with the arrow keys?

darshanpanchal
Автор

self.filemenu.add_command(label="Quit", command=self.quit, accelerator="Ctrl+Q")

drewcunningham
Автор

Can tkinter detect a text box that's requiring input and write text to it using buttons and make the insertion focus stay at the application?
If so, how?

_itzmax_
Автор

I have a question. How to get the all text typed in text box. I want your help

nemithafernando