schrodinger.application.models.gui.experimental_px.paths module¶
Utilities for creating QPainterPath objects.
- class schrodinger.application.models.gui.experimental_px.paths.Corner¶
Bases:
FlagFlags specifying which corners to round.
- TopLeft = 1¶
- TopRight = 2¶
- BottomLeft = 4¶
- BottomRight = 8¶
- Top = 3¶
- Bottom = 12¶
- Left = 5¶
- Right = 10¶
- All = 15¶
- schrodinger.application.models.gui.experimental_px.paths.make_rounded_path(rect: QRectF, corners: Corner = Corner.All, radius: float = 4) QPainterPath¶
Create a path with specified corners rounded.
- Parameters:
rect – The rectangle to create the path for.
corners – Which corners to round (default: all corners).
radius – The corner radius.
- Returns:
A QPainterPath with the specified corners rounded.