/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/menu.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/menu.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 374 by jan, Mon Jan 27 14:20:02 2003 UTC revision 1047 by jan, Tue May 27 08:04:44 2003 UTC
# Line 99  class Menu: Line 99  class Menu:
99              else:              else:
100                  self.items.append(item)                  self.items.append(item)
101    
102      def InsertSeparator(self):      def InsertSeparator(self, after = None):
103          """Insert a separator"""          """Insert a separator
104          self.InsertItem(None)  
105            after -- (optional) insert the separator after this one. after
106                     should be the name of a command.
107            """
108            self.InsertItem(None, after = after)
109    
110      def InsertMenu(self, name, title, menu = (), after = None):      def InsertMenu(self, name, title, menu = (), after = None):
111          """Insert and return a new menu.          """Insert and return a new menu.

Legend:
Removed from v.374  
changed lines
  Added in v.1047

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26