Python Turtle: Getting Text Input | Textbox with blinking cursor | Detect keys pressed by User

Опубликовано: 18 Июль 2021
на канале: Code King
3,335
45

Hello Everyone! This is a video tutorial on how to take text input in python turtle by directly drawing it on to the screen instead of using a widget using tkinter. I also show here how to add a blinking cursor and add states to the textbox to indicate when it is active or not based on whether the user clicked it or not.

Code used in the video: https://github.com/tank-king/Tutorial...

Reference links:
Lambda Functions: https://docs.python.org/3/reference/e...
Partial Function [functools module]: https://docs.python.org/3/library/fun...

In case of any queries, you can post them in the comments, or you can join my discord server.
Discord Server Link:   / discord  

TimeStamps:
00:00 : Overview
00:15 : Basic Setup
00:33 : Making the TextBox class
01:56 : Drawing the textbox borders
02:43 : Adding text to the textbox
03:51 : Adding a blinking cursor
05:00 : Adding an active state
06:00 : Adding text input
07:30 : Adding a placeholder text
07:49 : Adding uppercase and space to valid input
08:32 : Restricting the text to the textbox length
09:05 : Deleting text using BackSpace

Songs used (in order)
Artist: Patrick Patrikios
Cover
Hot Coffee
Diggy
Select


На этой странице сайта вы можете посмотреть видео онлайн Python Turtle: Getting Text Input | Textbox with blinking cursor | Detect keys pressed by User длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Code King 18 Июль 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,335 раз и оно понравилось 45 зрителям. Приятного просмотра!