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
|
None
|
bg
|
int
|
Defaults to |
None
|
fg
|
int
|
Defaults to |
None
|
set_title(title)
Update the title text.