コード例 #1
0
 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()
コード例 #2
0
 def on_source(self, event):
     path = self.plg.__module__.replace('.', '/') + '.py'
     EditorFrame(filename=path).Show()
コード例 #3
0
 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()
コード例 #4
0
ファイル: new_plg.py プロジェクト: llsshh1985/imagepy
 def run(self, para=None):
     filename = os.path.join(root_dir, './menus/Plugins/New/demo_tool.py')
     EditorFrame(filename=filename).Show()
コード例 #5
0
 def run(self, para=None):
     EditorFrame(filename='./Menus/Plugins/New/demo_tool.py').Show()
コード例 #6
0
 def run(self, para=None):
     EditorFrame(filename='./menus/Plugins/New/demo_simple.py').Show()