CFrame - Dliammc/CustomPyQt GitHub Wiki

A customizable frame that allows widgets to be added to it

Example

frame = CFrame(self)

frame.addWidget(button)

Arguments

Arguments Value
master self, Any Qt Widget or PyCt6 Widget
width integer, width in pixels
height integer, height in pixels
border_width integer, border width in pixels
corner_radius integer, corner radius in pixels
background_color tuple: ("light color", "dark color") or single color, background color
border_color tuple: ("light color", "dark color") or single color, border color
layout_type string, layout horizontal or vertical, vertical is the default

Methods

.addWidget(widget)