Skip to content

Commit 153fae1

Browse files
authored
Merge pull request #57 from spyoungtech/pyside6
Pyside6
2 parents 53fcff0 + fd81f2c commit 153fae1

File tree

3 files changed

+21
-34
lines changed

3 files changed

+21
-34
lines changed

FreeSimpleGUIQt/FreeSimpleGUIQt/FreeSimpleGUIQt.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# Copyright 2020 PySimpleGUI.org
3232

3333

34-
from PySide2.QtWidgets import (
34+
from PySide6.QtWidgets import (
3535
QApplication,
3636
QLabel,
3737
QWidget,
@@ -44,7 +44,7 @@
4444
QDial,
4545
QTableWidget,
4646
)
47-
from PySide2.QtWidgets import (
47+
from PySide6.QtWidgets import (
4848
QSlider,
4949
QCheckBox,
5050
QRadioButton,
@@ -55,7 +55,7 @@
5555
QDialog,
5656
QAbstractItemView,
5757
)
58-
from PySide2.QtWidgets import (
58+
from PySide6.QtWidgets import (
5959
QSpacerItem,
6060
QFrame,
6161
QGroupBox,
@@ -72,22 +72,22 @@
7272
QTreeWidgetItemIterator,
7373
QProgressBar,
7474
)
75-
from PySide2.QtWidgets import (
75+
from PySide6.QtWidgets import (
7676
QTableWidgetItem,
7777
QGraphicsView,
7878
QGraphicsScene,
7979
QGraphicsItemGroup,
8080
QMenu,
8181
QMenuBar,
82-
QAction,
8382
QSystemTrayIcon,
8483
QColorDialog,
8584
)
86-
from PySide2.QtGui import QPainter, QPixmap, QPen, QColor, QBrush, QPainterPath, QFont, QImage, QIcon
87-
from PySide2.QtCore import Qt, QEvent, QSize
88-
import PySide2.QtGui as QtGui
89-
import PySide2.QtCore as QtCore
90-
import PySide2.QtWidgets as QtWidgets
85+
from PySide6.QtGui import QPainter, QPixmap, QPen, QColor, QBrush, QPainterPath, QFont, QImage, QIcon, QAction
86+
87+
from PySide6.QtCore import Qt, QEvent, QSize
88+
import PySide6.QtGui as QtGui
89+
import PySide6.QtCore as QtCore
90+
import PySide6.QtWidgets as QtWidgets
9191

9292
using_pyqt5 = False
9393

FreeSimpleGUIQt/readme.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ Welcome to the Alpha Release of FreeSimpleGUI for Qt!
1414

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

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

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

2120
## Porting your FreeSimpleGUI code to FreeSimpleGUIQt
2221

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

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

49-
### Installing PySide2 for Python 3
48+
### PySide dependency
5049

51-
It is _highly_ recommended that you use PySide2. The code will attempt to use PyQt5 is pyside2 isn't found. PyQt5 is **not** recommended.
52-
53-
To install Pyside2:
54-
55-
```pip install PySide2```
56-
57-
58-
**PyQt5 is no longer supported. Only PySide2 is supported**
59-
60-
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
50+
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
51+
used PySide2, which supports Python versions up to 3.10. The correct version of FreeSimpleGUIQt and respective
52+
required version of PySide will be installed automatically when you install `FreeSimpleGUIQt` using `pip`.
6153

6254

6355

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

8072

8173

82-
## Prerequisites Python 3
83-
PySide2 or PyQt5 (experimental)
84-
85-
8674
## Using - Python 3
8775
To use in your code, simply import....
8876
`import FreeSimpleGUIQt as sg`

FreeSimpleGUIQt/setup.cfg

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = FreeSimpleGUIQt
3-
version = 1.0.0
3+
version = 2.0.0
44
maintainer = Spencer Phillip Young
55
maintainer_email = [email protected]
66
description = The free-forever Python GUI framework.
@@ -10,14 +10,11 @@ keywords = PySimpleGui fork GUI UI tkinter Qt WxPython Remi wrapper simple easy
1010
url = https://github.com/spyoungtech/FreeSimpleGui
1111
classifiers =
1212
Programming Language :: Python :: 3
13-
Programming Language :: Python :: 3.4
14-
Programming Language :: Python :: 3.5
15-
Programming Language :: Python :: 3.6
16-
Programming Language :: Python :: 3.7
17-
Programming Language :: Python :: 3.8
1813
Programming Language :: Python :: 3.9
1914
Programming Language :: Python :: 3.10
2015
Programming Language :: Python :: 3.11
16+
Programming Language :: Python :: 3.12
17+
Programming Language :: Python :: 3.13
2118
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
2219
Topic :: Multimedia :: Graphics
2320
Operating System :: OS Independent
@@ -27,4 +24,6 @@ packages = FreeSimpleGUIQt
2724
include_package_data = True
2825

2926
install_requires =
30-
pyside2
27+
pyside6
28+
29+
python_requires = >=3.9

0 commit comments

Comments
 (0)