Skip to content

Pyside6 #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions FreeSimpleGUIQt/FreeSimpleGUIQt/FreeSimpleGUIQt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# Copyright 2020 PySimpleGUI.org


from PySide2.QtWidgets import (
from PySide6.QtWidgets import (
QApplication,
QLabel,
QWidget,
Expand All @@ -44,7 +44,7 @@
QDial,
QTableWidget,
)
from PySide2.QtWidgets import (
from PySide6.QtWidgets import (
QSlider,
QCheckBox,
QRadioButton,
Expand All @@ -55,7 +55,7 @@
QDialog,
QAbstractItemView,
)
from PySide2.QtWidgets import (
from PySide6.QtWidgets import (
QSpacerItem,
QFrame,
QGroupBox,
Expand All @@ -72,22 +72,22 @@
QTreeWidgetItemIterator,
QProgressBar,
)
from PySide2.QtWidgets import (
from PySide6.QtWidgets import (
QTableWidgetItem,
QGraphicsView,
QGraphicsScene,
QGraphicsItemGroup,
QMenu,
QMenuBar,
QAction,
QSystemTrayIcon,
QColorDialog,
)
from PySide2.QtGui import QPainter, QPixmap, QPen, QColor, QBrush, QPainterPath, QFont, QImage, QIcon
from PySide2.QtCore import Qt, QEvent, QSize
import PySide2.QtGui as QtGui
import PySide2.QtCore as QtCore
import PySide2.QtWidgets as QtWidgets
from PySide6.QtGui import QPainter, QPixmap, QPen, QColor, QBrush, QPainterPath, QFont, QImage, QIcon, QAction

from PySide6.QtCore import Qt, QEvent, QSize
import PySide6.QtGui as QtGui
import PySide6.QtCore as QtCore
import PySide6.QtWidgets as QtWidgets

using_pyqt5 = False

Expand Down
22 changes: 5 additions & 17 deletions FreeSimpleGUIQt/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ Welcome to the Alpha Release of FreeSimpleGUI for Qt!

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

FreeSimpleGUIQt uses **PySide2** OR **PyQt5** for access to Qt. **PyQt5 has been having a number of problems recently however so tread lightly.**
FreeSimpleGUIQt uses **PySide6** as of version 2.0.0 -- Version 1.0 used PySide2

## To minimize potential problems and broken features, if at all possible, use pyside2 instead of PyQt5.

## Porting your FreeSimpleGUI code to FreeSimpleGUIQt

Expand Down Expand Up @@ -46,18 +45,11 @@ Fonts should be in the format (font family, size). You can use the older string

pip3 install --upgrade --no-cache-dir FreeSimpleGUIQt

### Installing PySide2 for Python 3
### PySide dependency

It is _highly_ recommended that you use PySide2. The code will attempt to use PyQt5 is pyside2 isn't found. PyQt5 is **not** recommended.

To install Pyside2:

```pip install PySide2```


**PyQt5 is no longer supported. Only PySide2 is supported**

Too many differences were causing a lot of headaches. Supporting just 1 Qt port is difficult enough. Parsing out the differences between pyside2 and pyqt5 was simply getting to be too much
As of version 2.0.0 this project depends on PySide6, which in turn requires Python3.9 or greater. Version 1.0 of this project
used PySide2, which supports Python versions up to 3.10. The correct version of FreeSimpleGUIQt and respective
required version of PySide will be installed automatically when you install `FreeSimpleGUIQt` using `pip`.



Expand All @@ -79,10 +71,6 @@ Here is the window you should see:



## Prerequisites Python 3
PySide2 or PyQt5 (experimental)


## Using - Python 3
To use in your code, simply import....
`import FreeSimpleGUIQt as sg`
Expand Down
13 changes: 6 additions & 7 deletions FreeSimpleGUIQt/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = FreeSimpleGUIQt
version = 1.0.0
version = 2.0.0
maintainer = Spencer Phillip Young
maintainer_email = [email protected]
description = The free-forever Python GUI framework.
Expand All @@ -10,14 +10,11 @@ keywords = PySimpleGui fork GUI UI tkinter Qt WxPython Remi wrapper simple easy
url = https://github.com/spyoungtech/FreeSimpleGui
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Topic :: Multimedia :: Graphics
Operating System :: OS Independent
Expand All @@ -27,4 +24,6 @@ packages = FreeSimpleGUIQt
include_package_data = True

install_requires =
pyside2
pyside6

python_requires = >=3.9