From: illysam Date: Thu, 25 Feb 2010 15:05:49 +0000 (+0000) Subject: HookeGUI X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=58c8d37102adbdd1317803a8f218f40fa928d00c;p=hooke.git HookeGUI commands.py: plugins are now sorted in alphabetical order in the Commands panel --- diff --git a/panels/commands.py b/panels/commands.py index e634a94..52db8a4 100644 --- a/panels/commands.py +++ b/panels/commands.py @@ -50,7 +50,10 @@ class Commands(wx.Panel): command_str = config['command']['command'] module_str = config['command']['plugin'] - for plugin in plugins: + #sort the plugins into alphabetical order + plugins_list = [key for key, value in plugins.iteritems()] + plugins_list.sort() + for plugin in plugins_list: filename = ''.join([plugin, '.ini']) path = lh.get_file_path(filename, ['plugins']) config = ConfigObj()