Package libxyz :: Package ui :: Module separator :: Class Separator
[hide private]
[frames] | no frames]

Class Separator

source code

lowui.FlowWidget --+
                   |
                  Separator

Horizontal separator widget

Instance Methods [hide private]
 
__init__(self, title=None, div_char=None, title_attr=None, div_attr=None, top=0, bottom=0) source code
 
set_text(self, title, title_attr=None)
Set some text in the middle of seprator
source code
 
clear_text(self)
Remove text if any
source code
 
rows(self, (maxcol,), focus=False)
Return the number of lines that will be rendered.
source code
 
render(self, (maxcol,), focus=False)
Render the separator as canvas and return it.
source code
Class Variables [hide private]
  ignore_focus = True
Method Details [hide private]

__init__(self, title=None, div_char=None, title_attr=None, div_attr=None, top=0, bottom=0)
(Constructor)

source code 
Parameters:
  • title - Title
  • div_char - Character to repeat across line
  • title_attr - Attribute of title text
  • div_attr - Attribute of divider line
  • top - number of blank lines above
  • bottom - number of blank lines below