Пример #1
0
 def get_action_info(self):
     action_info = ActionInfo('File',
                              self.label,
                              self.OnOpenRecent,
                              doc=self.doc)
     action_info.set_menu_position(before='Exit')
     return action_info
Пример #2
0
 def _add_recent_files_to_menu(self):
     if not self.recent_files:
         action = ActionInfo('File', 'No recent files')
         action.set_menu_position(before='Exit')
         self.register_action(action)
     else:
         for n, path in enumerate(self.recent_files):
             self._add_file_to_menu(path, n)
     sep = SeparatorInfo('File')
     sep.set_menu_position(before='Exit')
     self.register_action(sep)
Пример #3
0
 def _add_recent_files_to_menu(self):
     if not self.recent_files:
         action = ActionInfo('File', 'No recent files')
         action.set_menu_position(before='Exit')
         self.register_action(action)
     else:
         for n, path in enumerate(self.recent_files):
             self._add_file_to_menu(path, n)
     sep = SeparatorInfo('File')
     sep.set_menu_position(before='Exit')
     self.register_action(sep)
Пример #4
0
 def get_action_info(self):
     action_info = ActionInfo('File', self.label, self.OnOpenRecent,
                              doc=self.doc)
     action_info.set_menu_position(before='Exit')
     return action_info