import wx
class MyFrame(wx.Frame):
def __init__(self, parent , id, title):
wx.Frame.__init__(self, parent , id, title)
self.panel = wx.Panel(self,-1)
create another python file and have the following code in it, save it as testing .py
import wx
from noname import MyFrame
app = wx.App()
f = MyFrame(None, -1, "MAIN FRAME")
f.Show()
app.MainLoop()
Now anytime at all you run the file testing.py, the GUI should be created.