Fixed for WindowFlags crassh when using the pyside2 version 5.12.1
This commit is contained in:
parent
35ca4a3756
commit
51ce329dea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue