1. 程式人生 > >PyQt 第一個GUI應用例子

PyQt 第一個GUI應用例子

  • maxLength() : This method is used to specify the maximum length of text that can be entered in the Line Edit widget.
  • setText() : This method is used for assigning text to the Line Edit widget.
  • text() : This method accesses the text entered in the Line Edit widget.
  • clear() : This method clears or deletes the complete content of the Line Editwidget.
  • setFocus() : This method positions the cursor on the specified Line Editwidget.