How To Create Text Boxes - PyQt5 GUI Thursdays #4

preview_player
Показать описание
In this video I'll show you how to create Text Boxes with PyQT5 and Python.

Text boxes are really easy to create with PyQT5. You just use the QTextEdit widget. Some of the attributes of the text box that you can set are:

html="",
plainText="",
acceptRichText=True,
lineWrapMode=qtw.QTextEdit.FixedColumnWidth,
lineWrapColumnOrWidth=50,
placeholderText="",
readOnly=False)

As you can see. You can use plain text, rich text, or even HTML in this text box widget!

Timecodes
0:00​ - Intro
1:26 - Create QTextEdit Textbox Widget
2:06 - Set Basic QTextEdit Attributes
4:33 - Update Label With TextBox Text
5:17 - Update Text Box Text Programatically
6:21 - Use Rich Text in the TextBox
7:28 - Default TextBox Plain Text
8:15 - Using HTML in the TextBox
9:20 - Changing LineWrap Text Width
11:07 - Set ReadOnly To True To Lock Textbox
11:37 - Conclusion
Рекомендации по теме
Комментарии
Автор

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

Codemycom
Автор

Great job, great python tutorials, great lessons
FEED that algorithm if you want more like this guys. Theres not any other ppl on youtube doing this so well

RyanDanielG
Автор

Great tutorial ❤️❤️❤️ By the way happy birthday in advance👍🏻👍🏻👍🏻

adityachoudhary
Автор

Great series 👏😊 Looking forward to learn a lot!!
Pls cover Model View Architecture in detail. There is very less resource on this in YouTube 🥺.
Projects will be great to learn a lot🤞

arpitagec
Автор

Hey, great tutorials on PyQt5! Just wanted to know when will you explain how to use the Qt designer, which I've heard makes it fast to develop GUI interfaces.

Dhruv_Jadhav
Автор

Greatest tutorial in the world 🌎 ❤️ 👌 🙌

skysuraj
Автор

Thanks so much for your video series!

thanhannguyenphuc
Автор

Great tutorial, as always! A new sub-series on a text editor with PyQT5 as you did with tkinter, would be greatly appreciated!

AlexThess
Автор

what software do you use to record your videos?

FutbolFilmFactory
Автор

what to do if multi line text is needed to be picked up from QEditText box into the labels?

ironF
Автор

Hey John Can You Make A Tut Series On Ursina and Pygame? BTW Love your vids

techwithgantavya
Автор

Sir do you know about "dear pygui" ? It looks modern and easier than pyqt5

darshanpanchal
Автор

How to add text field like ms word, write by bubble clicking anywhere

civilsof
Автор

why running the app in visual studio closes right away, i had to add an input at the end for it to stay open

Redwane-Music
Автор

you put a ", " after readonly = False. is that necessary?

seanli
Автор

How I can assign Enter key for the button?

thonglequang
Автор

Hello. How can I validate the text box ?

saipatil
Автор

Great job, great python tutorials, great lessons
FEED that algorithm if you want more like this guys. Theres not any other ppl on youtube doing this so well

RyanDanielG