0001539: Tab order incorrect - Statistics Chart configuration

svn: r9759
This commit is contained in:
Brian Matherly 2008-01-09 05:36:37 +00:00
parent 65adf61947
commit 0af382cf1e
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2008-01-08 Brian Matherly <brian@gramps-project.org>
* src/PluginUtils/_MenuOptions.py:
Fix 0001539: Tab order incorrect - Statistics Chart configuration
2008-01-08 Brian Matherly <brian@gramps-project.org> 2008-01-08 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py: * src/ReportBase/_GraphvizReportDialog.py:
Fix 0001515: GraphViz reports don't register page margins on Fix 0001515: GraphViz reports don't register page margins on

View File

@ -1015,7 +1015,10 @@ class Menu:
the user. the user.
""" """
def __init__(self): def __init__(self):
# __options holds all the options by their category
self.__options = {} self.__options = {}
# __categories holds the order of all categories
self.__categories = []
def add_option(self,category,name,option): def add_option(self,category,name,option):
""" """
@ -1033,6 +1036,7 @@ class Menu:
@return: nothing @return: nothing
""" """
if not self.__options.has_key(category): if not self.__options.has_key(category):
self.__categories.append(category)
self.__options[category] = [] self.__options[category] = []
self.__options[category].append((name,option)) self.__options[category].append((name,option))
@ -1042,10 +1046,7 @@ class Menu:
@return: a list of strings @return: a list of strings
""" """
categories = [] return self.__categories
for category in self.__options:
categories.append(category)
return categories
def get_option_names(self,category): def get_option_names(self,category):
""" """