Eliminate relative imports and make them more py2exe friendly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Patrick K. O'Brien
2004-03-15 13:42:37 +00:00
parent a7716111cb
commit d40bbd4dac
6 changed files with 14 additions and 17 deletions

View File

@@ -5,12 +5,11 @@ __cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import wx
from wx import py
import os
import sys
import editor
class App(wx.App):
"""PyAlaCarte standalone application."""
@@ -20,7 +19,7 @@ class App(wx.App):
def OnInit(self):
wx.InitAllImageHandlers()
self.frame = editor.EditorFrame(filename=self.filename)
self.frame = py.editor.EditorFrame(filename=self.filename)
self.frame.Show()
self.SetTopWindow(self.frame)
return True

View File

@@ -5,12 +5,11 @@ __cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import wx
from wx import py
import os
import sys
import editor
class App(wx.App):
"""PyAlaMode standalone application."""
@@ -20,7 +19,7 @@ class App(wx.App):
def OnInit(self):
wx.InitAllImageHandlers()
self.frame = editor.EditorNotebookFrame(filename=self.filename)
self.frame = py.editor.EditorNotebookFrame(filename=self.filename)
self.frame.Show()
self.SetTopWindow(self.frame)
return True

View File

@@ -5,12 +5,11 @@ __cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import wx
from wx import py
import os
import sys
import editor
class App(wx.App):
"""PyAlaModeTest standalone application."""
@@ -20,7 +19,7 @@ class App(wx.App):
def OnInit(self):
wx.InitAllImageHandlers()
self.frame = editor.EditorShellNotebookFrame(filename=self.filename)
self.frame = py.editor.EditorShellNotebookFrame(filename=self.filename)
self.frame.Show()
self.SetTopWindow(self.frame)
return True

View File

@@ -13,15 +13,14 @@ __revision__ = "$Revision$"[11:-2]
import wx
class App(wx.App):
"""PyCrust standalone application."""
def OnInit(self):
import wx
from wx import py
wx.InitAllImageHandlers()
from crust import CrustFrame
self.frame = CrustFrame()
self.frame = py.crust.CrustFrame()
self.frame.SetSize((800, 600))
self.frame.Show()
self.SetTopWindow(self.frame)

View File

@@ -18,9 +18,9 @@ class App(wx.App):
def OnInit(self):
import wx
from wx import py
wx.InitAllImageHandlers()
from shell import ShellFrame
self.frame = ShellFrame()
self.frame = py.shell.ShellFrame()
self.frame.SetSize((750, 525))
self.frame.Show()
self.SetTopWindow(self.frame)

View File

@@ -5,14 +5,15 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import wx
from wx import py
import os
import sys
import wx
from wx.py.crust import CrustFrame
def wrap(app):
wx.InitAllImageHandlers()
frame = CrustFrame()
frame = py.crust.CrustFrame()
frame.SetSize((750, 525))
frame.Show(True)
frame.shell.interp.locals['app'] = app