Skip to content

app_bar

pdwidgets.widgets.app_bar

Application title bar.

AppBar(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, title='', on_back=None, scale=2, font=None)

Bases: Widget

Top title bar with optional leading back button.

Top title bar with optional back button.

Parameters:

Name Type Description Default
parent Widget

Usually the screen or a page.

required
title str

Title text drawn on the left (or after back).

''
on_back callable

If set, shows a leading back arrow that calls on_back(self) when pressed.

None
bg int

Defaults to primary.

None
fg int

Defaults to on_primary.

None

set_title(title)

Update the title text.