VerticalLine

class vanilla.VerticalLine(posSize)

A vertical line.:

from vanilla import *

class VerticalLineDemo(object):

    def __init__(self):
        self.w = Window((80, 100))
        self.w.line = VerticalLine((40, 10, 1, -10))
        self.w.open()

VerticalLineDemo()

posSize Tuple of form (left, top, width, height) representing the position and size of the line.

Standard Dimensions
V 1
enable(onOff)

Enable or disable the object. onOff should be a boolean.

getNSBox()

Return the NSBox that this object wraps.

getPosSize()

The position and size of the object as a tuple of form (left, top, width, height).

getTitle()

Get the title of the box.

isVisible()

Return a bool indicting if the object is visible or not.

move(x, y)

Move the object by x units and y units.

resize(width, height)

Change the size of the object to width and height.

setPosSize(posSize)

Set the postion and size of the object.

posSize A tuple of form (left, top, width, height).

setTitle(title)

Set the title of the box.

show(onOff)

Show or hide the object.

onOff A boolean value representing if the object should be shown or not.