Latest changes
This commit is contained in:
parent
9dce0df0bc
commit
9cb8eeb80b
5 changed files with 35 additions and 32 deletions
|
@ -242,18 +242,18 @@ class DualPaneTextboxBase(base._Widget):
|
|||
self.bar.draw()
|
||||
self.changed = False
|
||||
|
||||
def cmd_set_font(self, font=base.UNSPECIFIED, fontsize_left=base.UNSPECIFIED, fontsize_right=base.UNSPECIFIED, fontshadow=base.UNSPECIFIED):
|
||||
def cmd_set_font(self, font=None, fontsize_left=0, fontsize_right=0, fontshadow=""):
|
||||
"""
|
||||
Change the font used by this widget. If font is None, the current
|
||||
font is used.
|
||||
"""
|
||||
if font is not base.UNSPECIFIED:
|
||||
if font is not None:
|
||||
self.font = font
|
||||
if fontsize_left is not base.UNSPECIFIED:
|
||||
if fontsize_left != 0:
|
||||
self.fontsize_left = fontsize_left
|
||||
if fontsize_right is not base.UNSPECIFIED:
|
||||
if fontsize_right != 0:
|
||||
self.fontsize_right = fontsize_right
|
||||
if fontshadow is not base.UNSPECIFIED:
|
||||
if fontshadow != "":
|
||||
self.fontshadow = fontshadow
|
||||
self.bar.draw()
|
||||
|
||||
|
@ -548,7 +548,10 @@ class KuroCurrentLayoutIcon(CurrentLayoutIcon):
|
|||
in map(lambda x: (getattr(kuro_layouts, x), x), dir(kuro_layouts))
|
||||
if isinstance(layout_class, six.class_types) and issubclass(layout_class, Layout)
|
||||
]
|
||||
names.extend(klayouts)
|
||||
if isinstance(names, set):
|
||||
names.update(klayouts)
|
||||
else:
|
||||
names.extend(klayouts)
|
||||
|
||||
return list(set(names))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue