annotate inkscape/MB_EditButton.py @ 601:8863d23cea4b openvg

Load images with Imlib2. Image loader, now, use Imlib2 to load images into ARGB 32bits pixels. It can load png, jpg, bmp, tiff, ...., etc.
author Thinker K.F. Li <thinker@branda.to>
date Fri, 02 Jul 2010 11:59:17 +0800
parents 1958bb2a87a2
children
rev   line source
248
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
1 #!/usr/bin/python
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
2 import inkex
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
3 import pygtk
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
4 import gtk
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
5 from copy import deepcopy
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
6 from lxml import etree
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
7 import os
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
8 import tempfile
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
9
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
10 class ConvertToButton(inkex.Effect):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
11 def effect(self):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
12 self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
13 self.window.set_position(gtk.WIN_POS_MOUSE)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
14 self.defaultname = 'input symbol name here'
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
15 if self.fillcontent() == False:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
16 self.window.show_all()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
17 self.window.connect("delete_event", gtk.main_quit)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
18 gtk.main()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
19 def onQuit(self,data):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
20 gtk.main_quit()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
21 def onAssign(self,data):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
22 text = self.text.get_text()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
23 if text != self.defaultname:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
24 self.node.set("mbname",text)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
25 gtk.main_quit()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
26
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
27 def confirm(self,msg):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
28 vbox = gtk.VBox()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
29 vbox.pack_start(gtk.Label(msg))
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
30 self.button = gtk.Button('OK')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
31 vbox.pack_start(self.button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
32 self.button.connect("clicked", self.onQuit)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
33 self.window.add(vbox)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
34 def dumpattr(self,n):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
35 s = ""
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
36 for a,v in n.attrib.items():
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
37 s = s + ("%s=%s" % (a,v))
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
38 return s
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
39
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
40 def dump(self,node,l=0):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
41 print " " * l*2,"<", node.tag, self.dumpattr(node),">"
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
42 for n in node:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
43 self.dump(n,l+1)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
44 print " " * l * 2,"/>"
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
45
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
46 def hide_frame(self,frame):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
47 frame.set('style','display:none')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
48 def show_frame(self,frame):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
49 frame.set('style','')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
50
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
51 def EditNormalButton(self,event,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
52 self.EditButton(node,'_normal')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
53
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
54 def EditActiveButton(self,event,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
55 self.EditButton(node,'_active')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
56
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
57 def EditClickButton(self,event,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
58 self.EditButton(node,'_click')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
59
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
60 def EditFrame(self,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
61 # Generate a SVG file with node and invoke inkscape to edit it
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
62 svg = etree.Element('svg')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
63 for n in node:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
64 svg.append(deepcopy(n))
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
65 fd,fname = tempfile.mkstemp(suffix='.svg')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
66 f = os.fdopen(fd,"w")
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
67 f.write(etree.tostring(svg))
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
68 f.close()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
69 os.system("inkscape %s >/dev/null 2>/dev/null" % fname)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
70 svg = etree.parse(fname)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
71 os.unlink(fname)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
72 newnode=[]
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
73 for n in svg.getroot():
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
74 if n.tag == '{http://www.w3.org/2000/svg}g':
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
75 newnode.append(n)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
76 if n.tag == '{http://www.w3.org/2000/svg}rect':
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
77 newnode.append(n)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
78 if n.tag == '{http://www.w3.org/2000/svg}text':
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
79 newnode.append(n)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
80 return newnode
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
81
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
82
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
83
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
84
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
85 def duplicateAttribute(self,new,old):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
86 for k,v in old.attrib.items():
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
87 new.set(k,v)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
88
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
89
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
90 def EditButton(self,node,mode):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
91 name = node.get('mbname')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
92 for frame in node:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
93 if frame.get('mbname') == name+mode:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
94 newnode = self.EditFrame(frame)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
95 oldframe = deepcopy(frame)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
96 frame.clear()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
97 self.duplicateAttribute(frame,oldframe)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
98 for n in newnode:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
99 frame.append(n)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
100 return
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
101 def DisplayNormalButton(self,event,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
102 self.displayButton(node,'_normal')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
103 def DisplayActiveButton(self,event,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
104 self.displayButton(node,'_active')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
105 def DisplayClickButton(self,event,node):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
106 self.displayButton(node,'_click')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
107 def displayButton(self,node,mode):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
108 name = node.get('mbname')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
109 for n in node:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
110 if n.get('mbname') == name+mode:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
111 n.set('style','')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
112 else:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
113 n.set('style','display:none')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
114 gtk.main_quit()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
115
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
116
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
117
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
118 def fillcontent(self):
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
119 if len(self.selected) != 1:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
120 self.confirm('Please select one group only')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
121 return False
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
122 for id,node in self.selected.iteritems():
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
123 #self.dump(node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
124 name = node.get("mbname")
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
125 if name == None:
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
126 self.confirm("The MadButterFly symbol is not defined yet. Please convert it to the symbol before convert it to button.")
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
127 return False
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
128 type = node.get("mbtype")
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
129 if type != 'button':
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
130 self.confirm('This is not a button')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
131 return False
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
132 hbox = gtk.HBox()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
133 self.window.add(hbox)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
134 button = gtk.Button('Edit Normal')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
135 hbox.pack_start(button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
136 button.connect("clicked", self.EditNormalButton,node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
137 button = gtk.Button('Edit Active')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
138 hbox.pack_start(button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
139 button.connect("clicked", self.EditActiveButton,node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
140 button = gtk.Button('Edit Click')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
141 hbox.pack_start(button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
142 button.connect("clicked", self.EditClickButton,node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
143 button = gtk.Button('Display Normal')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
144 hbox.pack_start(button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
145 button.connect("clicked", self.DisplayNormalButton,node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
146 button = gtk.Button('Display Active')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
147 hbox.pack_start(button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
148 button.connect("clicked", self.DisplayActiveButton,node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
149 button = gtk.Button('Display Click')
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
150 hbox.pack_start(button)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
151 button.connect("clicked", self.DisplayClickButton,node)
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
152 return False
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
153
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
154
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
155 a=ConvertToButton()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
156 a.affect()
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
157
1958bb2a87a2 * Check if the selected element is a group ot not. A symbol or button must be a group.
wycc
parents:
diff changeset
158 # vim: set ts=4