Exemple #1
0
 def __init__(self, group, name, x, y, stylename=''):
     self.name = name
     self.groupname = group
     self.stylename = stylename
     self.x = x
     self.y = y
     pBase.__init__(self)
     return
Exemple #2
0
 def __init__(self, group, name, x, y, stylename = ''):
     self.name = name
     self.groupname = group
     self.stylename = stylename
     self.x = x
     self.y = y
     pBase.__init__(self)
     return
Exemple #3
0
 def __init__(self, group, name, x, y, centimeters=10, inches=4, stylename = ''):
     self.centimeters = 10
     self.inches = 4
     self.name = name
     self.groupname = group
     self.stylename = stylename
     self.x = x
     self.y = y
     pBase.__init__(self)
     return
Exemple #4
0
	def __init__(self, group, name, label, pathSVG, styledef = 'default', transform = '') :

		self.groupname = group
		self.name = name
		self.label = label
		self.sdef = styledef
		self.pathSVG = pathSVG
		self.attrs = {}
		self.attrs['transform'] = transform

		pBase.__init__(self)
Exemple #5
0
	def __init__(self, group, name, headline, x, y, text, textstyledef = 'default_textblock_text_style', boxstyledef = None, transform = ''):
		self.groupname = group
		self.name = name
		self.text = text
		self.textsdef = textstyledef
		self.boxsdef = boxstyledef
		self.headline = headline
		self.x = x
		self.y = y
		self.attrs = {}
		self.attrs['transform'] = transform

		pBase.__init__(self)
Exemple #6
0
	def __init__(self, group, name, x = 0,  y = 0, styledef = 'default', transform = '') :

		self.groupname = group
		self.name = name
		self.textid = False # for debugging TODO make this available
		self.sdef = styledef
		self.x		 = x
		self.y		 = y
		self.attrs = {}
		self.attrs['transform'] = transform
		self.size	  = 5
		self.coords   = str(x) + "," + str(y)
		pBase.__init__(self)
Exemple #7
0
	def __init__(self, group, name, letter = '?', fabric = 0, interfacing = 0, lining = 0):
		self.name = name
		self.groupname = group
		self.width = 0
		self.height = 0
		self.labelx = 0
		self.labely = 0
		self.letter = letter
		self.fabric = fabric
		self.interfacing = interfacing
		self.lining = lining
		self.attrs = {}
		self.attrs['transform'] = ''
		pBase.__init__(self)
Exemple #8
0
    def __init__(self, prog_cfg, name = 'UnnamedDocument', attributes = None):
        self.name = name
        self.id = name
        self.x = 0
        self.y = 0
        self.width = 8.5 * IN_TO_PT
        self.height = 11.0 * IN_TO_PT
        self.cfg.update(prog_cfg)
        self.filename = self.cfg['args'][0]
        self.attrs = attributes

        # if any print groups specified, aset up the internal list
        if 'print_groups' in self.cfg:
            self.displayed_groups = self.cfg['print_groups'].split(',')
        pBase.__init__(self)
Exemple #9
0
    def __init__(self, prog_cfg, name='UnnamedDocument', attributes=None):
        self.name = name
        self.id = name
        self.x = 0
        self.y = 0
        self.width = 8.5 * IN_TO_PT
        self.height = 11.0 * IN_TO_PT
        self.cfg.update(prog_cfg)
        self.filename = self.cfg['args'][0]
        self.attrs = attributes

        # if any print groups specified, aset up the internal list
        if 'print_groups' in self.cfg:
            self.displayed_groups = self.cfg['print_groups'].split(',')
        pBase.__init__(self)
Exemple #10
0
 def __init__(self,
              group,
              name,
              x,
              y,
              centimeters=10,
              inches=4,
              stylename=''):
     self.centimeters = 10
     self.inches = 4
     self.name = name
     self.groupname = group
     self.stylename = stylename
     self.x = x
     self.y = y
     pBase.__init__(self)
     return
Exemple #11
0
	def __init__(self, group, name, label, xstart,  ystart, xend, yend, styledef='default', transform = '') :

		self.groupname = group
		self.name = name
		self.sdef = styledef
		self.label = label
		self.xstart = xstart
		self.ystart = ystart
		self.xend = xend
		self.yend = yend
		self.attrs = {}
		self.attrs['transform'] = transform

		# make some checks
		if self.sdef not in self.styledefs:
			raise ValueError("Style %s was specified but isn't defined" % self.sdef)

		pBase.__init__(self)
Exemple #12
0
    def __init__(self, prog_cfg, name='UnnamedDocument', attributes=None):
        self.name = name
        self.id = name
        self.x = 0
        self.y = 0
        self.width = 8.5 * IN_TO_PT  #starting document size
        self.height = 11.0 * IN_TO_PT  #starting document size
        self.cfg.update(prog_cfg)
        self.filename = self.cfg['args'][0]
        self.attrs = attributes

        # if any print groups specified, aset up the internal list
        if 'print_groups' in self.cfg:
            self.displayed_groups = self.cfg['print_groups'].split(',')

        # if debug prints have been requested, enable them
        if self.cfg.has_key('debug'):
            debugstr = self.cfg['debug']
            if "prints" in debugstr:
                pBase.debug = True
                print "Debug: prints enabled"

        pBase.__init__(self)
Exemple #13
0
	def __init__(self, name):
		self.name = name
		pBase.__init__(self)