gale.ui.panel module

This file contains the implementation of the class Panel: a plain filled, bordered rectangle, typically used as background chrome behind other widgets or on its own as a HUD backdrop.

Author: Alejandro Mujica (aledrums@gmail.com)

class gale.ui.panel.Panel(x, y, width, height, theme=None, visible=True)[source]

Bases: Widget

A plain filled, bordered rectangle. Typically used as the background chrome behind other widgets (see Container), or on its own as a HUD backdrop.

Usage example:

panel = Panel(10, 10, 200, 120)

Parameters:
  • x (float)

  • y (float)

  • width (float)

  • height (float)

  • theme (Theme | None)

  • visible (bool)

render(surface)[source]
Parameters:

surface (Surface)

Return type:

None