Without testing it I don't think that will work. *StyledPanel *has been 
replaced by *Raised*.  I would expect something like this would do it -

Sunken = QtWidgets.QFrame.Shadow.Sunken if isQt6 else self.Sunken 
Raised = QtWidgets.QFrame.Shadow.Raised if isQt6 else self.StyledPanel
self.setFrameStyle(Raised | Sunken) 

Also, couldn't *self.Shadow* be used instead of *QtWidgets.QFrame.Shadow*?
On Monday, April 12, 2021 at 11:59:16 AM UTC-4 Edward K. Ream wrote:

> On Mon, Apr 12, 2021 at 10:32 AM [email protected] <[email protected]> 
> wrote:
>
>> Looks like the names of the constants have been changed to
>>
>> label.setFrameStyle(QFrame <https://doc.qt.io/qt-6/qframe.html#QFrame>::
>> Panel | QFrame <https://doc.qt.io/qt-6/qframe.html#QFrame>::Raised); 
>>
>> See https://doc.qt.io/qt-6/qframe.html#details
>>
>
> Rev d5a26c0 in ekr-qt attempts a fix.  The new code is:
>
> Shadow = QtWidgets.QFrame.Shadow.Sunken if isQt6 else self.Sunken
> self.setFrameStyle(self.StyledPanel | Shadow.Sunken)
>
> I only tested that Shadow.Sunken exists on qt6. Please let me know if the 
> fix works for you.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/47f09af1-5d80-42d2-83a6-a4fb1041b6d5n%40googlegroups.com.

Reply via email to