Pboxeslines

# Template Boxes and Lines (Pbl) module

class vcs.Pboxeslines.Pbl(member)[source]

The Template text object allows the manipulation of line type, width, and color index.

This class is used to define a line table entry used in VCS, or it can be used to change some or all of the line attributes in an existing line table entry.

Example

# Basic Usage Overview:

a=vcs.init() # Show predefined line objects a.show(‘line’) # Updates the VCS Canvas at user’s request a.update()

#For mode: # If 1, then automatic update. # If 0,use update function to update VCS canvas a.mode=1

#To Create a new instance of line use: # Copies content of ‘red’ to ‘new’ ln=a.createline(‘new’,’red’) # Copies content of ‘default’ to ‘new’ ln=a.createline(‘new’)

#To Modify an existing line use: ln=a.getline(‘red’)

# Will list all the line attribute values ln.list() # Range from 1 to 256 ln.color=100 # Range from 1 to 300 ln.width=100

#Specify the line type: # Same as ln.type=0 ln.type=’solid’ # Same as ln.type=1 ln.type=’dash’ # Same as ln.type=2 ln.type=’dot’ # Same as ln.type=3 ln.type=’dash-dot’ # Same as ln.type=4 ln.type=’long-dash’

x1

x1 position in % of page