The truth is out there.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Patrick K. O'Brien 2004-02-13 02:47:59 +00:00
parent b62e750df9
commit 578b389d6e
19 changed files with 3 additions and 120 deletions

View File

@ -11,12 +11,6 @@ import sys
import editor import editor
try:
True
except NameError:
True = 1==1
False = 1==0
class App(wx.App): class App(wx.App):
"""PyAlaCarte standalone application.""" """PyAlaCarte standalone application."""

View File

@ -11,12 +11,6 @@ import sys
import editor import editor
try:
True
except NameError:
True = 1==1
False = 1==0
class App(wx.App): class App(wx.App):
"""PyAlaMode standalone application.""" """PyAlaMode standalone application."""

View File

@ -11,12 +11,6 @@ import sys
import editor import editor
try:
True
except NameError:
True = 1==1
False = 1==0
class App(wx.App): class App(wx.App):
"""PyAlaModeTest standalone application.""" """PyAlaModeTest standalone application."""

View File

@ -13,12 +13,6 @@ __revision__ = "$Revision$"[11:-2]
import wx import wx
try:
True
except NameError:
True = 1==1
False = 1==0
class App(wx.App): class App(wx.App):
"""PyCrust standalone application.""" """PyCrust standalone application."""

View File

@ -18,13 +18,6 @@ import shell
import sys import sys
import wx import wx
try:
True
except NameError:
True = 1==1
False = 1==0
class App(filling.App): class App(filling.App):
def OnInit(self): def OnInit(self):
filling.App.OnInit(self) filling.App.OnInit(self)
@ -38,6 +31,5 @@ def main():
app.fillingFrame.filling.tree.Expand(app.root) app.fillingFrame.filling.tree.Expand(app.root)
app.MainLoop() app.MainLoop()
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@ -13,13 +13,6 @@ __revision__ = "$Revision$"[11:-2]
import wx import wx
try:
True
except NameError:
True = 1==1
False = 1==0
class App(wx.App): class App(wx.App):
"""PyShell standalone application.""" """PyShell standalone application."""

View File

@ -8,24 +8,16 @@ __revision__ = "$Revision$"[11:-2]
import os import os
import sys import sys
import wx import wx
from crust import CrustFrame as Frame from wx.py.crust import CrustFrame
try:
True
except NameError:
True = 1==1
False = 1==0
def wrap(app): def wrap(app):
wx.InitAllImageHandlers() wx.InitAllImageHandlers()
frame = Frame() frame = CrustFrame()
frame.SetSize((750, 525)) frame.SetSize((750, 525))
frame.Show(True) frame.Show(True)
frame.shell.interp.locals['app'] = app frame.shell.interp.locals['app'] = app
app.MainLoop() app.MainLoop()
def main(modulename=None): def main(modulename=None):
sys.path.insert(0, os.curdir) sys.path.insert(0, os.curdir)
if not modulename: if not modulename:
@ -46,11 +38,10 @@ def main(modulename=None):
except (NameError, TypeError): except (NameError, TypeError):
pass pass
if App is None: if App is None:
print "No App class found." print "No App class was found."
raise SystemExit raise SystemExit
app = App() app = App()
wrap(app) wrap(app)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@ -11,12 +11,6 @@ import sys
import document import document
try:
True
except NameError:
True = 1==1
False = 1==0
class Buffer: class Buffer:
"""Buffer class.""" """Buffer class."""

View File

@ -17,12 +17,6 @@ import frame
from shell import Shell from shell import Shell
from version import VERSION from version import VERSION
try:
True
except NameError:
True = 1==1
False = 1==0
class Crust(wx.SplitterWindow): class Crust(wx.SplitterWindow):
"""Crust based on SplitterWindow.""" """Crust based on SplitterWindow."""

View File

@ -8,12 +8,6 @@ import exceptions
import types import types
import weakref import weakref
try:
True
except NameError:
True = 1==1
False = 1==0
class DispatcherError(exceptions.Exception): class DispatcherError(exceptions.Exception):
def __init__(self, args=None): def __init__(self, args=None):

View File

@ -6,12 +6,6 @@ __revision__ = "$Revision$"[11:-2]
import os import os
try:
True
except NameError:
True = 1==1
False = 1==0
class Document: class Document:
"""Document class.""" """Document class."""

View File

@ -14,12 +14,6 @@ import frame
from shell import Shell from shell import Shell
import version import version
try:
True
except NameError:
True = 1==1
False = 1==0
class EditorFrame(frame.Frame): class EditorFrame(frame.Frame):
"""Frame containing one editor.""" """Frame containing one editor."""

View File

@ -15,11 +15,6 @@ import time
import dispatcher import dispatcher
from version import VERSION from version import VERSION
try:
True
except NameError:
True = 1==1
False = 1==0
if wx.Platform == '__WXMSW__': if wx.Platform == '__WXMSW__':
FACES = { 'times' : 'Times New Roman', FACES = { 'times' : 'Times New Roman',

View File

@ -16,11 +16,6 @@ import sys
import types import types
from version import VERSION from version import VERSION
try:
True
except NameError:
True = 1==1
False = 1==0
COMMONTYPES = [getattr(types, t) for t in dir(types) \ COMMONTYPES = [getattr(types, t) for t in dir(types) \
if not t.startswith('_') \ if not t.startswith('_') \

View File

@ -7,11 +7,6 @@ __revision__ = "$Revision$"[11:-2]
import wx import wx
from version import VERSION from version import VERSION
try:
True
except NameError:
True = 1==1
False = 1==0
ID_NEW = wx.ID_NEW ID_NEW = wx.ID_NEW
ID_OPEN = wx.ID_OPEN ID_OPEN = wx.ID_OPEN

View File

@ -10,12 +10,6 @@ from code import InteractiveInterpreter
import dispatcher import dispatcher
import introspect import introspect
try:
True
except NameError:
True = 1==1
False = 1==0
class Interpreter(InteractiveInterpreter): class Interpreter(InteractiveInterpreter):
"""Interpreter based on code.InteractiveInterpreter.""" """Interpreter based on code.InteractiveInterpreter."""

View File

@ -13,12 +13,6 @@ import sys
import tokenize import tokenize
import types import types
try:
True
except NameError:
True = 1==1
False = 1==0
def getAutoCompleteList(command='', locals=None, includeMagic=1, def getAutoCompleteList(command='', locals=None, includeMagic=1,
includeSingle=1, includeDouble=1): includeSingle=1, includeDouble=1):
"""Return list of auto-completion options for command. """Return list of auto-completion options for command.

View File

@ -4,12 +4,6 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$" __cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2] __revision__ = "$Revision$"[11:-2]
try:
True
except NameError:
True = 1==1
False = 1==0
class PseudoKeyword: class PseudoKeyword:
"""A callable class that calls a method passed as a parameter. """A callable class that calls a method passed as a parameter.

View File

@ -25,12 +25,6 @@ from pseudo import PseudoFileOut
from pseudo import PseudoFileErr from pseudo import PseudoFileErr
from version import VERSION from version import VERSION
try:
True
except NameError:
True = 1==1
False = 1==0
sys.ps3 = '<-- ' # Input prompt. sys.ps3 = '<-- ' # Input prompt.
NAVKEYS = (wx.WXK_END, wx.WXK_LEFT, wx.WXK_RIGHT, NAVKEYS = (wx.WXK_END, wx.WXK_LEFT, wx.WXK_RIGHT,