From ff4bd148fa92ec0b1964f37832f45fff4b60cb19 Mon Sep 17 00:00:00 2001 From: Joe R Date: Wed, 9 Mar 2022 18:47:25 -0500 Subject: [PATCH] Added missing methods causing a crash in Kivy. --- pysollib/kivy/tkutil.py | 5 +++++ pysollib/pysolgtk/tkutil.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pysollib/kivy/tkutil.py b/pysollib/kivy/tkutil.py index a1f10259..e13ccc7b 100644 --- a/pysollib/kivy/tkutil.py +++ b/pysollib/kivy/tkutil.py @@ -329,6 +329,11 @@ def createImage(width, height, fill, outline=None, outwidth=1): return image +def createImagePIL(width, height, fill, outline=None, outwidth=1): + # Is this needed for Kivy? + createImage(width, height, fill, outline=outline, outwidth=outwidth) + + def shadowImage(image, color='#3896f8', factor=0.3): logging.info("shadowImage: ") diff --git a/pysollib/pysolgtk/tkutil.py b/pysollib/pysolgtk/tkutil.py index c8ccca6f..57827207 100644 --- a/pysollib/pysolgtk/tkutil.py +++ b/pysollib/pysolgtk/tkutil.py @@ -159,6 +159,11 @@ def createImage(width, height, fill, outline=None): return _PysolPixmap(width=width, height=height, fill=fill, outline=outline) +def createImagePIL(width, height, fill, outline=None): + # Is this needed for GTK? + createImage(width, height, fill, outline=outline) + + def shadowImage(image): # FIXME return None