visualdynamics.gui.drawer_tab¶
drawer_tab
¶
The handle drawn on the edge of a collapsible drawer.
The handle is a flat tab with rounded shoulders and feet that flare out
into the edge it sits on, with the word in the middle and a chevron on
each side pointing the way a click will move the edge.
icons/drawer-tab-shape.svg is the reference drawing. It has one fixed
width, so the shape is drawn here from its radii at whatever width the
label needs, and the colors come from the palette so it works in the
light and dark themes.
It is painted by hand instead of styled, because a stylesheet can only draw a box, and the flared feet are what make it look like a handle on an edge instead of a button near one.
Classes:
| Name | Description |
|---|---|
DrawerTab |
A checkable handle for a drawer on the bottom edge; checked means |
Classes¶
DrawerTab
¶
Bases: QAbstractButton
A checkable handle for a drawer on the bottom edge; checked means
open. Only the bottom edge is drawn for now. A drawer on another
edge would need the shape and the text turned, and drawer_glyph
already turns the chevron for any edge.
Methods:
| Name | Description |
|---|---|
outline |
The tab's outline at its current size, left open along the |
Source code in src/visualdynamics/gui/drawer_tab.py
Methods:¶
outline
¶
The tab's outline at its current size, left open along the base so no line is drawn across the edge it sits on.