This commit is contained in:
yumoqing 2021-01-26 14:01:52 +08:00
parent 5b7377260f
commit bf6aece31d

View File

@ -30,7 +30,7 @@ class MenuContainer(VBox):
return False return False
class PagePanel(VBox): class PagePanel(VBox):
def __init__(self, bar_size=3, bar_at='top', enable_on_close=False, def __init__(self, bar_size=2, bar_at='top', enable_on_close=False,
left_menu=False, **kw): left_menu=False, **kw):
print('PagePanel().__init__():', bar_size, bar_at, left_menu) print('PagePanel().__init__():', bar_size, bar_at, left_menu)
self.bar_size = bar_size self.bar_size = bar_size
@ -51,7 +51,7 @@ class PagePanel(VBox):
self.sub_widgets = [] self.sub_widgets = []
VBox.__init__(self, **kw) VBox.__init__(self, **kw)
self.bar = HBox(size_hint_y=None, self.bar = HBox(size_hint_y=None,
spacing=15, spacing=CSize(bar_size/6),
height=CSize(bar_size)) height=CSize(bar_size))
bcsize = bar_size * 0.85 bcsize = bar_size * 0.85
self.content = VBox() self.content = VBox()