CTopLevel - Dliammc/CustomPyQt GitHub Wiki

Example

toplevel = CTopLevel(None, width=400, height=250, title="CTopLevel")
toplevel.show()

Arguments

Argument Value
width integer, width in pixels
height integer, height in pixels
x integer, x position in pixels
y integer, y position in pixels
title string, title bar text
icon string, title bar icon path
background_color string, tuple: ("light color", "dark color") or single color, background color
opacity float, opacity or transparency 1.0 no transparancy, 0.0 completly transparent
style string, none by default, optional mica or alt theme on windows 11 only using win32mica

Methods

.setWindowBackground(background_color)

.setWindowTheme(system_theme)

.setWindowIcon(icon_path)