How To Create Text Boxes - PyQt5 GUI Thursdays #4

Codemy.com
Codemy.com
29.3 هزار بار بازدید - 4 سال پیش - In this video I'll show
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
4 سال پیش در تاریخ 1399/11/23 منتشر شده است.
29,373 بـار بازدید شده
... بیشتر