comparison orpg/tools/pluginui.py @ 66:c54768cffbd4 ornery-dev

Traipse Dev 'OpenRPG' {090818-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: *Unstable* This is the first wave of Code Refinement updates. Includes new material from Core Beta; new debugger material (partially implemented), beginnings of switch to etree, TerminalWriter, and a little more. open_rpg has been renamed to component; functioning now as component.get(), component.add(), component.delete(). This version has known bugs, specifically with the gametree and nodes. I think the XML files where not removed during testing of Core and switching back.
author sirebral
date Tue, 18 Aug 2009 06:33:37 -0500
parents 4385a7d0efd1
children 8e2b7da4f509 dcf4fbe09b70
comparison
equal deleted inserted replaced
65:4840657c23c5 66:c54768cffbd4
1 from orpg.orpg_wx import * 1 from orpg.orpg_wx import *
2 from orpg.orpgCore import * 2 from orpg.orpgCore import *
3 import orpg.plugindb as plugindb 3 import orpg.plugindb as plugindb
4 import orpg.dirpath 4 from orpg.dirpath import dir_struct
5 5
6 sys.path.append(orpg.dirpath.dir_struct["plugins"]) 6 sys.path.append(dir_struct["plugins"])
7 7
8 class PluginFrame(wx.Frame): 8 class PluginFrame(wx.Frame):
9 def __init__(self, parent): 9 def __init__(self, parent):
10 wx.Frame.__init__(self, parent, wx.ID_ANY, "Plugin Control Panel") 10 wx.Frame.__init__(self, parent, wx.ID_ANY, "Plugin Control Panel")
11 self.panel = wx.Panel(self, wx.ID_ANY) 11 self.panel = wx.Panel(self, wx.ID_ANY)
276 self.available_plugins = {} 276 self.available_plugins = {}
277 self.errorMessage.Label = "" 277 self.errorMessage.Label = ""
278 self.pluginList.DeleteAllItems() 278 self.pluginList.DeleteAllItems()
279 self.pluginNames = [] 279 self.pluginNames = []
280 280
281 list_of_plugin_dir = os.listdir(orpg.dirpath.dir_struct["plugins"]) 281 list_of_plugin_dir = os.listdir(dir_struct["plugins"])
282 for p in list_of_plugin_dir: 282 for p in list_of_plugin_dir:
283 #print p[:2]; print p[-4:] 283 #print p[:2]; print p[-4:]
284 if p[:2].lower()=="xx" and p[-3:]==".py": 284 if p[:2].lower()=="xx" and p[-3:]==".py":
285 self.__impPlugin(p[:-3]) 285 self.__impPlugin(p[:-3])
286 elif p[:2].lower()=="xx" and p[-4:]==".pyc": 286 elif p[:2].lower()=="xx" and p[-4:]==".pyc":