HookeGUI
authorillysam <devnull@localhost>
Thu, 25 Feb 2010 15:05:49 +0000 (15:05 +0000)
committerillysam <devnull@localhost>
Thu, 25 Feb 2010 15:05:49 +0000 (15:05 +0000)
commands.py: plugins are now sorted in alphabetical order in the Commands panel

panels/commands.py

index e634a94f97a27680354e7644cd9e2b06366a1286..52db8a4e1e5e0e8a41748eb75a8604b8108d06c4 100644 (file)
@@ -50,7 +50,10 @@ class Commands(wx.Panel):
             command_str = config['command']['command']\r
             module_str = config['command']['plugin']\r
 \r
-            for plugin in plugins:\r
+            #sort the plugins into alphabetical order\r
+            plugins_list = [key for key, value in plugins.iteritems()]\r
+            plugins_list.sort()\r
+            for plugin in plugins_list:\r
                 filename = ''.join([plugin, '.ini'])\r
                 path = lh.get_file_path(filename, ['plugins'])\r
                 config = ConfigObj()\r