comparison inkscape/AssignSymbol.py @ 216:f61b709bbd0f

Generate ID for boith id and mbname
author wycc
date Sat, 13 Dec 2008 07:42:01 +0800
parents 1d485bf96480
children 1958bb2a87a2
comparison
equal deleted inserted replaced
215:9643d383bbb6 216:f61b709bbd0f
16 gtk.main_quit() 16 gtk.main_quit()
17 def onAssign(self,data): 17 def onAssign(self,data):
18 text = self.text.get_text() 18 text = self.text.get_text()
19 if text != self.defaultname: 19 if text != self.defaultname:
20 self.node.set("mbname",text) 20 self.node.set("mbname",text)
21 self.node.set("id",text)
21 gtk.main_quit() 22 gtk.main_quit()
22 23
23 def confirm(self,msg): 24 def confirm(self,msg):
24 vbox = gtk.VBox() 25 vbox = gtk.VBox()
25 vbox.pack_start(gtk.Label(msg)) 26 vbox.pack_start(gtk.Label(msg))