]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/ide/ActiveGridIDE.py
   1 #---------------------------------------------------------------------------- 
   2 # Name:         ActiveGridIDE.py 
   5 # Author:       Lawrence Bruhmuller 
   9 # Copyright:    (c) 2004-2005 ActiveGrid, Inc. 
  10 # License:      wxWindows License 
  11 #---------------------------------------------------------------------------- 
  12 import wx
.lib
.pydocview
 
  13 import activegrid
.tool
.IDE
 
  17 sys
.stdout 
= sys
.stderr
 
  19 # This is here as the base IDE entry point.  Only difference is that -baseide is passed. 
  21 sys
.argv
.append('-baseide'); 
  23 # Put activegrid dir in path so python files can be found from py2exe 
  24 # This code should never do anything when run from the python interpreter 
  25 execDir 
= os
.path
.dirname(sys
.executable
) 
  27     sys
.path
.index(execDir
) 
  29     sys
.path
.append(execDir
) 
  30 app 
= activegrid
.tool
.IDE
.IDEApplication(redirect 
= False) 
  31 app
.GetTopWindow().Raise()  # sometimes it shows up beneath other windows.  e.g. running self in debugger