annotate inkscape/MB_EditNormalButton.py @ 227:a6e559fb76d7

Add dynamic loading function for sprite
author wycc
date Wed, 17 Dec 2008 08:10:51 +0800
parents ad5c7a5c2c39
children
rev   line source
220
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
1 #!/usr/bin/python
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
2 import inkex
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
3 import pygtk
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
4 import gtk
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
5 from copy import deepcopy
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
6
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
7 class ConvertToButton(inkex.Effect):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
8 def effect(self):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
9 self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
10 self.window.set_position(gtk.WIN_POS_MOUSE)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
11 self.defaultname = 'input symbol name here'
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
12 if self.fillcontent() == False:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
13 self.window.show_all()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
14 self.window.connect("delete_event", gtk.main_quit)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
15 gtk.main()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
16 def onQuit(self,data):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
17 gtk.main_quit()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
18 def onAssign(self,data):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
19 text = self.text.get_text()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
20 if text != self.defaultname:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
21 self.node.set("mbname",text)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
22 gtk.main_quit()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
23
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
24 def confirm(self,msg):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
25 vbox = gtk.VBox()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
26 vbox.pack_start(gtk.Label(msg))
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
27 self.button = gtk.Button('OK')
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
28 vbox.pack_start(self.button)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
29 self.button.connect("clicked", self.onQuit)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
30 self.window.add(vbox)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
31 def dumpattr(self,n):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
32 s = ""
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
33 for a,v in n.attrib.items():
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
34 s = s + ("%s=%s" % (a,v))
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
35 return s
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
36
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
37 def dump(self,node,l=0):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
38 print " " * l*2,"<", node.tag, self.dumpattr(node),">"
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
39 for n in node:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
40 self.dump(n,l+1)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
41 print " " * l * 2,"/>"
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
42
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
43 def hide_frame(self,frame):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
44 frame.set('style','display:none')
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
45 def show_frame(self,frame):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
46 frame.set('style','')
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
47
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
48
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
49 def fillcontent(self):
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
50 if len(self.selected) != 1:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
51 self.confirm('Please select one group only')
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
52 return False
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
53 for id,node in self.selected.iteritems():
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
54 #self.dump(node)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
55 name = node.get("mbname")
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
56 if name == None:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
57 self.confirm("The MadButterFly symbol is not defined yet. Please convert it to the symbol before convert it to button.")
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
58 return False
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
59 for frame in node:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
60 if frame.get('mbname') == name+'_normal':
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
61 self.show_frame(frame)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
62 else:
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
63 self.hide_frame(frame)
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
64 return True
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
65
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
66
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
67 a=ConvertToButton()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
68 a.affect()
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
69
ad5c7a5c2c39 Add extention to the inkscape to edit one of the active/normal/click frame of a button. There is one unsolved issue. Users can not know the current frame easily unless they check the XML node editor. We should try to show something in the UI. However, I have no found any goo dway to do this. We may need to modify the inkscape directly for this function in the future.
wycc@wycc-desktop
parents:
diff changeset
70 # vim: set ts=4