  Python     
 


Python     ,   - .  , Python     ,        GUI (Graphical User Interface)    .         Python        ,   PyQt, PySide, Tkinter, Kivy, WxPython  Dear PyGUI.





 

  Python     





 


        https://github.com/novts/python-gui.














  Python    -  ,    -    .

 , Python     ,          .








PyQt      Qt    Python.

 Qt -            C++,    ,   ,    XML.

PyQt    ,  Qt  Linux   UNIX- , Mac OS  Windows.

  2 : PyQt5,  Qt 5,  PyQt4,  Qt 4.

PyQt     Qt,     ,       SQL,  XML   .

PyQt     Qt Designer       Python   ,   Qt Designer.








PySide       Qt    Python.

  PySide  PyQt          Qt.

PyQt5   GPL   .

 PySide2   Qt  GPL, LGPL   .

           PyQt5,   PySide2.

    /       PySide2,    PyQt5    .








Tkinter             .

Tkinter        Tk  Python.

 Tk          .

Tkinter     Python.

 Tkinter     ,   Python-.

TKinter    ,     .

       ,    Tkinter  ,          .








Kivy     Python       -       .

Kivy   OpenGL                  Windows, MacOSX, Linux, Android, iOS  Raspberry.








WxPython         wxWidgets,     C++.

     Tkinter,     Python.

 WxPython      Python.








Dear

PyGUI         ,         Python.

Dear PyGui    ++ Dear ImGui,     .

       ,      .

             Python.

            Python.

      .




 PyQt









PyQt   ,       Qt  Python.

  Qt   C ++.

      PyQt5,      Qt5.








    PyQt5,   3.6.








            

PyCharm

.








  .       .

      ,     .








    PyQt     ,    pip install PyQt5.








          .








   PyQt    .

  PyQt5   QApplication, QLabel.

 QApplication          .

 QLabel     .

   QApplication   :

app = QApplication

  Qt            QApplication.

      ,  .

       ,    .

     ', !'.

    Qt        show.

        Qt     ,     .

     exec.








           

run

.

         .








        .

     .

      ,      ?

       Python  PyQt,       .

   .

     ,        ,   .

 Python          .

   ,    ,  PyInstaller, py2exe   ,        fbs,         PyQt.

     fbs.








      fbs startproject.

       src/main/python/  main.py.

 startproject       fbs.

      fbs run,    .

,        .








   ,      fbs     ApplicationContext.

   PyQt5      ,     .

 ApplicationContext         ,         fbs.

 ApplicationContext         QApplication,   ApplicationContext.app,     Qt        QApplication       .

,    ,  QMainWindow  .

    setAlignment   .

 setCentralWidget     QMainWindow.

     fbs run     .








    QMainWindow   

QT

.








,           , .

      ApplicationContext.

       resources,        resources, fbs   ApplicationContext.get_resource.

    ,      resources,       .

       ,   .

 resources    base     .

   ,     ,            ,    .

,     fbs,        .








      fbs freeze.

          .

     .








      NSIS          Windows.








    NSIS   

Windows

PATH.

      PyCharm,     .








      fbs installer.

          .

       .




   PyQt









  Qt           .








Qt     .

       .

   Qt            setLayout.








     QHBoxLayout      QWidget.








 QVBoxLayout   .








 QGridLayout    .

       , ,     .

          .








 QFormLayout     ,  QLabel  QLineEdit   .

            ,   .

           addLayout,         ,    .

,  Qt Widgets          .

 ,      PyQt,   : , , ,  ,    . .








    .

  ,        ,  ,     .

    ,            .

 ,     adjustSize,     .

          .

  move         .








    -     .

 PyQt         QLineEdit.

       ,     QTextEdit.

         QPushButton.

      QLineEdit,     text.

    Submit,    show,   text  QLineEdit.

    Clear,    clear  QLineEdit,     .

 SetEchoMode    ,      ,   .

  setFixedWidth,      QLineEdit  .

        100 .

   QPushButton.

   ,  ,     .

,     , .

    ,      .

       clicked.connect.

      ,    QIcon.

      ,   .








 QComboBox     ,       .

    ,        ,     .

         addItem.

           addItems.

      setFixedWidth.

,            currentText(),       .








     .

        ,        .

      stateChanged.connect.

        text,     .

     checkState,     0,      2    .

 isChecked  true,   .








   ,        .

         ,       .

      toggled.connect.

        text,     .

   ,        isChecked,   true  false,    .








   QLineEdit,  QTextEdit        .

,    QLineEdit,     , QTextEdit     .

     ,     toPlainText    clicked.connect.

 setPlaceholderText         ,      .

 setUndoRedoEnabled  /       Undo  Redo    Ctrl + Z  Ctrl + Y.








     ,        .

  PyQt5   QInputDialog,            .

        .

        ,   .

 getText   ,       .

  input   ,     True  False, ,     OK  .

      .

             .








      .

      /  ,    .

           .

             .








QMessageBox   ,            .

 ,    ,    .

     -    .

  setWindowTitle    .

 setText    .

 exec   .

   4   ,       setIcon.

       ʻ.

        ,  QMessageBox   .

  setStandardButtons,      .

  ,   ʻ   .

    .

  setDefaultButton,      .

         QMessageBox,    .

     ,    ,    .

          ,        setInformativeText.

      .

      ,      .

       setDetailedText.

,     3     ,   ,     ?

  buttonClicked.connect,       ,      .

     ,     popup,   buttonClicked.connect.

   text     .








 ProgressBar,           ,    , , ,   . .

    setGeometry,       .

     X  Y    .

          .

 setValue   .

   ,        0  100.

     ,   setRange.

 reset     .

 value     .








 PyQt QSlider          .

  Slider  ,   .

      .

    .

       Qt.Horizontal.

           setMinimum  setMaximum.

  setGeometry,      .

        X  Y  .

         .

    Ticks,   .

            .

  valueChanged,        show.

 ,    ,   show    .








 PyQt5 QDateEdit          .

            .

         , PyQt     .

        setMinimumDate  setMaximumDate.

   ,     date   toPyDate,       .




  .


   .

   ,     (https://www.litres.ru/timur-mashnin-301845/sozdanie-nastolnyh-python-prilozheniy-s-graficheskim/)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


