]> git.saurik.com Git - wxWidgets.git/commitdiff
The truth is out there.
authorPatrick K. O'Brien <pobrien@orbtech.com>
Fri, 13 Feb 2004 02:47:59 +0000 (02:47 +0000)
committerPatrick K. O'Brien <pobrien@orbtech.com>
Fri, 13 Feb 2004 02:47:59 +0000 (02:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

19 files changed:
wxPython/wx/py/PyAlaCarte.py
wxPython/wx/py/PyAlaMode.py
wxPython/wx/py/PyAlaModeTest.py
wxPython/wx/py/PyCrust.py
wxPython/wx/py/PyFilling.py
wxPython/wx/py/PyShell.py
wxPython/wx/py/PyWrap.py
wxPython/wx/py/buffer.py
wxPython/wx/py/crust.py
wxPython/wx/py/dispatcher.py
wxPython/wx/py/document.py
wxPython/wx/py/editor.py
wxPython/wx/py/editwindow.py
wxPython/wx/py/filling.py
wxPython/wx/py/frame.py
wxPython/wx/py/interpreter.py
wxPython/wx/py/introspect.py
wxPython/wx/py/pseudo.py
wxPython/wx/py/shell.py

index 0f71bd447b901b0abadf8ae9af32bec99e4ca025..c665e4f4b608f2b80d27044409c5355c84bad0c6 100644 (file)
@@ -11,12 +11,6 @@ import sys
 
 import editor
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 class App(wx.App):
     """PyAlaCarte standalone application."""
 
index d33243a36ad116e4b45e04eb9e91735aadeee088..06d1583657669f9891162436d3c2170ab154daf1 100644 (file)
@@ -11,12 +11,6 @@ import sys
 
 import editor
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 class App(wx.App):
     """PyAlaMode standalone application."""
 
index 57b52e4524b4f598b70f378f4ae8dab64f8389aa..3ae9cb600adff6467de8b9dd813a9356975db125 100755 (executable)
@@ -11,12 +11,6 @@ import sys
 
 import editor
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 class App(wx.App):
     """PyAlaModeTest standalone application."""
 
index c48cb344df6996374d450aa474c4d49074728edb..4bd56370507b147ba538c59acfded7466829db99 100644 (file)
@@ -13,12 +13,6 @@ __revision__ = "$Revision$"[11:-2]
 
 import wx
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class App(wx.App):
     """PyCrust standalone application."""
index 5331791f33f5195daaee1dd659410491be340b5c..df8d1ca6214cbc4f874f1ac30aa60a0956f7ce5d 100644 (file)
@@ -18,13 +18,6 @@ import shell
 import sys
 import wx
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
-
 class App(filling.App):
     def OnInit(self):
         filling.App.OnInit(self)
@@ -38,6 +31,5 @@ def main():
     app.fillingFrame.filling.tree.Expand(app.root)
     app.MainLoop()
 
-
 if __name__ == '__main__':
     main()
index 39f3c103f95e51d6a5ee3d5df036f1ebbb56d26d..954ebed4c3358d34915bc3ede4b8f7a5d73de992 100644 (file)
@@ -13,13 +13,6 @@ __revision__ = "$Revision$"[11:-2]
 
 import wx
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
-
 class App(wx.App):
     """PyShell standalone application."""
 
index 4911be1ae174931d517d32e16b7ff3d47e48316b..333ad8d064e1827897e22ed5a955a918c1e70e7e 100644 (file)
@@ -8,24 +8,16 @@ __revision__ = "$Revision$"[11:-2]
 import os
 import sys
 import wx
-from crust import CrustFrame as Frame
-
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
+from wx.py.crust import CrustFrame
 
 def wrap(app):
     wx.InitAllImageHandlers()
-    frame = Frame()
+    frame = CrustFrame()
     frame.SetSize((750, 525))
     frame.Show(True)
     frame.shell.interp.locals['app'] = app
     app.MainLoop()
 
-
 def main(modulename=None):
     sys.path.insert(0, os.curdir)
     if not modulename:
@@ -46,11 +38,10 @@ def main(modulename=None):
         except (NameError, TypeError):
             pass
     if App is None:
-        print "No App class found."
+        print "No App class was found."
         raise SystemExit
     app = App()
     wrap(app)
 
-
 if __name__ == '__main__':
     main()
index ebb04cc920c3ab8a4664545b9e9591afd0fc681a..0139ce8663e24ae5d02b6500aaa77a65c5e32a34 100644 (file)
@@ -11,12 +11,6 @@ import sys
 
 import document
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class Buffer:
     """Buffer class."""
index ef9d235804987fa088c36b7cadfae68fe051681a..21a71cc680e2122505592894ca3ba87290845814 100644 (file)
@@ -17,12 +17,6 @@ import frame
 from shell import Shell
 from version import VERSION
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class Crust(wx.SplitterWindow):
     """Crust based on SplitterWindow."""
index 9509d1edddb6e5e5a5a1d56f63fee65950f9dd23..4242179884c2dc6863735b3157029885ecf05f93 100644 (file)
@@ -8,12 +8,6 @@ import exceptions
 import types
 import weakref
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class DispatcherError(exceptions.Exception):
     def __init__(self, args=None):
index 7bba48cb5405c1084b377a6e3602d275a883ff7f..ab00ca049065f5d8ccf0476ee783c8832958890c 100644 (file)
@@ -6,12 +6,6 @@ __revision__ = "$Revision$"[11:-2]
 
 import os
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class Document:
     """Document class."""
index 6a547188f74bbf355cd8f6a6ec12244d4baabcc0..6a6293ca22b2c5eec7c5c9280d4a4d1088a290de 100644 (file)
@@ -14,12 +14,6 @@ import frame
 from shell import Shell
 import version
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class EditorFrame(frame.Frame):
     """Frame containing one editor."""
index 1d44f1d8633035f8c0d78f01515ea66789b6253d..e95ba172187bc9afb5e8b4d003f584ff0022ce77 100644 (file)
@@ -15,11 +15,6 @@ import time
 import dispatcher
 from version import VERSION
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
 
 if wx.Platform == '__WXMSW__':
     FACES = { 'times'  : 'Times New Roman',
index 0a4b701465ecdcb98d85a8610fd6363dc79d0c1f..f34bbf0153c307dd47c7592c2cdf6ee2d7aea532 100644 (file)
@@ -16,11 +16,6 @@ import sys
 import types
 from version import VERSION
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
 
 COMMONTYPES = [getattr(types, t) for t in dir(types) \
                if not t.startswith('_') \
index 006818d3090e3322d6df619147f21d37251b46f4..ddcfa688e3c6a39cb8b6713e3de24eb3fbd13ae9 100644 (file)
@@ -7,11 +7,6 @@ __revision__ = "$Revision$"[11:-2]
 import wx
 from version import VERSION
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
 
 ID_NEW = wx.ID_NEW
 ID_OPEN = wx.ID_OPEN
index 426b0b966f0446bfa508db7f54f4d4c5b1964fce..fe95d5e80b839065427809185b89df584bef4a99 100644 (file)
@@ -10,12 +10,6 @@ from code import InteractiveInterpreter
 import dispatcher
 import introspect
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class Interpreter(InteractiveInterpreter):
     """Interpreter based on code.InteractiveInterpreter."""
index a6df887ea21f05d576be01223aa98e7358aad3bc..e948296ed8c49d355aab02045fdfb98e9202beba 100644 (file)
@@ -13,12 +13,6 @@ import sys
 import tokenize
 import types
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 def getAutoCompleteList(command='', locals=None, includeMagic=1, 
                         includeSingle=1, includeDouble=1):
     """Return list of auto-completion options for command.
index 583854809a111ce294a1cca60124bafad2a1bc1d..482be6c4cc43b4eb151842076d8f8334d6386407 100644 (file)
@@ -4,12 +4,6 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
 __cvsid__ = "$Id$"
 __revision__ = "$Revision$"[11:-2]
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 
 class PseudoKeyword:
     """A callable class that calls a method passed as a parameter.
index 722b59649a1a157b20c78cf22bae9168d0494491..841a0e47e67fcf72b338a72cf63e6e581879aaa5 100644 (file)
@@ -25,12 +25,6 @@ from pseudo import PseudoFileOut
 from pseudo import PseudoFileErr
 from version import VERSION
 
-try:
-    True
-except NameError:
-    True = 1==1
-    False = 1==0
-
 sys.ps3 = '<-- '  # Input prompt.
 
 NAVKEYS = (wx.WXK_END, wx.WXK_LEFT, wx.WXK_RIGHT,