/inkscape/share/extensions/ |
H A D | pturtle.py | 22 def __init__(self, home=(0,0)): 23 self.__home = [home[0], home[1]] 24 self.__pos = self.__home[:] 25 self.__heading = -90 26 self.__path = "" 27 self.__draw = True 28 self.__new = True 29 def forward(self,mag): 30 self [all...] |
H A D | hpgl_encoder.py | 38 def __init__(self, effect): 56 self.options = effect.options 57 self.doc = effect.document.getroot() 58 self.docWidth = effect.unittouu(self.doc.get('width')) 59 self.docHeight = effect.unittouu(self.doc.get('height')) 60 self.hpgl = '' 61 self.divergenceX = 'False' 62 self [all...] |
H A D | interp_att_g.py | 32 def __init__(self): 33 inkex.Effect.__init__(self) 34 self.OptionParser.add_option("-a", "--att", 38 self.OptionParser.add_option("-o", "--att-other", 42 self.OptionParser.add_option("-t", "--att-other-type", 46 self.OptionParser.add_option("-w", "--att-other-where", 50 self.OptionParser.add_option("-s", "--start-val", 54 self.OptionParser.add_option("-e", "--end-val", 58 self.OptionParser.add_option("-u", "--unit", 62 self [all...] |
H A D | hpgl_decoder.py | 29 def __init__(self, hpglString, options): 37 self.hpglString = hpglString 38 self.options = options 39 self.scaleX = options.resolutionX / 25.4 # dots/inch to dots/mm 40 self.scaleY = options.resolutionY / 25.4 # dots/inch to dots/mm 41 self.warning = '' 42 self.textMovements = _("Movements") 43 self.textPenNumber = _("Pen ") 44 self.layers = {} 45 self [all...] |
H A D | jessyInk_keyBindings.py | 45 def __init__(self): 47 inkex.Effect.__init__(self) 49 self.OptionParser.add_option('--tab', action = 'store', type = 'string', dest = 'what') 50 self.OptionParser.add_option('--slide_backWithEffects', action = 'callback', type = 'string', callback = self.slideOptions, default = '') 51 self.OptionParser.add_option('--slide_nextWithEffects', action = 'callback', type = 'string', callback = self.slideOptions, default = '') 52 self.OptionParser.add_option('--slide_backWithoutEffects', action = 'callback', type = 'string', callback = self.slideOptions, default = '') 53 self [all...] |
H A D | lindenmayer.py | 26 def __init__(self): 27 inkex.Effect.__init__(self) 28 self.OptionParser.add_option("-o", "--order", 32 self.OptionParser.add_option("-l", "--langle", 36 self.OptionParser.add_option("-r", "--rangle", 40 self.OptionParser.add_option("-s", "--step", 44 self.OptionParser.add_option("-p", "--randomizestep", 48 self.OptionParser.add_option("-z", "--randomizeangle", 52 self.OptionParser.add_option("-x", "--axiom", 56 self [all...] |
H A D | chardataeffect.py | 24 def __init__(self): 25 inkex.Effect.__init__(self) 26 self.visited = [] 31 def effect(self): 32 if len(self.selected)==0: 33 self.recurse(self.document.getroot()) 35 for id,node in self.selected.iteritems(): 36 self.recurse(node) 38 def recurse(self,nod [all...] |
H A D | ffgeom.py | 31 def __init__(self, x, y): 32 self.__coordinates = {'x' : float(x), 'y' : float(y)} 33 def __getitem__(self, key): 34 return self.__coordinates[key] 35 def __setitem__(self, key, value): 36 self.__coordinates[key] = float(value) 37 def __repr__(self): 38 return '(%s, %s)' % (round(self['x'],self.precision),round(self[' [all...] |
H A D | printing_marks.py | 38 def __init__(self): 39 inkex.Effect.__init__(self) 40 self.OptionParser.add_option("--where", 44 self.OptionParser.add_option("--crop_marks", 48 self.OptionParser.add_option("--bleed_marks", 52 self.OptionParser.add_option("--registration_marks", 56 self.OptionParser.add_option("--star_target", 60 self.OptionParser.add_option("--colour_bars", 64 self.OptionParser.add_option("--page_info", 68 self [all...] |
H A D | webslicer_export.py | 32 def __init__(self): 33 WebSlicer_Effect.__init__(self) 34 self.OptionParser.add_option("--tab") 35 self.OptionParser.add_option("--dir", 39 self.OptionParser.add_option("--create-dir", 44 self.OptionParser.add_option("--with-code", 54 def validate_inputs(self): 56 if is_empty( self.options.dir ): 60 if self.options.dir[-1] == '/' or self [all...] |
H A D | svgcalendar.py | 44 def __init__(self): 45 inkex.Effect.__init__(self) 46 self.OptionParser.add_option("--tab", 49 self.OptionParser.add_option("--month", 53 self.OptionParser.add_option("--year", 57 self.OptionParser.add_option("--fill-empty-day-boxes", 61 self.OptionParser.add_option("--show-week-number", 65 self.OptionParser.add_option("--start-day", 69 self.OptionParser.add_option("--weekend", 73 self [all...] |
H A D | dxf_outlines.py | 69 def __init__(self): 70 inkex.Effect.__init__(self) 71 self.OptionParser.add_option("-R", "--ROBO", action="store", 74 self.OptionParser.add_option("-P", "--POLY", action="store", 77 self.OptionParser.add_option("--units", action="store", 80 self.OptionParser.add_option("--encoding", action="store", 83 self.OptionParser.add_option("--tab", action="store", 85 self.OptionParser.add_option("--inputhelp", action="store", 87 self.OptionParser.add_option("--layer_option", action="store", 90 self [all...] |
H A D | empty_dvd_cover.py | 8 def __init__(self): 9 inkex.Effect.__init__(self) 10 self.OptionParser.add_option("-s", "--spine", action="store", type="string", dest="dvd_cover_spine", default="normal", help="Dvd spine width") 11 self.OptionParser.add_option("-b", "--bleed", action="store", type="float", dest="dvd_cover_bleed", default="3", help="Bleed (extra area around image") 13 def create_horizontal_guideline(self, name, position): 14 self.create_guideline(name, "0,1", 0, position) 16 def create_vertical_guideline(self, name, position): 17 self.create_guideline(name, "1,0", position, 0) 19 def create_guideline(self, label, orientation, x,y): 20 namedview = self [all...] |
H A D | webslicer_create_group.py | 27 def __init__(self): 28 WebSlicer_Effect.__init__(self) 29 self.OptionParser.add_option("--html-id", 33 self.OptionParser.add_option("--html-class", 37 self.OptionParser.add_option("--width-unity", 41 self.OptionParser.add_option("--height-unity", 45 self.OptionParser.add_option("--bg-color", 49 self.OptionParser.add_option("--tab", 54 def get_base_elements(self): 55 self [all...] |
H A D | inkscape_follow_link.py | 9 def __init__(self, url): 10 threading.Thread.__init__ (self) 11 self.url = url 13 def run(self): 14 webbrowser.open(self.url) 17 def __init__(self): 18 inkex.Effect.__init__(self) 20 def effect(self): 21 if (self.options.ids): 22 for id, node in self [all...] |
H A D | new_glyph_layer.py | 26 def __init__(self): 27 inkex.Effect.__init__(self) 28 self.OptionParser.add_option("-u", "--unicodechars", 32 self.encoding = sys.stdin.encoding 33 if self.encoding == 'cp0' or self.encoding is None: 34 self.encoding = locale.getpreferredencoding() 36 def effect(self): 38 unicode_chars = self.options.unicodechars.decode(self [all...] |
H A D | color_HSL_adjust.py | 10 def __init__(self): 11 coloreffect.ColorEffect.__init__(self) 12 self.OptionParser.add_option("-x", "--hue", 16 self.OptionParser.add_option("-s", "--saturation", 20 self.OptionParser.add_option("-l", "--lightness", 24 self.OptionParser.add_option("", "--random_h", 28 self.OptionParser.add_option("", "--random_s", 32 self.OptionParser.add_option("", "--random_l", 36 self.OptionParser.add_option("--tab", 41 def clamp(self, minimu [all...] |
H A D | web-set-att.py | 27 def __init__(self): 28 inkwebeffect.InkWebEffect.__init__(self) 29 self.OptionParser.add_option("-a", "--att", 33 self.OptionParser.add_option("-v", "--val", 37 self.OptionParser.add_option("-w", "--when", 41 self.OptionParser.add_option("-c", "--compatibility", 45 self.OptionParser.add_option("-t", "--from-and-to", 49 self.OptionParser.add_option("--tab", 54 def effect(self): 55 self [all...] |
/inkscape/share/extensions/test/ |
H A D | simplestyle.test.py | 11 def test_namedcolor(self): 14 self.failUnlessEqual((255,0,0),col) 16 def test_hexcolor4digit(self): 19 self.failUnlessEqual((255,1,2),col) 21 def test_hexcolor3digit(self): 24 self.failUnlessEqual((255,255,255),col) 26 def test_rgbcolorint(self): 29 self.failUnlessEqual((255,255,255),col) 31 def test_rgbcolorpercent(self): 34 self [all...] |
H A D | color_randomize.test.py | 24 def setUp(self): 25 self.e=C() 27 def test_default_values(self): 30 self.e.affect(args, False) 31 col = self.e.colmod(128, 128, 255) 32 self.assertEqual("8080ff", col) 33 opac = self.e.opacmod(5) 34 self.assertEqual(5, opac) 38 def setUp(self): 39 self [all...] |
/inkscape/share/extensions/Barcode/ |
H A D | Ean13.py | 33 def _encode(self, n): 35 self.text = self.space(n[0:1], 4, n[1:7], 5, n[7:], 7) 36 return self.enclose( 37 self.encode_interleaved(n[0], n[1:7]), self.encode_right(n[7:]))
|
H A D | Ean8.py | 30 def _encode(self, n): 32 self.text = self.space(n[:4], 3, n[4:]) 33 return self.enclose(self.encode_left(n[:4]), self.encode_right(n[4:]))
|
H A D | Upca.py | 31 def _encode(self, n): 33 self.text = self.space(n[0:1], 3, n[1:6], 4, n[6:11], 3, n[11:]) 34 return self.enclose(self.encode_left(n[0:6]), self.encode_right(n[6:12]))
|
H A D | Base.py | 38 def error(self, text, msg): 41 "Error encoding '%s' as %s barcode: %s\n" % (text, self.name, msg)) 44 def encode(self, text): 51 def __init__(self, param): 53 self.document = param.get('document', None) 54 self.known_ids = [] 55 self._extra = [] 57 self.pos_x = int(param.get('x', 0)) 58 self.pos_y = int(param.get('y', 0)) 59 self [all...] |
/inkscape/share/extensions/ink2canvas/ |
H A D | canvas.py | 25 def __init__(self, parent, width, height, context = "ctx"): 26 self.obj = context 27 self.code = [] #stores the code 28 self.style = {} 29 self.styleCache = {} #stores the previous style applied 30 self.parent = parent 31 self.width = width 32 self.height = height 34 def write(self, text): 35 self [all...] |