def on_source(self, event): ## TODO: should it be absolute path ? filename = self.plg.__module__.replace('.', '/') + '.py' #print('==========', filename) root = os.path.split(root_dir)[0] filename = os.path.join(root, filename) #print(filename) EditorFrame(filename=filename).Show()
def on_source(self, event): path = self.plg.__module__.replace('.', '/') + '.py' EditorFrame(filename=path).Show()
def on_source(self, event): ## TODO: should it be absolute path ? filename = self.plg.__module__.replace('.', '/') + '.py' if filename.startswith(root_dir): filename = os.path.join(root_dir, filename) EditorFrame(filename=filename).Show()
def run(self, para=None): filename = os.path.join(root_dir, './menus/Plugins/New/demo_tool.py') EditorFrame(filename=filename).Show()
def run(self, para=None): EditorFrame(filename='./Menus/Plugins/New/demo_tool.py').Show()
def run(self, para=None): EditorFrame(filename='./menus/Plugins/New/demo_simple.py').Show()