ordering (A-Z) the event type for choice list on "change event type" tool (#0000365)

svn: r7217
This commit is contained in:
Brian Matherly
2006-08-21 00:34:07 +00:00
parent 3d3eda02a5
commit a4ea02dbf0
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ import gtk.glade
#------------------------------------------------------------------------
import const
import Utils
import locale
import ManagedWindow
import AutoComp
from RelLib import EventType
@ -83,6 +84,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow):
self.auto2 = self.glade.get_widget("new")
event_names = [item[1] for item in EventType._DATAMAP
if item[0] > 0 ]
event_names.sort(locale.strcoll)
AutoComp.fill_combo(self.auto1,event_names)
AutoComp.fill_combo(self.auto2,event_names)
# Need to display localized event names