From 51ce329deaa5db2b7b66fbec49ddb4adf4a1267a Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Mon, 25 Feb 2019 14:03:15 -0500 Subject: [PATCH] Fixed for WindowFlags crassh when using the pyside2 version 5.12.1 --- PySimpleGUIQt/PySimpleGUIQt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 4e10a424..a4380baa 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -1205,7 +1205,7 @@ class Text(Element): :param key: :param tooltip: ''' - self.DisplayText = text + self.DisplayText = str(text) self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR self.Justification = justification or 'left' self.Relief = relief @@ -5596,7 +5596,7 @@ def StartupTK(window): window.QTApplication.setActiveWindow(window.QT_QMainWindow) - flags = 0 + flags = QtCore.Qt.WindowFlags() if window.NoTitleBar: flags |= Qt.FramelessWindowHint flags |= QtCore.Qt.Tool