]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/ide/ActiveGridIDE.py
applied patch #1185523: "Replace GetTextExtentPoint with GetTextExtentPoint32"
[wxWidgets.git] / wxPython / samples / ide / ActiveGridIDE.py
1 #----------------------------------------------------------------------------
2 # Name: ActiveGridIDE.py
3 # Purpose:
4 #
5 # Author: Lawrence Bruhmuller
6 #
7 # Created: 3/30/05
8 # CVS-ID: $Id$
9 # Copyright: (c) 2004-2005 ActiveGrid, Inc.
10 # License: wxWindows License
11 #----------------------------------------------------------------------------
12 import wx.lib.pydocview
13 import activegrid.tool.IDE
14
15 import os
16 import sys
17 sys.stdout = sys.stderr
18
19 # This is here as the base IDE entry point. Only difference is that -baseide is passed.
20
21 sys.argv.append('-baseide');
22
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)
26 try:
27 sys.path.index(execDir)
28 except ValueError:
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
32 app.MainLoop()
33