__init__(self,
button_mask=["theme","menu","max","min","close"],
icon_dpixbuf=None,
app_name=None,
title=None,
add_separator=False,
height=26,
show_title=True)
(Constructor)
| source code
|
Initialize the title bar.
- Parameters:
button_mask - A string list. Each item of it indicates that there is a
corresponding button on the title bar. By default, it's
["theme", "menu", "max",
"min", "close"], which means theme button,
menu button, max button, min button and close button,
respectively.
icon_dpixbuf - A pixbuf of type dtk.ui.theme.DynamicPixbuf. It will be displayed
at the top left of the window. By default, it's None.
app_name - Application name string. It will be displayed just next to the
icon_dpixbuf. By default, it's None.
title - Title string of the application. It will be displayed on the
center of the title bar. By default, it's None.
add_separator - If True, add a separation line between the title bar and the body
of the window. By default, it's False.
height - The hight of the title bar. By default, it's 26 pixels.
show_title - If False, the title bar will not be displayed. By default, it's
True.
- Overrides:
box.EventBox.__init__
|