Mercurial > MadButterfly
diff inkscape/AssignSymbol.py @ 248:1958bb2a87a2
* Check if the selected element is a group ot not. A symbol or button must be a group.
* Reimplement the button editor. We will use another instance of the inkscape to edit the content of a button.
author | wycc |
---|---|
date | Sat, 03 Jan 2009 08:43:29 +0800 |
parents | f61b709bbd0f |
children | 5006e4abdda5 |
line wrap: on
line diff
--- a/inkscape/AssignSymbol.py Thu Jan 01 08:32:03 2009 +0800 +++ b/inkscape/AssignSymbol.py Sat Jan 03 08:43:29 2009 +0800 @@ -46,6 +46,9 @@ return for id,node in self.selected.iteritems(): #self.dump(node) + if node.tag != '{http://www.w3.org/2000/svg}g': + self.confirm('Only group element can be converted into a symbol') + return self.node = node vbox = gtk.VBox() vbox.pack_start(gtk.Label('Please input the symbol name'))