ordering (A-Z) the event type for choice list on "change event type" tool (#0000365)
svn: r7217
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user