GUIBRUSHR.GUI.LAYOUT.MyPanel module

class GUIBRUSHR.GUI.LAYOUT.MyPanel.MyPanel(parent: Any, color: str, row: int, column: int, columnspan: int = 1, rowspan: int = 1, visible: bool = True, **kwargs)[source]

Bases: Frame

A custom panel widget that extends tkinter’s Frame with additional layout capabilities.

This class creates a panel with customizable appearance and behavior, inheriting from Frame to provide better grid layout management and consistent styling. It includes automatic column configuration and visibility control.

__init__(parent: Any, color: str, row: int, column: int, columnspan: int = 1, rowspan: int = 1, visible: bool = True, **kwargs) None[source]

Initialize the MyPanel widget.

Parameters:
  • parent – The parent widget

  • color – Background color of the panel

  • row – Row position in the parent’s grid

  • column – Column position in the parent’s grid

  • columnspan – Number of columns the panel should span

  • rowspan – Number of rows the panel should span

  • visible – Whether the panel should be visible initially

  • **kwargs – Additional keyword arguments passed to the Frame widget