Add a library entry to the File menu
The library can point to some "editor pick" action lists and would display them in a list just like Recent.
Whiteboard
TODO:
Tools>Update>
$ bzr commit -m "added library"
Committing to: /home/stani/
modified phatch/pyWx/gui.py
Committed revision 662.
=== modified file 'phatch/
--- phatch/
+++ phatch/
@@ -15,5 +15,5 @@
# along with this program. If not, see http://
BASE = "0.2.0"
-VERSION = "0.2.0.bzr662"
-DATE = "Sat, 06 Jun 2009 01:57:03"
+VERSION = "0.2.0.bzr664"
+DATE = "Sat, 06 Jun 2009 03:46:21"
=== modified file 'phatch/
--- phatch/pyWx/gui.py 2009-06-05 23:56:23 +0000
+++ phatch/pyWx/gui.py 2009-06-06 01:42:47 +0000
@@ -262,8 +262,24 @@
- self.menu_
+ self.menu_
+ #library
+ actionlists = [(api.title(a),a)
+ for a in wx.GetApp(
+ actionlists.sort()
+ library = self.menu_
+ prefix = len(actionlists) < 10
+ self.library_files = {}
+ for index, actionlist in enumerate(
+ id = wx.NewId()
+ label = actionlist[0]
+ if prefix:
+ label = '&%d %s'%(index+1,label)
+ item = library.
+ self.library_
+ self.Bind(
+ self.menu_
#shell
self.shell = None
#menu_item (for enabling/disabling)
@@ -376,6 +392,9 @@
+ def on_menu_
+ self._open(
+
def on_menu_
if self.filename == ct.UNKNOWN: