Skip to content

Commit 02b7d44

Browse files
committed
update for Pillow 12 and Qt 6
1 parent 669756b commit 02b7d44

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/life.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def drawCustomImg():
179179
img = Image.open(self.image)
180180
except Exception:
181181
return
182-
img = img.resize((self.pxWidth, self.pxHeight), Image.ANTIALIAS)
182+
img = img.resize((self.pxWidth, self.pxHeight), Image.Resampling.LANCZOS)
183183
frame.paste(img, box=(drawPtX, drawPtY))
184184

185185
def drawShape():

src/gui/presetmanager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def __init__(self, parent):
3535
self.lastFilter = "*"
3636
self.presetRows = [] # list of (comp, vers, name) tuples
3737

38-
# FIXME
39-
# self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
38+
self.setWindowFlags(QtCore.Qt.WindowType.WindowStaysOnTopHint)
4039

4140
# connect button signals
4241
self.pushButton_delete.clicked.connect(self.openDeletePresetDialog)

0 commit comments

Comments
 (0)