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

Published: 18 July 2021
on channel: 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


On this page of the site you can watch the video online Python Turtle: Getting Text Input | Textbox with blinking cursor | Detect keys pressed by User with a duration of hours minute second in good quality, which was uploaded by the user Code King 18 July 2021, share the link with friends and acquaintances, this video has already been watched 3,335 times on youtube and it was liked by 45 viewers. Enjoy your viewing!