Skip to content

CMainWindow

D. Liam Mc. edited this page Jun 29, 2025 · 3 revisions
CMainWindow Image

Example

win = CMainWindow(width=400, height=250, title="CMainWindow")
win.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)

Clone this wiki locally