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 key:
|
||||||
:param tooltip:
|
:param tooltip:
|
||||||
'''
|
'''
|
||||||
self.DisplayText = text
|
self.DisplayText = str(text)
|
||||||
self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR
|
self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR
|
||||||
self.Justification = justification or 'left'
|
self.Justification = justification or 'left'
|
||||||
self.Relief = relief
|
self.Relief = relief
|
||||||
|
@ -5596,7 +5596,7 @@ def StartupTK(window):
|
||||||
|
|
||||||
window.QTApplication.setActiveWindow(window.QT_QMainWindow)
|
window.QTApplication.setActiveWindow(window.QT_QMainWindow)
|
||||||
|
|
||||||
flags = 0
|
flags = QtCore.Qt.WindowFlags()
|
||||||
if window.NoTitleBar:
|
if window.NoTitleBar:
|
||||||
flags |= Qt.FramelessWindowHint
|
flags |= Qt.FramelessWindowHint
|
||||||
flags |= QtCore.Qt.Tool
|
flags |= QtCore.Qt.Tool
|
||||||
|
|
Loading…
Reference in New Issue