spacr.qt.widgets.tile

Tile — a large square button + caption used on the startup screen.

Hovering the tile animates its icon so the glyph appears to grow inside the button frame — the button itself stays the same size.

Signals:

clicked() — emitted when the tile is pressed.

Module Contents

class spacr.qt.widgets.tile.Tile(text: str, icon: PySide6.QtGui.QIcon | None = None, icon_size: int = 64, tile_size: int = 120, caption: str = '', parent=None)[source]

Bases: PySide6.QtWidgets.QWidget

Large square tile with an icon and a caption, used on the startup grid.

Parameters:
  • text – fallback label (also used to derive initials if no icon).

  • icon – optional QIcon to render inside the tile.

  • icon_size – base icon side length in px; animates on hover.

  • tile_size – fixed side length of the tile button in px.

  • caption – caption shown under the tile; defaults to text.

Variables:

clicked – emitted when the tile button is pressed.

clicked[source]
property text: str[source]

The tile’s text label as passed to the constructor.