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
In questa pagina del sito puoi guardare il video online Python Turtle: Getting Text Input | Textbox with blinking cursor | Detect keys pressed by User della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code King 18 luglio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,335 volte e gli è piaciuto 45 spettatori. Buona visione!