On Mon, Apr 12, 2021 at 11:55 AM [email protected] <[email protected]>
wrote:

> 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*?
>

The new code follows the pattern used throughout the conversion.

Please test the code, and we'll go from there.

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/CAMF8tS2pcz5%2B%3DRLRmUTU14O1y0K-DPUfJpPyUeeEE7p%2B6GJC3w%40mail.gmail.com.

Reply via email to