PySimpleGUI/PySimpleGUIQt
MikeTheWatchGuy 829ececa2c Updated Readme 2018-11-10 20:22:53 -05:00
..
Demo_HowDoI.py Renamed to new PySimpleGUIQt name.... this time for sure 2018-11-08 15:13:53 -05:00
PySimpleGUIQt.py Update the contents of Table Element 2018-11-10 17:32:24 -05:00
Qt_All_Widgets.py Removed Mac Look and Feel restriction. change_submits callbacks for lots of elements! 2018-11-09 15:06:01 -05:00
Qt_Dial.py Table - change_submits parameter, Slider enable/disable, update. 2018-11-10 17:26:59 -05:00
Qt_Test.py Renamed to new PySimpleGUIQt name.... this time for sure 2018-11-08 15:13:53 -05:00
Qt_Widget_Summary.py Table - change_submits parameter, Slider enable/disable, update. 2018-11-10 17:26:59 -05:00
question.ico Renamed to new PySimpleGUIQt name.... this time for sure 2018-11-08 15:13:53 -05:00
readme.md Updated Readme 2018-11-10 20:22:53 -05:00

readme.md

pysimplegui_logo

Downloads

Awesome Meter

Python Version

PySimpleGUIQt

The Pre-Alpha Release

Announcements of Latest Developments


Getting Started with PySimpleGUIQt

Welcome to the Pre-Alpha Release of PySimpleGUI for Qt!

You can use the exact same code that you are running on the older, tkinter, version of PySimpleGUI.

PySimpleGUIQt uses PySide2 for access to Qt.

Differences between PySimpleGUI and PySimpleGUIQt

Sizes

IMPORTANT NOTE if you are porting from tkinter to Qt - You will need to make one important change to your code.... You must change your size parameters to be in PIXELS instead of CHARACTERS.

Fonts

Fonts should be in the format (font family, size). The original PySimpleGUI also allowed a font string 'Family Size' but that option is not available (yet) in the Qt version. I'll add it though so the code ports straight over.

Installing PySimpleGUIQt for Python 3

pip install --upgrade PySimpleGUIQt

On some systems you need to run pip3.

pip3 install --upgrade PySimpleGUIQt     

Installing PySide2 for Python 3

pip install PySide2

Testing your installation

Once you have installed, or copied the .py file to your app folder, you can test the installation using python. At the command prompt start up Python.

python3      
>>> import PySimpleGUIQt    
>>> PySimpleGUIQt.main()      

You will see a sample window in the center of your screen. If it's not installed correctly you are likely to get an error message during one of those commands

Here is the window you should see:

sample window

Prerequisites

Python 3
PySide2

Using - Python 3

To use in your code, simply import....
import PySimpleGUIQt as sg

Then use the exact same code as any other PySimpleGUI program that runs on tkinter.

Status

Functioning features

Features are being added daily to this Qt port of PySimpleGUI.
These Elements are "complete" (a relative term... more are more complete than others):

  • Text
  • Input single line
  • Input multiline
  • Output multiline (new)
  • Dial (new)
  • Output - reroute stdout
  • Spinner
  • Sliders
  • Buttons - RButtons, CButtons, Short-cut Buttons
  • Checkbox
  • Radio Buttons
  • Listbox
  • ComboBox
  • Labeled Frames
  • Columns - enables you to make pretty much any layout!
  • Alpha channel for windows
  • No Title Bar setting
  • Enter submits for multiline
  • Fonts
  • Colors for text and background
  • Timeouts for Read calls
  • Change Submits parametes for most Elements
  • Table
    • Basic display
    • Read selected rows
    • change_submits events
    • Updates
  • Image as a background (new feature)

Missing Features

Notable MISSING features at the moment include:

  • Graphs Element
  • Image Element
  • Tree Element - the more complex Elements have not yet been ported. Stay tuned, new ones being added daily!
  • Tab & tab group Elements
  • Menus
  • Change submits - for radio buttons

Design

Author

MikeTheWatchGuy

Demo Code Contributors

License

GNU Lesser General Public License (LGPL 3) +

Acknowledgments