]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/ide/ActiveGridIDE.py
added missing button state
[wxWidgets.git] / wxPython / samples / ide / ActiveGridIDE.py
CommitLineData
1f780e48
RD
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#----------------------------------------------------------------------------
12import wx.lib.pydocview
13import activegrid.tool.IDE
14
15import os
16import sys
17sys.stdout = sys.stderr
18
19# This is here as the base IDE entry point. Only difference is that -baseide is passed.
20
21sys.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
25execDir = os.path.dirname(sys.executable)
26try:
27 sys.path.index(execDir)
28except ValueError:
29 sys.path.append(execDir)
30app = activegrid.tool.IDE.IDEApplication(redirect = False)
31app.GetTopWindow().Raise() # sometimes it shows up beneath other windows. e.g. running self in debugger
32app.MainLoop()
33