Fixed for WindowFlags crassh when using the pyside2 version 5.12.1

This commit is contained in:
MikeTheWatchGuy 2019-02-25 14:03:15 -05:00
parent 35ca4a3756
commit 51ce329dea
1 changed files with 2 additions and 2 deletions

View File

@ -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