Source code for GLXCurses.VSeparator
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# It script it publish under GNU GENERAL PUBLIC LICENSE
# http://www.gnu.org/licenses/gpl-3.0.en.html
# Author: the Galaxie Curses Team, all rights reserved
import GLXCurses
import curses
[docs]class VSeparator(GLXCurses.Widget, GLXCurses.Movable):
def __init__(self):
"""
The GLXCurses.VSeparator widget is a vertical separator, used to visibly separate the widgets within a \
window.
It displays a vertical line.
"""
GLXCurses.Widget.__init__(self)
GLXCurses.Movable.__init__(self)
self.name = "{0}{1}".format(self.__class__.__name__, self.id)
[docs] def update_preferred_sizes(self):
self.preferred_height = self.height
self.preferred_width = 1
self.check_justification()