I have an idea to create a new Frame right in plugin's Action.
(because I think it will be easier to interact between eg and this frame than completely independent app). Like this snippet:
Code: Select all
import eg
eg.RegisterPlugin()
# Create new Frame, containing a text box.
class MyFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title, size=(200,100))
self.control = wx.TextCtrl(self,-1)
self.Show(True)
class HelloWorldPlugin(eg.PluginBase):
def __init__(self):
self.AddAction(HelloWorld)
class HelloWorld(eg.ActionBase):
name = "Hello World"
def __call__(self):
frame = MyFrame(None, 'Small editor')
Are there anyone have the same problem?
Any suggestion will be appreciated.
Best regards.
HiepHM.