Updated to 0.9b of PyCrust

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-03-11 19:41:55 +00:00
parent 733e6b6d19
commit 843ab900d9
56 changed files with 2072 additions and 1988 deletions

View File

@@ -96,7 +96,7 @@ Source: "wxPython\lib\mixins\*.py"; DestDir: "{app}\wxPython\lib\mixins"
Source: "wxPython\lib\PyCrust\*.py"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
Source: "wxPython\lib\PyCrust\*.txt"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
Source: "wxPython\lib\PyCrust\*.ico"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
Source: "wxPython\lib\PyCrust\decor\*.py"; DestDir: "{app}\wxPython\lib\PyCrust\decor"; Components: core
Source: "wxPython\lib\PyCrust\wxd\*.py"; DestDir: "{app}\wxPython\lib\PyCrust\wxd"; Components: core
Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
%(LOCALE)s

View File

@@ -1206,7 +1206,7 @@ if __name__ == "__main__":
PKGDIR+'.lib.editor',
PKGDIR+'.lib.mixins',
PKGDIR+'.lib.PyCrust',
PKGDIR+'.lib.PyCrust.decor',
PKGDIR+'.lib.PyCrust.wxd',
PKGDIR+'.tools',
PKGDIR+'.tools.XRCed',
],

View File

@@ -29,7 +29,7 @@ Introduced new tabbed interface:
* wxSTC Docs
Filling.tree now expands tuples as well as lists. (It should have done
this all along, I just never noticed this before.)
this all along, I just never noticed this omission before.)
Added this True/False test to all modules:
@@ -39,6 +39,7 @@ Added this True/False test to all modules:
True = 1==1
False = 1==0
Added wxd directory with decoration classes.
0.8.2 (1/5/2003 to 2/26/2003)

View File

@@ -41,19 +41,29 @@ class App(wx.wxApp):
sys.application = self
return 1
'''
The main() function needs to handle being imported, such as with the
pycrust script that wxPython installs:
#!/usr/bin/env python
from wxPython.lib.PyCrust.PyCrustApp import main
main()
'''
def main():
locals = __main__.__dict__
import __main__
md = __main__.__dict__
keepers = original
keepers.append('App')
for key in locals.keys():
for key in md.keys():
if key not in keepers:
del locals[key]
del md[key]
application = App(0)
if locals.has_key('App') and locals['App'] is App:
del locals['App']
if locals.has_key('__main__') and locals['__main__'] is __main__:
del locals['__main__']
if md.has_key('App') and md['App'] is App:
del md['App']
if md.has_key('__main__') and md['__main__'] is __main__:
del md['__main__']
application.MainLoop()
if __name__ == '__main__':

View File

@@ -6,7 +6,7 @@ __cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
# We use this object to get more introspection when run standalone.
application = None
app = None
import filling
@@ -30,16 +30,15 @@ except NameError:
class App(filling.App):
def OnInit(self):
filling.App.OnInit(self)
root = self.fillingFrame.filling.fillingTree.root
self.fillingFrame.filling.fillingTree.Expand(root)
return 1
self.root = self.fillingFrame.filling.tree.root
return True
def main():
"""Create and run the application."""
global application
application = App(0)
application.MainLoop()
global app
app = App(0)
app.fillingFrame.filling.tree.Expand(app.root)
app.MainLoop()
if __name__ == '__main__':

View File

@@ -42,19 +42,29 @@ class App(wx.wxApp):
sys.application = self
return 1
'''
The main() function needs to handle being imported, such as with the
pycrust script that wxPython installs:
#!/usr/bin/env python
from wxPython.lib.PyCrust.PyCrustApp import main
main()
'''
def main():
locals = __main__.__dict__
import __main__
md = __main__.__dict__
keepers = original
keepers.append('App')
for key in locals.keys():
for key in md.keys():
if key not in keepers:
del locals[key]
del md[key]
application = App(0)
if locals.has_key('App') and locals['App'] is App:
del locals['App']
if locals.has_key('__main__') and locals['__main__'] is __main__:
del locals['__main__']
if md.has_key('App') and md['App'] is App:
del md['App']
if md.has_key('__main__') and md['__main__'] is __main__:
del md['__main__']
application.MainLoop()
if __name__ == '__main__':

View File

@@ -50,20 +50,20 @@ class Crust(wx.wxSplitterWindow):
self.notebook.AddPage(self.sessionlisting, 'Session')
self.dispatcherlisting = DispatcherListing(parent=self.notebook)
self.notebook.AddPage(self.dispatcherlisting, 'Dispatcher')
from decor import wxDecor
from wxd import wx_
self.wxdocs = Filling(parent=self.notebook,
rootObject=wxDecor,
rootObject=wx_,
rootLabel='wx',
rootIsNamespace=False,
static=True)
self.notebook.AddPage(self.wxdocs, 'wxPython Docs')
from decor import stcDecor
from wxd import stc_
self.stcdocs = Filling(parent=self.notebook,
rootObject=stcDecor.wxStyledTextCtrl,
rootLabel='wxStyledTextCtrl',
rootObject=stc_.StyledTextCtrl,
rootLabel='StyledTextCtrl',
rootIsNamespace=False,
static=True)
self.notebook.AddPage(self.stcdocs, 'wxSTC Docs')
self.notebook.AddPage(self.stcdocs, 'StyledTextCtrl Docs')
self.SplitHorizontally(self.shell, self.notebook, 300)
self.SetMinimumPaneSize(1)

View File

@@ -1,57 +0,0 @@
"""Decorator classes for documentation and shell scripting.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
# These are not the real wxPython classes. These are Python versions
# for documentation purposes. They are also used to apply docstrings
# to the real wxPython classes, which are SWIG-generated wrappers for
# C-language classes.
_topics = {
'wxAccelerators': None,
'wxApp': None,
'wxBase': None,
'wxClipDragDrop': None,
'wxConfig': None,
'wxControls': None,
'wxDataStructures': None,
'wxDateTime': None,
'wxDialogs': None,
'wxDrawing': None,
'wxErrors': None,
'wxEventFunctions': None,
'wxEvents': None,
'wxFileSystem': None,
'wxFrames': None,
'wxFunctions': None,
'wxHelp': None,
'wxImageHandlers': None,
'wxJoystick': None,
'wxLayoutConstraints': None,
'wxLogging': None,
'wxMenus': None,
'wxMimeTypes': None,
'wxMisc': None,
'wxPanel': None,
'wxPrinting': None,
'wxProcess': None,
'wxSashSplitter': None,
'wxSizers': None,
'wxStreams': None,
'wxThreading': None,
'wxToolBar': None,
'wxTree': None,
'wxValidators': None,
'wxWindow': None,
}
for topic in _topics:
_topics[topic] = __import__(topic, globals())
exec 'from %s import *' % topic
del topic # Cleanup the namespace.

File diff suppressed because it is too large Load Diff

View File

@@ -1,76 +0,0 @@
"""Decorator classes for documentation and shell scripting.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
# These are not the real wxPython classes. These are Python versions
# for documentation purposes. They are also used to apply docstrings
# to the real wxPython classes, which are SWIG-generated wrappers for
# C-language classes.
class Param:
"""Used by this module to represent default wxPython parameter values,
including parameter representations like style=wxHSCROLL|wxVSCROLL."""
def __init__(self, value=None):
if value is None:
value = self.__class__.__name__
self.value = value
def __repr__(self):
return self.value
def __or__(self, other):
value = '%s|%s' % (self, other)
return self.__class__(value)
class NULL(Param): pass
NULL = NULL()
class wxBOTH(Param): pass
wxBOTH = wxBOTH()
class wxDefaultPosition(Param): pass
wxDefaultPosition = wxDefaultPosition()
class wxDefaultSize(Param): pass
wxDefaultSize = wxDefaultSize()
class wxDefaultValidator(Param): pass
wxDefaultValidator = wxDefaultValidator()
class wxEVT_NULL(Param): pass
wxEVT_NULL = wxEVT_NULL()
class wxHSCROLL(Param): pass
wxHSCROLL = wxHSCROLL()
class wxNullColour(Param): pass
wxNullColour = wxNullColour()
class wxPyNOTEBOOK_NAME(Param): pass
wxPyNOTEBOOK_NAME = wxPyNOTEBOOK_NAME()
class wxPyPanelNameStr(Param): pass
wxPyPanelNameStr = wxPyPanelNameStr()
class wxPySTCNameStr(Param): pass
wxPySTCNameStr = wxPySTCNameStr()
class wxSIZE_AUTO(Param): pass
wxSIZE_AUTO = wxSIZE_AUTO()
class wxSIZE_USE_EXISTING(Param): pass
wxSIZE_USE_EXISTING = wxSIZE_USE_EXISTING()
class wxTAB_TRAVERSAL(Param): pass
wxTAB_TRAVERSAL = wxTAB_TRAVERSAL()
class wxVSCROLL(Param): pass
wxVSCROLL = wxVSCROLL()

View File

@@ -22,13 +22,18 @@ from version import VERSION
import dispatcher
try:
import decor
import wxd.d_wx
except ImportError:
from wxPython import wx
else:
from wxd.d_wx import wx
try:
import wxd.d_stc
except ImportError:
from wxPython import stc
else:
from decor.decorate import wx
from decor.decorate import stc
from wxd.d_stc import stc
try:
True
@@ -259,6 +264,7 @@ class Shell(stc.wxStyledTextCtrl):
# Do this last so the user has complete control over their
# environment. They can override anything they want.
self.execStartupScript(self.interp.startupScript)
wx.wxCallAfter(self.ScrollToLine, 0)
def fontsizer(self, signal):
"""Receiver for Font* signals."""
@@ -315,7 +321,6 @@ class Shell(stc.wxStyledTextCtrl):
self.write(self.interp.introText)
except AttributeError:
pass
wx.wxCallAfter(self.ScrollToLine, 0)
def setBuiltinKeywords(self):
"""Create pseudo keywords as part of builtins.

View File

@@ -7,5 +7,5 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
VERSION = '0.9a'
VERSION = '0.9b'

View File

@@ -12,13 +12,21 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxAcceleratorEntry:
class AcceleratorEntry:
""""""
def __init__(self):
""""""
pass
def __del__(self):
""""""
pass
def GetCommand(self):
""""""
pass
@@ -35,24 +43,16 @@ class wxAcceleratorEntry:
""""""
pass
def __del__(self):
class AcceleratorTable(Object):
""""""
pass
def __init__(self):
""""""
pass
class wxAcceleratorTable(wxObject):
""""""
def __del__(self):
""""""
pass
def __init__(self):
""""""
pass

View File

@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxEvtHandler
from Base import EvtHandler
class wxPyApp(wxEvtHandler):
class PyApp(EvtHandler):
"""Python Application base class.
It is used to:
@@ -24,13 +24,13 @@ class wxPyApp(wxEvtHandler):
- implement the windowing system message or event loop;
- initiate application processing via wxApp.OnInit;
- initiate application processing via App.OnInit;
- allow default processing of events not handled by other objects
in the application."""
def __init__(self):
"""Create a wxPyApp instance."""
"""Create a PyApp instance."""
pass
def __del__(self):
@@ -84,7 +84,7 @@ class wxPyApp(wxEvtHandler):
def GetTopWindow(self):
"""Return the top window.
If the top window hasn't been set using wxApp.SetTopWindow,
If the top window hasn't been set using App.SetTopWindow,
this method will find the first top-level window (frame or
dialog) and return that."""
pass
@@ -100,7 +100,7 @@ class wxPyApp(wxEvtHandler):
def Initialized(self):
"""Return True if the application has been initialized
(i.e. if wxApp.OnInit has returned successfully). This can be
(i.e. if App.OnInit has returned successfully). This can be
useful for error message routines to determine which method of
output is best for the current state of the program (some
windowing systems may not like dialogs to pop up before the
@@ -118,7 +118,7 @@ class wxPyApp(wxEvtHandler):
def OnAssert(self, file, line, cond, msg):
"""Called when an assert failure occurs, i.e. the condition
specified in wxASSERT macro evaluated to FALSE. It is only
specified in ASSERT macro evaluated to FALSE. It is only
called in debug mode (when __WXDEBUG__ is defined) as asserts
are not left in the release code at all.
@@ -132,8 +132,8 @@ class wxPyApp(wxEvtHandler):
cond is the condition of the failed assert in string form
msg is the message specified as argument to wxASSERT_MSG or
wxFAIL_MSG, will be NULL if just wxASSERT or wxFAIL was used"""
msg is the message specified as argument to ASSERT_MSG or
FAIL_MSG, will be NULL if just ASSERT or FAIL was used"""
pass
def OnExit(self):
@@ -146,7 +146,7 @@ class wxPyApp(wxEvtHandler):
def OnInit(self):
"""This must be provided by the application, and will usually
create the application's main window, optionally calling
wxApp.SetTopWindow.
App.SetTopWindow.
Return True to continue processing, False to exit the
application."""
@@ -174,8 +174,8 @@ class wxPyApp(wxEvtHandler):
def SetAssertMode(self, mode):
"""Lets you control how C++ assertions are processed.
Valid modes are: wxPYAPP_ASSERT_SUPPRESS,
wxPYAPP_ASSERT_EXCEPTION, and wxPYAPP_ASSERT_DIALOG. Using
Valid modes are: PYAPP_ASSERT_SUPPRESS,
PYAPP_ASSERT_EXCEPTION, and PYAPP_ASSERT_DIALOG. Using
_SUPPRESS will give you behavior like the old final builds and
the assert will be ignored, _EXCEPTION is the new default
described above, and _DIALOG is like the default in 2.3.3.1
@@ -208,7 +208,7 @@ class wxPyApp(wxEvtHandler):
def SetTopWindow(self, window):
"""Set the 'top' window.
You can call this from within wxApp.OnInit to let wxWindows
You can call this from within App.OnInit to let wxWindows
know which is the main window. You don't have to set the top
window; it is only a convenience so that (for example) certain
dialogs without parents can use a specific window as the top
@@ -226,7 +226,7 @@ class wxPyApp(wxEvtHandler):
mode.
Note that this function has to be called in the constructor of
the wxApp instance and won't have any effect when called later
the App instance and won't have any effect when called later
on.
This function currently only has effect under GTK."""
@@ -249,7 +249,7 @@ class wxPyApp(wxEvtHandler):
the user to perform actions which are not compatible with the
current task. Disabling menu items or whole menus during
processing can avoid unwanted reentrance of code: see
wx.wxSafeYield for a better function.
wx.SafeYield for a better function.
Calling Yield() recursively is normally an error and an assert
failure is raised in debug build if such situation is
@@ -258,7 +258,7 @@ class wxPyApp(wxEvtHandler):
pass
class wxApp(wxPyApp):
class App(PyApp):
"""The main application class.
Inherit from this class and implement an OnInit method that
@@ -316,29 +316,29 @@ class wxApp(wxPyApp):
## sys.stdout, sys.stderr = self.saveStdio
class wxPyOnDemandOutputWindow:
"""Used by wxApp to display stdout and stderr messages if app is
created using wxApp(redirect=True). Mostly useful on Windows or
class PyOnDemandOutputWindow:
"""Used by App to display stdout and stderr messages if app is
created using App(redirect=True). Mostly useful on Windows or
Mac where apps aren't always launched from the command line."""
pass
class wxPySimpleApp(wxApp):
"""Use instead of wxApp for simple apps with a simple frame or
class PySimpleApp(App):
"""Use instead of App for simple apps with a simple frame or
dialog, particularly for testing."""
def __init__(self, flag=0):
"""Create a wxPySimpleApp instance.
"""Create a PySimpleApp instance.
flag is the same as wxApp's redirect parameter to redirect stdio."""
flag is the same as App's redirect parameter to redirect stdio."""
pass
def OnInit(self):
"""Automatically does a wxInitAllImageHandlers()."""
"""Automatically does a wx.InitAllImageHandlers()."""
pass
class wxPyWidgetTester(wxApp):
class PyWidgetTester(App):
""""""
def __init__(self):
@@ -354,7 +354,7 @@ class wxPyWidgetTester(wxApp):
pass
class wxSingleInstanceChecker:
class SingleInstanceChecker:
""""""
def __init__(self):

View File

@@ -12,18 +12,18 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
import Parameters as wx
class wxObject:
class Object:
"""Base class for all other wxPython classes."""
def __init__(self):
"""Create a wxObject instance."""
"""Create a Object instance."""
pass
def Destroy(self):
"""Destroy the wxObject instance."""
"""Destroy the Object instance."""
pass
def GetClassName(self):
@@ -31,7 +31,7 @@ class wxObject:
pass
class wxEvtHandler(wxObject):
class EvtHandler(Object):
"""Base class that can handle events from the windowing system.
If the handler is part of a chain, the destructor will unlink
@@ -39,7 +39,7 @@ class wxEvtHandler(wxObject):
point to each other."""
def __init__(self):
"""Create a wxEvtHandler instance."""
"""Create a EvtHandler instance."""
pass
def _setOORInfo(self):
@@ -61,7 +61,7 @@ class wxEvtHandler(wxObject):
A copy of event is made by the function, so the original can
be deleted as soon as function returns (it is common that the
original is created on the stack). This requires that the
wxEvent::Clone method be implemented by event so that it can
Event::Clone method be implemented by event so that it can
be duplicated and stored until it gets processed.
This is also the method to call for inter-thread
@@ -75,7 +75,7 @@ class wxEvtHandler(wxObject):
This method automatically wakes up idle handling if the
underlying window system is currently idle and thus would not
send any idle events. (Waking up idle handling is done
calling wxWakeUpIdle.)"""
calling WakeUpIdle.)"""
pass
def Connect(self, id, lastId, eventType, func):
@@ -97,12 +97,12 @@ class wxEvtHandler(wxObject):
userData is data to be associated with the event table entry."""
pass
def Disconnect(self, id, lastId=-1, eventType=wx.wxEVT_NULL):
def Disconnect(self, id, lastId=-1, eventType=wx.EVT_NULL):
"""Disconnects the given function dynamically from the event
handler, using the specified parameters as search criteria and
returning True if a matching function has been found and
removed. This method can only disconnect functions which have
been added using the wxEvtHandler.Connect method. There is no
been added using the EvtHandler.Connect method. There is no
way to disconnect functions connected using the (static) event
tables.
@@ -137,7 +137,7 @@ class wxEvtHandler(wxObject):
"""Processes an event, searching event tables and calling zero
or more suitable event handler function(s). Return True if a
suitable event handler function was found and executed, and
the function did not call wxEvent.Skip().
the function did not call Event.Skip().
event is an Event to process.
@@ -157,17 +157,17 @@ class wxEvtHandler(wxObject):
potential event handlers. When an event reaches a frame,
ProcessEvent will need to be called on the associated document
and view in case event handler functions are associated with
these objects. The property classes library (wxProperty) also
these objects. The property classes library (Property) also
overrides ProcessEvent for similar reasons.
The normal order of event table searching is as follows:
1. If the object is disabled (via a call to
wxEvtHandler.SetEvtHandlerEnabled) the function skips to step
EvtHandler.SetEvtHandlerEnabled) the function skips to step
(6).
2. If the object is a wxWindow, ProcessEvent is recursively
called on the window's wxValidator. If this returns TRUE, the
2. If the object is a Window, ProcessEvent is recursively
called on the window's Validator. If this returns TRUE, the
function exits.
3. SearchEventTable is called for this event handler. If this
@@ -179,16 +179,16 @@ class wxEvtHandler(wxObject):
handlers (usually the chain has a length of one). If this
succeeds, the function exits.
5. If the object is a wxWindow and the event is a
wxCommandEvent, ProcessEvent is recursively applied to the
5. If the object is a Window and the event is a
CommandEvent, ProcessEvent is recursively applied to the
parent window's event handler. If this returns TRUE, the
function exits.
6. Finally, ProcessEvent is called on the wxApp object.
6. Finally, ProcessEvent is called on the App object.
See also:
wxEvtHandler::SearchEventTable"""
EvtHandler::SearchEventTable"""
pass
def SetEvtHandlerEnabled(self, enabled):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxClipboard(wxObject):
class Clipboard(Object):
""""""
def AddData(self):
@@ -64,7 +64,7 @@ class wxClipboard(wxObject):
pass
class wxDataFormat:
class DataFormat:
""""""
def GetId(self):
@@ -92,7 +92,7 @@ class wxDataFormat:
pass
class wxDataObject:
class DataObject:
""""""
def GetAllFormats(self):
@@ -132,7 +132,7 @@ class wxDataObject:
pass
class wxDataObjectComposite(wxDataObject):
class DataObjectComposite(DataObject):
""""""
def Add(self):
@@ -144,7 +144,7 @@ class wxDataObjectComposite(wxDataObject):
pass
class wxDataObjectSimple(wxDataObject):
class DataObjectSimple(DataObject):
""""""
def GetFormat(self):
@@ -160,7 +160,7 @@ class wxDataObjectSimple(wxDataObject):
pass
class wxPyDataObjectSimple(wxDataObjectSimple):
class PyDataObjectSimple(DataObjectSimple):
""""""
def __init__(self):
@@ -172,7 +172,7 @@ class wxPyDataObjectSimple(wxDataObjectSimple):
pass
class wxBitmapDataObject(wxDataObjectSimple):
class BitmapDataObject(DataObjectSimple):
""""""
def GetBitmap(self):
@@ -188,7 +188,7 @@ class wxBitmapDataObject(wxDataObjectSimple):
pass
class wxPyBitmapDataObject(wxBitmapDataObject):
class PyBitmapDataObject(BitmapDataObject):
""""""
def __init__(self):
@@ -200,7 +200,7 @@ class wxPyBitmapDataObject(wxBitmapDataObject):
pass
class wxCustomDataObject(wxDataObjectSimple):
class CustomDataObject(DataObjectSimple):
""""""
def GetData(self):
@@ -224,7 +224,7 @@ class wxCustomDataObject(wxDataObjectSimple):
pass
class wxDragImage(wxObject):
class DragImage(Object):
""""""
def BeginDrag(self):
@@ -272,7 +272,7 @@ class wxDragImage(wxObject):
pass
class wxDropSource:
class DropSource:
""""""
def DoDragDrop(self):
@@ -308,7 +308,7 @@ class wxDropSource:
pass
class wxDropTarget:
class DropTarget:
""""""
def __init__(self):
@@ -316,7 +316,7 @@ class wxDropTarget:
pass
class wxPyDropTarget(wxDropTarget):
class PyDropTarget(DropTarget):
""""""
def GetData(self):
@@ -360,7 +360,7 @@ class wxPyDropTarget(wxDropTarget):
pass
class wxFileDataObject(wxDataObjectSimple):
class FileDataObject(DataObjectSimple):
""""""
def GetFilenames(self):
@@ -372,7 +372,7 @@ class wxFileDataObject(wxDataObjectSimple):
pass
class wxFileDropTarget(wxPyDropTarget):
class FileDropTarget(PyDropTarget):
""""""
def __init__(self):
@@ -404,7 +404,7 @@ class wxFileDropTarget(wxPyDropTarget):
pass
class wxTextDataObject(wxDataObjectSimple):
class TextDataObject(DataObjectSimple):
""""""
def GetText(self):
@@ -424,7 +424,7 @@ class wxTextDataObject(wxDataObjectSimple):
pass
class wxPyTextDataObject(wxTextDataObject):
class PyTextDataObject(TextDataObject):
""""""
def __init__(self):
@@ -436,7 +436,7 @@ class wxPyTextDataObject(wxTextDataObject):
pass
class wxTextDropTarget(wxPyDropTarget):
class TextDropTarget(PyDropTarget):
""""""
def __init__(self):
@@ -468,7 +468,7 @@ class wxTextDropTarget(wxPyDropTarget):
pass
class wxURLDataObject(wxDataObjectComposite):
class URLDataObject(DataObjectComposite):
""""""
def GetURL(self):

View File

@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
import Parameters as wx
class wxConfigBase:
class ConfigBase:
""""""
def DeleteAll(self):
@@ -175,7 +175,7 @@ class wxConfigBase:
pass
class wxConfig(wxConfigBase):
class Config(ConfigBase):
""""""
def __del__(self):
@@ -187,7 +187,7 @@ class wxConfig(wxConfigBase):
pass
class wxFileConfig(wxConfigBase):
class FileConfig(ConfigBase):
""""""
def __del__(self):

View File

@@ -12,32 +12,32 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from wxWindow import wxWindow
from Base import Object
import Parameters as wx
from Window import Window
class wxControl(wxWindow):
class Control(Window):
"""Base class for a control or 'widget'.
A control is generally a small window which processes user input
and/or displays one or more item of data."""
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0,
validator=wx.wxDefaultValidator, name='control'):
"""Create a wxControl instance."""
def __init__(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0,
validator=wx.DefaultValidator, name='control'):
"""Create a Control instance."""
pass
def Command(self, event):
"""Simulates the effect of the user issuing a command to the
item. See wxCommandEvent."""
item. See CommandEvent."""
pass
def Create(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0,
validator=wx.wxDefaultValidator, name='control'):
"""Create a wxControl instance."""
def Create(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0,
validator=wx.DefaultValidator, name='control'):
"""Create a Control instance."""
pass
def GetLabel(self):
@@ -49,7 +49,7 @@ class wxControl(wxWindow):
pass
class wxPyControl(wxControl):
class PyControl(Control):
""""""
def __init__(self):
@@ -133,7 +133,7 @@ class wxPyControl(wxControl):
pass
class wxControlWithItems(wxControl):
class ControlWithItems(Control):
""""""
def Append(self):
@@ -193,7 +193,7 @@ class wxControlWithItems(wxControl):
pass
class wxButton(wxControl):
class Button(Control):
"""A button is a control that contains a text string, and is one
of the most common elements of a GUI. It may be placed on a
dialog box or panel, or indeed almost any other window.
@@ -201,16 +201,16 @@ class wxButton(wxControl):
Styles
------
wxBU_LEFT: Left-justifies the label. WIN32 only.
BU_LEFT: Left-justifies the label. WIN32 only.
wxBU_TOP: Aligns the label to the top of the button. WIN32 only.
BU_TOP: Aligns the label to the top of the button. WIN32 only.
wxBU_RIGHT: Right-justifies the bitmap label. WIN32 only.
BU_RIGHT: Right-justifies the bitmap label. WIN32 only.
wxBU_BOTTOM: Aligns the label to the bottom of the button. WIN32
BU_BOTTOM: Aligns the label to the bottom of the button. WIN32
only.
wxBU_EXACTFIT: Creates the button as small as possible instead of
BU_EXACTFIT: Creates the button as small as possible instead of
making it of the standard size (which is the default behaviour.)
Events
@@ -218,9 +218,9 @@ class wxButton(wxControl):
EVT_BUTTON(win,id,func): Sent when the button is clicked."""
def __init__(self, parent, id, label, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0,
validator=wx.wxDefaultValidator, name='button'):
def __init__(self, parent, id, label, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0,
validator=wx.DefaultValidator, name='button'):
"""Create and show a button.
parent: Parent window. Must not be None.
@@ -229,14 +229,14 @@ class wxButton(wxControl):
pos: The button position on it's parent.
size: Button size. If the default size (-1, -1) is specified
then the button is sized appropriately for the text.
style: Window style. See wxButton.
style: Window style. See Button.
validator: Window validator.
name: Window name."""
pass
def Create(self, parent, id, label, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0,
validator=wx.wxDefaultValidator, name='button'):
def Create(self, parent, id, label, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0,
validator=wx.DefaultValidator, name='button'):
"""Create and show a button."""
pass
@@ -251,9 +251,9 @@ class wxButton(wxControl):
Under Windows, only dialog box buttons respond to this
function. As normal under Windows and Motif, pressing return
causes the default button to be depressed when the return key
is pressed. See also wxWindow.SetFocus which sets the keyboard
is pressed. See also Window.SetFocus which sets the keyboard
focus for windows and text panel items, and
wxPanel.SetDefaultItem."""
Panel.SetDefaultItem."""
pass
def SetForegroundColour(self):
@@ -261,7 +261,7 @@ class wxButton(wxControl):
pass
class wxBitmapButton(wxButton):
class BitmapButton(Button):
""""""
def Create(self):
@@ -317,7 +317,7 @@ class wxBitmapButton(wxButton):
pass
class wxCheckBox(wxControl):
class CheckBox(Control):
""""""
def __init__(self):
@@ -341,7 +341,7 @@ class wxCheckBox(wxControl):
pass
class wxChoice(wxControlWithItems):
class Choice(ControlWithItems):
""""""
def __init__(self):
@@ -381,7 +381,7 @@ class wxChoice(wxControlWithItems):
pass
class wxGauge(wxControl):
class Gauge(Control):
""""""
def Create(self):
@@ -425,7 +425,7 @@ class wxGauge(wxControl):
pass
class wxGenericDirCtrl(wxControl):
class GenericDirCtrl(Control):
""""""
def Create(self):
@@ -497,7 +497,7 @@ class wxGenericDirCtrl(wxControl):
pass
class wxListBox(wxControlWithItems):
class ListBox(ControlWithItems):
""""""
def Clear(self):
@@ -557,7 +557,7 @@ class wxListBox(wxControlWithItems):
pass
class wxCheckListBox(wxListBox):
class CheckListBox(ListBox):
""""""
def __init__(self):
@@ -593,7 +593,7 @@ class wxCheckListBox(wxListBox):
pass
class wxListCtrl(wxControl):
class ListCtrl(Control):
""""""
def Append(self):
@@ -889,7 +889,7 @@ class wxListCtrl(wxControl):
pass
class wxListItem(wxObject):
class ListItem(Object):
""""""
def Clear(self):
@@ -1025,7 +1025,7 @@ class wxListItem(wxObject):
pass
class wxListItemAttr:
class ListItemAttr:
""""""
def GetBackgroundColour(self):
@@ -1069,7 +1069,7 @@ class wxListItemAttr:
pass
class wxListView(wxListCtrl):
class ListView(ListCtrl):
""""""
def ClearColumnImage(self):
@@ -1113,10 +1113,10 @@ class wxListView(wxListCtrl):
pass
class wxNotebook(wxControl):
class Notebook(Control):
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0, name=wx.wxPyNOTEBOOK_NAME):
def __init__(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0, name=wx.PyNOTEBOOK_NAME):
""""""
pass
@@ -1132,8 +1132,8 @@ class wxNotebook(wxControl):
""""""
pass
def Create(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0, name=wx.wxPyNOTEBOOK_NAME):
def Create(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0, name=wx.PyNOTEBOOK_NAME):
""""""
pass
@@ -1210,7 +1210,7 @@ class wxNotebook(wxControl):
pass
class wxRadioBox(wxControl):
class RadioBox(Control):
""""""
def Create(self):
@@ -1278,7 +1278,7 @@ class wxRadioBox(wxControl):
pass
class wxRadioButton(wxControl):
class RadioButton(Control):
""""""
def Create(self):
@@ -1298,7 +1298,7 @@ class wxRadioButton(wxControl):
pass
class wxScrollBar(wxControl):
class ScrollBar(Control):
""""""
def Create(self):
@@ -1342,7 +1342,7 @@ class wxScrollBar(wxControl):
pass
class wxSlider(wxControl):
class Slider(Control):
""""""
def ClearSel(self):
@@ -1430,7 +1430,7 @@ class wxSlider(wxControl):
pass
class wxSpinButton(wxControl):
class SpinButton(Control):
""""""
def Create(self):
@@ -1462,7 +1462,7 @@ class wxSpinButton(wxControl):
pass
class wxSpinCtrl(wxSpinButton):
class SpinCtrl(SpinButton):
""""""
def Create(self):
@@ -1494,7 +1494,7 @@ class wxSpinCtrl(wxSpinButton):
pass
class wxStaticBitmap(wxControl):
class StaticBitmap(Control):
""""""
def Create(self):
@@ -1518,7 +1518,7 @@ class wxStaticBitmap(wxControl):
pass
class wxStaticBox(wxControl):
class StaticBox(Control):
""""""
def Create(self):
@@ -1530,7 +1530,7 @@ class wxStaticBox(wxControl):
pass
class wxStaticLine(wxControl):
class StaticLine(Control):
""""""
def Create(self):
@@ -1542,7 +1542,7 @@ class wxStaticLine(wxControl):
pass
class wxStaticText(wxControl):
class StaticText(Control):
""""""
def Create(self):
@@ -1562,7 +1562,7 @@ class wxStaticText(wxControl):
pass
class wxTextAttr:
class TextAttr:
""""""
def GetBackgroundColour(self):
@@ -1614,7 +1614,7 @@ class wxTextAttr:
pass
class wxTextCtrl(wxControl):
class TextCtrl(Control):
""""""
def AppendText(self):
@@ -1814,7 +1814,7 @@ class wxTextCtrl(wxControl):
pass
class wxToggleButton(wxControl):
class ToggleButton(Control):
""""""
def Create(self):

View File

@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
import Parameters as wx
class wxPoint:
class Point:
""""""
def Set(self):
@@ -79,7 +79,7 @@ class wxPoint:
pass
class wxPoint2DDouble:
class Point2DDouble:
""""""
def GetCrossProduct(self):
@@ -195,7 +195,7 @@ class wxPoint2DDouble:
pass
class wxRealPoint:
class RealPoint:
""""""
def Set(self):
@@ -259,7 +259,7 @@ class wxRealPoint:
pass
class wxRect:
class Rect:
""""""
def GetBottom(self):
@@ -403,7 +403,7 @@ class wxRect:
pass
class wxSize:
class Size:
""""""
def GetHeight(self):

View File

@@ -8,10 +8,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
import Parameters as wx
class wxDateSpan:
class DateSpan:
""""""
def Add(self):
@@ -95,7 +95,7 @@ class wxDateSpan:
pass
class wxDateTime:
class DateTime:
""""""
def AddDS(self):
@@ -443,7 +443,7 @@ class wxDateTime:
pass
class wxTimeSpan:
class TimeSpan:
""""""
def Abs(self):

View File

@@ -12,13 +12,13 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
from wxFrames import wxFrame
import wxParameters as wx
from wxWindow import wxTopLevelWindow
from Base import Object
from Frames import Frame
import Parameters as wx
from Window import TopLevelWindow
class wxDialog(wxTopLevelWindow):
class Dialog(TopLevelWindow):
""""""
def Centre(self):
@@ -66,7 +66,7 @@ class wxDialog(wxTopLevelWindow):
pass
class wxColourDialog(wxDialog):
class ColourDialog(Dialog):
""""""
def GetColourData(self):
@@ -82,7 +82,7 @@ class wxColourDialog(wxDialog):
pass
class wxColourData(wxObject):
class ColourData(Object):
""""""
def GetChooseFull(self):
@@ -118,7 +118,7 @@ class wxColourData(wxObject):
pass
class wxColourDatabase(wxObject):
class ColourDatabase(Object):
""""""
def Append(self):
@@ -138,7 +138,7 @@ class wxColourDatabase(wxObject):
pass
class wxDirDialog(wxDialog):
class DirDialog(Dialog):
""""""
def GetMessage(self):
@@ -170,7 +170,7 @@ class wxDirDialog(wxDialog):
pass
class wxFileDialog(wxDialog):
class FileDialog(Dialog):
""""""
def GetDirectory(self):
@@ -246,7 +246,7 @@ class wxFileDialog(wxDialog):
pass
class wxFindReplaceDialog(wxDialog):
class FindReplaceDialog(Dialog):
""""""
def Create(self):
@@ -266,7 +266,7 @@ class wxFindReplaceDialog(wxDialog):
pass
class wxFindReplaceData(wxObject):
class FindReplaceData(Object):
""""""
def GetFindString(self):
@@ -302,7 +302,7 @@ class wxFindReplaceData(wxObject):
pass
class wxFontDialog(wxDialog):
class FontDialog(Dialog):
""""""
def GetFontData(self):
@@ -318,7 +318,7 @@ class wxFontDialog(wxDialog):
pass
class wxFontData(wxObject):
class FontData(Object):
""""""
def EnableEffects(self):
@@ -382,7 +382,7 @@ class wxFontData(wxObject):
pass
class wxMessageDialog(wxDialog):
class MessageDialog(Dialog):
""""""
def ShowModal(self):
@@ -395,7 +395,7 @@ class wxMessageDialog(wxDialog):
class wxMultiChoiceDialog(wxDialog):
class MultiChoiceDialog(Dialog):
""""""
def GetSelections(self):
@@ -411,7 +411,7 @@ class wxMultiChoiceDialog(wxDialog):
pass
class wxProgressDialog(wxFrame):
class ProgressDialog(Frame):
""""""
def Resume(self):
@@ -427,7 +427,7 @@ class wxProgressDialog(wxFrame):
pass
class wxSingleChoiceDialog(wxDialog):
class SingleChoiceDialog(Dialog):
""""""
def GetSelection(self):
@@ -451,7 +451,7 @@ class wxSingleChoiceDialog(wxDialog):
pass
class wxTextEntryDialog(wxDialog):
class TextEntryDialog(Dialog):
""""""
def GetValue(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxDC(wxObject):
class DC(Object):
""""""
def BeginDrawing(self):
@@ -408,7 +408,7 @@ class wxDC(wxObject):
pass
class wxClientDC(wxDC):
class ClientDC(DC):
""""""
def __init__(self):
@@ -416,7 +416,7 @@ class wxClientDC(wxDC):
pass
class wxMemoryDC(wxDC):
class MemoryDC(DC):
""""""
def SelectObject(self):
@@ -428,7 +428,7 @@ class wxMemoryDC(wxDC):
pass
class wxBufferedDC(wxMemoryDC):
class BufferedDC(MemoryDC):
""""""
def UnMask(self):
@@ -440,7 +440,7 @@ class wxBufferedDC(wxMemoryDC):
pass
class wxBufferedPaintDC(wxBufferedDC):
class BufferedPaintDC(BufferedDC):
""""""
def __init__(self):
@@ -448,7 +448,7 @@ class wxBufferedPaintDC(wxBufferedDC):
pass
class wxPaintDC(wxDC):
class PaintDC(DC):
""""""
def __init__(self):
@@ -456,7 +456,7 @@ class wxPaintDC(wxDC):
pass
class wxPostScriptDC(wxDC):
class PostScriptDC(DC):
""""""
def GetPrintData(self):
@@ -472,7 +472,7 @@ class wxPostScriptDC(wxDC):
pass
class wxScreenDC(wxDC):
class ScreenDC(DC):
""""""
def EndDrawingOnTop(self):
@@ -492,7 +492,7 @@ class wxScreenDC(wxDC):
pass
class wxWindowDC(wxDC):
class WindowDC(DC):
""""""
def __init__(self):
@@ -500,7 +500,7 @@ class wxWindowDC(wxDC):
pass
class wxGDIObject(wxObject):
class GDIObject(Object):
""""""
def GetVisible(self):
@@ -524,7 +524,7 @@ class wxGDIObject(wxObject):
pass
class wxBitmap(wxGDIObject):
class Bitmap(GDIObject):
""""""
def CopyFromIcon(self):
@@ -592,7 +592,7 @@ class wxBitmap(wxGDIObject):
pass
class wxBrush(wxGDIObject):
class Brush(GDIObject):
""""""
def GetColour(self):
@@ -632,7 +632,7 @@ class wxBrush(wxGDIObject):
pass
class wxBrushList(wxObject):
class BrushList(Object):
""""""
def AddBrush(self):
@@ -656,7 +656,7 @@ class wxBrushList(wxObject):
pass
class wxColour(wxObject):
class Colour(Object):
""""""
def Blue(self):
@@ -712,7 +712,7 @@ class wxColour(wxObject):
pass
class wxCursor(wxGDIObject):
class Cursor(GDIObject):
""""""
def Ok(self):
@@ -728,7 +728,7 @@ class wxCursor(wxGDIObject):
pass
class wxFont(wxObject):
class Font(Object):
""""""
def GetEncoding(self):
@@ -848,7 +848,7 @@ class wxFont(wxObject):
pass
class wxFontList(wxObject):
class FontList(Object):
""""""
def AddFont(self):
@@ -872,7 +872,7 @@ class wxFontList(wxObject):
pass
class wxIcon(wxGDIObject):
class Icon(GDIObject):
""""""
def CopyFromBitmap(self):
@@ -920,7 +920,7 @@ class wxIcon(wxGDIObject):
pass
class wxIconBundle:
class IconBundle:
""""""
def AddIcon(self):
@@ -944,7 +944,7 @@ class wxIconBundle:
pass
class wxImage(wxObject):
class Image(Object):
""""""
def ConvertToBitmap(self):
@@ -1132,7 +1132,7 @@ class wxImage(wxObject):
pass
class wxImageList(wxObject):
class ImageList(Object):
""""""
def Add(self):
@@ -1180,7 +1180,7 @@ class wxImageList(wxObject):
pass
class wxMask(wxObject):
class Mask(Object):
""""""
def Destroy(self):
@@ -1192,7 +1192,7 @@ class wxMask(wxObject):
pass
class wxPalette(wxGDIObject):
class Palette(GDIObject):
""""""
def GetPixel(self):
@@ -1216,7 +1216,7 @@ class wxPalette(wxGDIObject):
pass
class wxPen(wxGDIObject):
class Pen(GDIObject):
""""""
def GetCap(self):
@@ -1280,7 +1280,7 @@ class wxPen(wxGDIObject):
pass
class wxPenList(wxObject):
class PenList(Object):
""""""
def AddPen(self):
@@ -1304,7 +1304,7 @@ class wxPenList(wxObject):
pass
class wxPyPen(wxPen):
class PyPen(Pen):
""""""
def SetDashes(self):
@@ -1320,7 +1320,7 @@ class wxPyPen(wxPen):
pass
class wxRegion(wxGDIObject):
class Region(GDIObject):
""""""
def Clear(self):
@@ -1412,7 +1412,7 @@ class wxRegion(wxGDIObject):
pass
class wxRegionIterator(wxObject):
class RegionIterator(Object):
""""""
def GetH(self):

View File

@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
class wxPyAssertionError(AssertionError):
class PyAssertionError(AssertionError):
""""""
pass
class wxPyDeadObjectError(AttributeError):
class PyDeadObjectError(AttributeError):
"""Instances of wx objects that are OOR capable will have their
__class__ attribute changed to a _wxPyDeadObject class when the
C++ object is deleted. Subsequent attempts to access object

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxEvent(wxObject):
class Event(Object):
""""""
def __init__(self):
@@ -68,7 +68,7 @@ class wxEvent(wxObject):
pass
class wxPyEvent(wxEvent):
class PyEvent(Event):
""""""
def GetSelf(self):
@@ -88,7 +88,7 @@ class wxPyEvent(wxEvent):
pass
class wxActivateEvent(wxEvent):
class ActivateEvent(Event):
""""""
def GetActive(self):
@@ -100,7 +100,7 @@ class wxActivateEvent(wxEvent):
pass
class wxCalculateLayoutEvent(wxEvent):
class CalculateLayoutEvent(Event):
""""""
def GetFlags(self):
@@ -124,7 +124,7 @@ class wxCalculateLayoutEvent(wxEvent):
pass
class wxCloseEvent(wxEvent):
class CloseEvent(Event):
""""""
def CanVeto(self):
@@ -156,7 +156,7 @@ class wxCloseEvent(wxEvent):
pass
class wxCommandEvent(wxEvent):
class CommandEvent(Event):
""""""
def __init__(self):
@@ -208,7 +208,7 @@ class wxCommandEvent(wxEvent):
pass
class wxChildFocusEvent(wxCommandEvent):
class ChildFocusEvent(CommandEvent):
""""""
def GetWindow(self):
@@ -220,7 +220,7 @@ class wxChildFocusEvent(wxCommandEvent):
pass
class wxContextMenuEvent(wxCommandEvent):
class ContextMenuEvent(CommandEvent):
""""""
def GetPosition(self):
@@ -236,7 +236,7 @@ class wxContextMenuEvent(wxCommandEvent):
pass
class wxDisplayChangedEvent(wxEvent):
class DisplayChangedEvent(Event):
""""""
def __init__(self):
@@ -244,7 +244,7 @@ class wxDisplayChangedEvent(wxEvent):
pass
class wxDropFilesEvent(wxEvent):
class DropFilesEvent(Event):
""""""
def GetFiles(self):
@@ -264,7 +264,7 @@ class wxDropFilesEvent(wxEvent):
pass
class wxEraseEvent(wxEvent):
class EraseEvent(Event):
""""""
def GetDC(self):
@@ -276,7 +276,7 @@ class wxEraseEvent(wxEvent):
pass
class wxFindDialogEvent(wxCommandEvent):
class FindDialogEvent(CommandEvent):
""""""
def GetDialog(self):
@@ -312,7 +312,7 @@ class wxFindDialogEvent(wxCommandEvent):
pass
class wxFocusEvent(wxEvent):
class FocusEvent(Event):
""""""
def __init__(self):
@@ -320,7 +320,7 @@ class wxFocusEvent(wxEvent):
pass
class wxIconizeEvent(wxEvent):
class IconizeEvent(Event):
""""""
def Iconized(self):
@@ -332,7 +332,7 @@ class wxIconizeEvent(wxEvent):
pass
class wxIdleEvent(wxEvent):
class IdleEvent(Event):
""""""
def MoreRequested(self):
@@ -348,7 +348,7 @@ class wxIdleEvent(wxEvent):
pass
class wxInitDialogEvent(wxEvent):
class InitDialogEvent(Event):
""""""
def __init__(self):
@@ -356,7 +356,7 @@ class wxInitDialogEvent(wxEvent):
pass
class wxJoystickEvent(wxEvent):
class JoystickEvent(Event):
""""""
def ButtonDown(self):
@@ -428,7 +428,7 @@ class wxJoystickEvent(wxEvent):
pass
class wxKeyEvent(wxEvent):
class KeyEvent(Event):
""""""
def AltDown(self):
@@ -496,7 +496,7 @@ class wxKeyEvent(wxEvent):
pass
class wxMaximizeEvent(wxEvent):
class MaximizeEvent(Event):
""""""
def __init__(self):
@@ -504,7 +504,7 @@ class wxMaximizeEvent(wxEvent):
pass
class wxMenuEvent(wxEvent):
class MenuEvent(Event):
""""""
def GetMenuId(self):
@@ -520,7 +520,7 @@ class wxMenuEvent(wxEvent):
pass
class wxMouseCaptureChangedEvent(wxEvent):
class MouseCaptureChangedEvent(Event):
""""""
def GetCapturedWindow(self):
@@ -532,7 +532,7 @@ class wxMouseCaptureChangedEvent(wxEvent):
pass
class wxMouseEvent(wxEvent):
class MouseEvent(Event):
""""""
def AltDown(self):
@@ -684,7 +684,7 @@ class wxMouseEvent(wxEvent):
pass
class wxMoveEvent(wxEvent):
class MoveEvent(Event):
""""""
def GetPosition(self):
@@ -696,7 +696,7 @@ class wxMoveEvent(wxEvent):
pass
class wxNavigationKeyEvent(wxEvent):
class NavigationKeyEvent(Event):
""""""
def GetCurrentFocus(self):
@@ -728,7 +728,7 @@ class wxNavigationKeyEvent(wxEvent):
pass
class wxNotifyEvent(wxCommandEvent):
class NotifyEvent(CommandEvent):
""""""
def __init__(self):
@@ -748,7 +748,7 @@ class wxNotifyEvent(wxCommandEvent):
pass
class wxListEvent(wxNotifyEvent):
class ListEvent(NotifyEvent):
""""""
def GetCacheFrom(self):
@@ -816,9 +816,9 @@ class wxListEvent(wxNotifyEvent):
pass
class wxNotebookEvent(wxNotifyEvent):
class NotebookEvent(NotifyEvent):
def __init__(self, commandType=wx.wxEVT_NULL, id=0, nSel=-1, nOldSel=-1):
def __init__(self, commandType=wx.EVT_NULL, id=0, nSel=-1, nOldSel=-1):
""""""
pass
@@ -839,7 +839,7 @@ class wxNotebookEvent(wxNotifyEvent):
pass
class wxPaintEvent(wxEvent):
class PaintEvent(Event):
""""""
def __init__(self):
@@ -847,7 +847,7 @@ class wxPaintEvent(wxEvent):
pass
class wxPaletteChangedEvent(wxEvent):
class PaletteChangedEvent(Event):
""""""
def GetChangedWindow(self):
@@ -863,7 +863,7 @@ class wxPaletteChangedEvent(wxEvent):
pass
class wxProcessEvent(wxEvent):
class ProcessEvent(Event):
""""""
def GetExitCode(self):
@@ -887,7 +887,7 @@ class wxProcessEvent(wxEvent):
pass
class wxPyCommandEvent(wxCommandEvent):
class PyCommandEvent(CommandEvent):
""""""
def GetSelf(self):
@@ -907,7 +907,7 @@ class wxPyCommandEvent(wxCommandEvent):
pass
class wxQueryLayoutInfoEvent(wxEvent):
class QueryLayoutInfoEvent(Event):
""""""
def GetAlignment(self):
@@ -955,7 +955,7 @@ class wxQueryLayoutInfoEvent(wxEvent):
pass
class wxQueryNewPaletteEvent(wxEvent):
class QueryNewPaletteEvent(Event):
""""""
def GetPaletteRealized(self):
@@ -971,7 +971,7 @@ class wxQueryNewPaletteEvent(wxEvent):
pass
class wxSashEvent(wxCommandEvent):
class SashEvent(CommandEvent):
""""""
def GetDragRect(self):
@@ -1003,7 +1003,7 @@ class wxSashEvent(wxCommandEvent):
pass
class wxScrollEvent(wxCommandEvent):
class ScrollEvent(CommandEvent):
""""""
def GetOrientation(self):
@@ -1019,7 +1019,7 @@ class wxScrollEvent(wxCommandEvent):
pass
class wxScrollWinEvent(wxEvent):
class ScrollWinEvent(Event):
""""""
def GetOrientation(self):
@@ -1035,7 +1035,7 @@ class wxScrollWinEvent(wxEvent):
pass
class wxSetCursorEvent(wxEvent):
class SetCursorEvent(Event):
""""""
def GetCursor(self):
@@ -1063,7 +1063,7 @@ class wxSetCursorEvent(wxEvent):
pass
class wxShowEvent(wxEvent):
class ShowEvent(Event):
""""""
def GetShow(self):
@@ -1079,7 +1079,7 @@ class wxShowEvent(wxEvent):
pass
class wxSizeEvent(wxEvent):
class SizeEvent(Event):
""""""
def GetSize(self):
@@ -1091,7 +1091,7 @@ class wxSizeEvent(wxEvent):
pass
class wxSpinEvent(wxScrollEvent):
class SpinEvent(ScrollEvent):
""""""
def __init__(self):
@@ -1099,7 +1099,7 @@ class wxSpinEvent(wxScrollEvent):
pass
class wxSplitterEvent(wxNotifyEvent):
class SplitterEvent(NotifyEvent):
""""""
def GetSashPosition(self):
@@ -1127,7 +1127,7 @@ class wxSplitterEvent(wxNotifyEvent):
pass
class wxSysColourChangedEvent(wxEvent):
class SysColourChangedEvent(Event):
""""""
def __init__(self):
@@ -1135,7 +1135,7 @@ class wxSysColourChangedEvent(wxEvent):
pass
class wxTextUrlEvent(wxCommandEvent):
class TextUrlEvent(CommandEvent):
""""""
def GetMouseEvent(self):
@@ -1155,7 +1155,7 @@ class wxTextUrlEvent(wxCommandEvent):
pass
class wxTimerEvent(wxEvent):
class TimerEvent(Event):
""""""
def GetInterval(self):
@@ -1167,7 +1167,7 @@ class wxTimerEvent(wxEvent):
pass
class wxTreeEvent(wxNotifyEvent):
class TreeEvent(NotifyEvent):
""""""
def GetCode(self):
@@ -1207,7 +1207,7 @@ class wxTreeEvent(wxNotifyEvent):
pass
class wxUpdateUIEvent(wxEvent):
class UpdateUIEvent(Event):
""""""
def Check(self):
@@ -1251,7 +1251,7 @@ class wxUpdateUIEvent(wxEvent):
pass
class wxWindowCreateEvent(wxCommandEvent):
class WindowCreateEvent(CommandEvent):
""""""
def GetWindow(self):
@@ -1263,7 +1263,7 @@ class wxWindowCreateEvent(wxCommandEvent):
pass
class wxWindowDestroyEvent(wxCommandEvent):
class WindowDestroyEvent(CommandEvent):
""""""
def GetWindow(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxFSFile(wxObject):
class FSFile(Object):
""""""
def GetAnchor(self):
@@ -44,7 +44,7 @@ class wxFSFile(wxObject):
pass
class wxFileSystem(wxObject):
class FileSystem(Object):
""""""
def ChangePathTo(self):
@@ -72,7 +72,7 @@ class wxFileSystem(wxObject):
pass
class wxCPPFileSystemHandler(wxObject):
class CPPFileSystemHandler(Object):
""""""
def __init__(self):
@@ -80,7 +80,7 @@ class wxCPPFileSystemHandler(wxObject):
pass
class wxFileSystemHandler(wxCPPFileSystemHandler):
class FileSystemHandler(CPPFileSystemHandler):
""""""
def CanOpen(self):
@@ -128,7 +128,7 @@ class wxFileSystemHandler(wxCPPFileSystemHandler):
pass
class wxInternetFSHandler(wxCPPFileSystemHandler):
class InternetFSHandler(CPPFileSystemHandler):
""""""
def CanOpen(self):
@@ -144,7 +144,7 @@ class wxInternetFSHandler(wxCPPFileSystemHandler):
pass
class wxMemoryFSHandler(wxCPPFileSystemHandler):
class MemoryFSHandler(CPPFileSystemHandler):
""""""
def CanOpen(self):
@@ -168,7 +168,7 @@ class wxMemoryFSHandler(wxCPPFileSystemHandler):
pass
class wxZipFSHandler(wxCPPFileSystemHandler):
class ZipFSHandler(CPPFileSystemHandler):
""""""
def CanOpen(self):

View File

@@ -12,22 +12,28 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from wxWindow import wxTopLevelWindow, wxWindow
from Base import Object
import Parameters as wx
from Window import TopLevelWindow, Window
class wxFrame(wxTopLevelWindow):
class Frame(TopLevelWindow):
""""""
def Command(self):
""""""
def __init__(self, parent, id, title, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE,
name=wx.PyFrameNameStr):
"""Create a Frame instance."""
pass
def Create(self):
""""""
pass
def Command(self):
""""""
pass
def CreateStatusBar(self):
""""""
pass
@@ -100,14 +106,14 @@ class wxFrame(wxTopLevelWindow):
""""""
pass
class LayoutAlgorithm(Object):
""""""
def __init__(self):
""""""
pass
class wxLayoutAlgorithm(wxObject):
""""""
def LayoutFrame(self):
""""""
pass
@@ -120,23 +126,19 @@ class wxLayoutAlgorithm(wxObject):
""""""
pass
def __del__(self):
class MDIChildFrame(Frame):
""""""
pass
def __init__(self):
""""""
pass
class wxMDIChildFrame(wxFrame):
""""""
def Activate(self):
def Create(self):
""""""
pass
def Create(self):
def Activate(self):
""""""
pass
@@ -148,25 +150,29 @@ class wxMDIChildFrame(wxFrame):
""""""
pass
class MDIClientWindow(Window):
""""""
def __init__(self):
""""""
pass
class wxMDIClientWindow(wxWindow):
""""""
def Create(self):
""""""
pass
class MDIParentFrame(Frame):
""""""
def __init__(self):
""""""
pass
class wxMDIParentFrame(wxFrame):
def Create(self):
""""""
pass
def ActivateNext(self):
""""""
@@ -184,10 +190,6 @@ class wxMDIParentFrame(wxFrame):
""""""
pass
def Create(self):
""""""
pass
def GetActiveChild(self):
""""""
pass
@@ -204,26 +206,26 @@ class wxMDIParentFrame(wxFrame):
""""""
pass
class MiniFrame(Frame):
""""""
def __init__(self):
""""""
pass
class wxMiniFrame(wxFrame):
""""""
def Create(self):
""""""
pass
class SplashScreen(Frame):
""""""
def __init__(self):
""""""
pass
class wxSplashScreen(wxFrame):
""""""
def GetSplashStyle(self):
""""""
pass
@@ -236,14 +238,14 @@ class wxSplashScreen(wxFrame):
""""""
pass
class SplashScreenWindow(Window):
""""""
def __init__(self):
""""""
pass
class wxSplashScreenWindow(wxWindow):
""""""
def GetBitmap(self):
""""""
pass
@@ -252,14 +254,14 @@ class wxSplashScreenWindow(wxWindow):
""""""
pass
class StatusBar(Window):
""""""
def __init__(self):
""""""
pass
class wxStatusBar(wxWindow):
""""""
def Create(self):
""""""
pass
@@ -308,8 +310,4 @@ class wxStatusBar(wxWindow):
""""""
pass
def __init__(self):
""""""
pass

File diff suppressed because it is too large Load Diff

View File

@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from wxWindow import wxWindow
from Base import Object
import Parameters as wx
from Window import Window
class wxPopupWindow(wxWindow):
class PopupWindow(Window):
""""""
def Create(self):
@@ -33,7 +33,7 @@ class wxPopupWindow(wxWindow):
pass
class wxPopupTransientWindow(wxPopupWindow):
class PopupTransientWindow(PopupWindow):
""""""
def Dismiss(self):
@@ -53,7 +53,7 @@ class wxPopupTransientWindow(wxPopupWindow):
pass
class wxTipProvider:
class TipProvider:
""""""
def GetCurrentTip(self):
@@ -77,7 +77,7 @@ class wxTipProvider:
pass
class wxPyTipProvider(wxTipProvider):
class PyTipProvider(TipProvider):
""""""
def __init__(self):
@@ -89,7 +89,7 @@ class wxPyTipProvider(wxTipProvider):
pass
class wxTipWindow(wxPopupTransientWindow):
class TipWindow(PopupTransientWindow):
""""""
def Close(self):
@@ -105,7 +105,7 @@ class wxTipWindow(wxPopupTransientWindow):
pass
class wxToolTip(wxObject):
class ToolTip(Object):
""""""
def GetTip(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxImageHandler(wxObject):
class ImageHandler(Object):
""""""
def CanRead(self):
@@ -60,7 +60,7 @@ class wxImageHandler(wxObject):
pass
class wxBMPHandler(wxImageHandler):
class BMPHandler(ImageHandler):
""""""
def __init__(self):
@@ -68,7 +68,7 @@ class wxBMPHandler(wxImageHandler):
pass
class wxGIFHandler(wxImageHandler):
class GIFHandler(ImageHandler):
""""""
def __init__(self):
@@ -76,7 +76,7 @@ class wxGIFHandler(wxImageHandler):
pass
class wxICOHandler(wxBMPHandler):
class ICOHandler(BMPHandler):
""""""
def __init__(self):
@@ -84,7 +84,7 @@ class wxICOHandler(wxBMPHandler):
pass
class wxCURHandler(wxICOHandler):
class CURHandler(ICOHandler):
""""""
def __init__(self):
@@ -92,7 +92,7 @@ class wxCURHandler(wxICOHandler):
pass
class wxANIHandler(wxCURHandler):
class ANIHandler(CURHandler):
""""""
def __init__(self):
@@ -100,7 +100,7 @@ class wxANIHandler(wxCURHandler):
pass
class wxJPEGHandler(wxImageHandler):
class JPEGHandler(ImageHandler):
""""""
def __init__(self):
@@ -108,7 +108,7 @@ class wxJPEGHandler(wxImageHandler):
pass
class wxPCXHandler(wxImageHandler):
class PCXHandler(ImageHandler):
""""""
def __init__(self):
@@ -116,7 +116,7 @@ class wxPCXHandler(wxImageHandler):
pass
class wxPNGHandler(wxImageHandler):
class PNGHandler(ImageHandler):
""""""
def __init__(self):
@@ -124,7 +124,7 @@ class wxPNGHandler(wxImageHandler):
pass
class wxPNMHandler(wxImageHandler):
class PNMHandler(ImageHandler):
""""""
def __init__(self):
@@ -132,7 +132,7 @@ class wxPNMHandler(wxImageHandler):
pass
class wxTIFFHandler(wxImageHandler):
class TIFFHandler(ImageHandler):
""""""
def __init__(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxJoystick(wxObject):
class Joystick(Object):
""""""
def GetButtonState(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxIndividualLayoutConstraint(wxObject):
class IndividualLayoutConstraint(Object):
""""""
def Above(self):
@@ -64,7 +64,7 @@ class wxIndividualLayoutConstraint(wxObject):
pass
class wxLayoutConstraints(wxObject):
class LayoutConstraints(Object):
""""""
def __getattr__(self):

View File

@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
import Parameters as wx
class wxLog:
class Log:
""""""
def Flush(self):
@@ -39,7 +39,7 @@ class wxLog:
pass
class wxPyLog(wxLog):
class PyLog(Log):
""""""
def Destroy(self):
@@ -55,7 +55,7 @@ class wxPyLog(wxLog):
pass
class wxLogChain(wxLog):
class LogChain(Log):
""""""
def GetOldLog(self):
@@ -79,7 +79,7 @@ class wxLogChain(wxLog):
pass
class wxLogGui(wxLog):
class LogGui(Log):
""""""
def __init__(self):
@@ -87,7 +87,7 @@ class wxLogGui(wxLog):
pass
class wxLogNull:
class LogNull:
""""""
def __del__(self):
@@ -99,7 +99,7 @@ class wxLogNull:
pass
class wxLogStderr(wxLog):
class LogStderr(Log):
""""""
def __init__(self):
@@ -107,7 +107,7 @@ class wxLogStderr(wxLog):
pass
class wxLogTextCtrl(wxLog):
class LogTextCtrl(Log):
""""""
def __init__(self):
@@ -115,7 +115,7 @@ class wxLogTextCtrl(wxLog):
pass
class wxLogWindow(wxLog):
class LogWindow(Log):
""""""
def GetFrame(self):

View File

@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject, wxEvtHandler
import wxParameters as wx
from wxWindow import wxWindow
from Base import Object, EvtHandler
import Parameters as wx
from Window import Window
class wxFileHistory(wxObject):
class FileHistory(Object):
""""""
def AddFileToHistory(self):
@@ -77,7 +77,7 @@ class wxFileHistory(wxObject):
pass
class wxMenu(wxEvtHandler):
class Menu(EvtHandler):
""""""
def Append(self):
@@ -281,7 +281,7 @@ class wxMenu(wxEvtHandler):
pass
class wxMenuBar(wxWindow):
class MenuBar(Window):
""""""
def Append(self):
@@ -372,7 +372,7 @@ class wxMenuBar(wxWindow):
""""""
pass
class wxMenuItem(wxObject):
class MenuItem(Object):
""""""
def Check(self):

View File

@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
import Parameters as wx
class wxFileType:
class FileType:
""""""
def GetAllCommands(self):
@@ -75,7 +75,7 @@ class wxFileType:
pass
class wxFileTypeInfo:
class FileTypeInfo:
""""""
def GetDescription(self):
@@ -131,7 +131,7 @@ class wxFileTypeInfo:
pass
class wxMimeTypesManager:
class MimeTypesManager:
""""""
def AddFallback(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxArtProvider(wxObject):
class ArtProvider(Object):
""""""
def __init__(self):
@@ -28,7 +28,7 @@ class wxArtProvider(wxObject):
pass
class wxBusyCursor:
class BusyCursor:
""""""
def __del__(self):
@@ -40,7 +40,7 @@ class wxBusyCursor:
pass
class wxBusyInfo(wxObject):
class BusyInfo(Object):
""""""
def __del__(self):
@@ -52,7 +52,7 @@ class wxBusyInfo(wxObject):
pass
class wxCaret:
class Caret:
""""""
def GetPosition(self):
@@ -116,7 +116,7 @@ class wxCaret:
pass
class wxEncodingConverter(wxObject):
class EncodingConverter(Object):
""""""
def Convert(self):
@@ -136,7 +136,7 @@ class wxEncodingConverter(wxObject):
pass
class wxDirItemData(wxObject):
class DirItemData(Object):
""""""
def SetNewDirName(self):
@@ -156,7 +156,7 @@ class wxDirItemData(wxObject):
pass
class wxEffects(wxObject):
class Effects(Object):
""""""
def DrawSunkenEdge(self):
@@ -216,7 +216,7 @@ class wxEffects(wxObject):
pass
class wxFontEnumerator:
class FontEnumerator:
""""""
def EnumerateEncodings(self):
@@ -248,7 +248,7 @@ class wxFontEnumerator:
pass
class wxFontMapper:
class FontMapper:
""""""
def CharsetToEncoding(self):
@@ -288,7 +288,7 @@ class wxFontMapper:
pass
class wxLanguageInfo:
class LanguageInfo:
""""""
def __getattr__(self):
@@ -304,7 +304,7 @@ class wxLanguageInfo:
pass
class wxLocale:
class Locale:
""""""
def AddCatalog(self):
@@ -356,7 +356,7 @@ class wxLocale:
pass
class wxNativeFontInfo:
class NativeFontInfo:
""""""
def FromString(self):
@@ -444,7 +444,7 @@ class wxNativeFontInfo:
pass
class wxPyTimer(wxObject):
class PyTimer(Object):
""""""
def GetInterval(self):
@@ -480,7 +480,7 @@ class wxPyTimer(wxObject):
pass
class wxStopWatch:
class StopWatch:
""""""
def Pause(self):
@@ -508,7 +508,7 @@ class wxStopWatch:
pass
class wxSystemSettings:
class SystemSettings:
""""""
def __init__(self):
@@ -516,15 +516,15 @@ class wxSystemSettings:
pass
class wxTimer(wxPyTimer):
class Timer(PyTimer):
""""""
def __init__(self, evtHandler=None, id=-1):
"""Create a wxTimer instance."""
"""Create a Timer instance."""
pass
class wxWave(wxObject):
class Wave(Object):
""""""
def IsOk(self):
@@ -544,7 +544,7 @@ class wxWave(wxObject):
pass
class wxWindowDisabler:
class WindowDisabler:
""""""
def __del__(self):

View File

@@ -12,22 +12,22 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
from wxWindow import wxWindow
import Parameters as wx
from Window import Window
class wxPanel(wxWindow):
class Panel(Window):
""""""
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxTAB_TRAVERSAL,
name=wx.wxPyPanelNameStr):
def __init__(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.TAB_TRAVERSAL,
name=wx.PyPanelNameStr):
""""""
pass
def Create(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxTAB_TRAVERSAL,
name=wx.wxPyPanelNameStr):
def Create(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.TAB_TRAVERSAL,
name=wx.PyPanelNameStr):
""""""
pass
@@ -36,7 +36,7 @@ class wxPanel(wxWindow):
pass
class wxPyPanel(wxPanel):
class PyPanel(Panel):
""""""
def __init__(self):
@@ -120,18 +120,18 @@ class wxPyPanel(wxPanel):
pass
class wxScrolledWindow(wxPanel):
class ScrolledWindow(Panel):
""""""
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxHSCROLL|wx.wxVSCROLL,
name=wx.wxPyPanelNameStr):
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.HSCROLL|wx.VSCROLL,
name=wx.PyPanelNameStr):
""""""
pass
def Create(self, parent, id=-1, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=wx.wxHSCROLL|wx.wxVSCROLL,
name=wx.wxPyPanelNameStr):
def Create(self, parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.HSCROLL|wx.VSCROLL,
name=wx.PyPanelNameStr):
""""""
pass

View File

@@ -0,0 +1,82 @@
"""Decorator classes for documentation and shell scripting.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
# These are not the real wxPython classes. These are Python versions
# for documentation purposes. They are also used to apply docstrings
# to the real wxPython classes, which are SWIG-generated wrappers for
# C-language classes.
class Param:
"""Used by this module to represent default wxPython parameter values,
including parameter representations like style=wx.HSCROLL|wx.VSCROLL."""
def __init__(self, value=None):
if value is None:
value = self.__class__.__name__
self.value = value
def __repr__(self):
return self.value
def __or__(self, other):
value = '%s|%s' % (self, other)
return self.__class__(value)
class NULL(Param): pass
NULL = NULL()
class BOTH(Param): pass
BOTH = BOTH()
class DEFAULT_FRAME_STYLE(Param): pass
DEFAULT_FRAME_STYLE = DEFAULT_FRAME_STYLE()
class DefaultPosition(Param): pass
DefaultPosition = DefaultPosition()
class DefaultSize(Param): pass
DefaultSize = DefaultSize()
class DefaultValidator(Param): pass
DefaultValidator = DefaultValidator()
class EVT_NULL(Param): pass
EVT_NULL = EVT_NULL()
class HSCROLL(Param): pass
HSCROLL = HSCROLL()
class NullColour(Param): pass
NullColour = NullColour()
class PyFrameNameStr(Param): pass
PyFrameNameStr = PyFrameNameStr()
class PyNOTEBOOK_NAME(Param): pass
PyNOTEBOOK_NAME = PyNOTEBOOK_NAME()
class PyPanelNameStr(Param): pass
PyPanelNameStr = PyPanelNameStr()
class PySTCNameStr(Param): pass
PySTCNameStr = PySTCNameStr()
class SIZE_AUTO(Param): pass
SIZE_AUTO = SIZE_AUTO()
class SIZE_USE_EXISTING(Param): pass
SIZE_USE_EXISTING = SIZE_USE_EXISTING()
class TAB_TRAVERSAL(Param): pass
TAB_TRAVERSAL = TAB_TRAVERSAL()
class VSCROLL(Param): pass
VSCROLL = VSCROLL()

View File

@@ -12,13 +12,13 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
from wxDialogs import wxDialog
from wxFrames import wxFrame
import wxParameters as wx
from Base import Object
from Dialogs import Dialog
from Frames import Frame
import Parameters as wx
class wxPageSetupDialog(wxDialog):
class PageSetupDialog(Dialog):
""""""
def GetPageSetupData(self):
@@ -34,7 +34,7 @@ class wxPageSetupDialog(wxDialog):
pass
class wxPageSetupDialogData(wxObject):
class PageSetupDialogData(Object):
""""""
def EnableHelp(self):
@@ -162,7 +162,7 @@ class wxPageSetupDialogData(wxObject):
pass
class wxPrintDialog(wxDialog):
class PrintDialog(Dialog):
""""""
def GetPrintDC(self):
@@ -182,7 +182,7 @@ class wxPrintDialog(wxDialog):
pass
class wxPrintDialogData(wxObject):
class PrintDialogData(Object):
""""""
def EnableHelp(self):
@@ -286,7 +286,7 @@ class wxPrintDialogData(wxObject):
pass
class wxPreviewFrame(wxFrame):
class PreviewFrame(Frame):
""""""
def Initialize(self):
@@ -298,7 +298,7 @@ class wxPreviewFrame(wxFrame):
pass
class wxPrintData(wxObject):
class PrintData(Object):
""""""
def GetCollate(self):
@@ -474,7 +474,7 @@ class wxPrintData(wxObject):
pass
class wxPrintPreview(wxObject):
class PrintPreview(Object):
""""""
def GetCanvas(self):
@@ -546,7 +546,7 @@ class wxPrintPreview(wxObject):
pass
class wxPrinter(wxObject):
class Printer(Object):
""""""
def CreateAbortWindow(self):
@@ -582,7 +582,7 @@ class wxPrinter(wxObject):
pass
class wxPrintout(wxObject):
class Printout(Object):
""""""
def Destroy(self):

View File

@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxEvtHandler
from Base import EvtHandler
class wxProcess(wxEvtHandler):
class Process(EvtHandler):
""""""
def CloseOutput(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
import wxParameters as wx
from wxWindow import wxWindow
import Parameters as wx
from Window import Window
class wxSashWindow(wxWindow):
class SashWindow(Window):
""""""
def Create(self):
@@ -96,7 +96,7 @@ class wxSashWindow(wxWindow):
pass
class wxSashLayoutWindow(wxSashWindow):
class SashLayoutWindow(SashWindow):
""""""
def Create(self):
@@ -128,7 +128,7 @@ class wxSashLayoutWindow(wxSashWindow):
pass
class wxSplitterWindow(wxWindow):
class SplitterWindow(Window):
""""""
def Create(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
import wxParameters as wx
from Base import Object
import Parameters as wx
class wxSizer(wxObject):
class Sizer(Object):
""""""
def Add(self):
@@ -220,7 +220,7 @@ class wxSizer(wxObject):
pass
class wxSizerItem(wxObject):
class SizerItem(Object):
""""""
def CalcMin(self):
@@ -332,7 +332,7 @@ class wxSizerItem(wxObject):
pass
class wxBoxSizer(wxSizer):
class BoxSizer(Sizer):
""""""
def CalcMin(self):
@@ -356,7 +356,7 @@ class wxBoxSizer(wxSizer):
pass
class wxGridSizer(wxSizer):
class GridSizer(Sizer):
""""""
def CalcMin(self):
@@ -404,7 +404,7 @@ class wxGridSizer(wxSizer):
pass
class wxFlexGridSizer(wxGridSizer):
class FlexGridSizer(GridSizer):
""""""
def AddGrowableCol(self):
@@ -436,7 +436,7 @@ class wxFlexGridSizer(wxGridSizer):
pass
class wxNotebookSizer(wxSizer):
class NotebookSizer(Sizer):
""""""
def CalcMin(self):
@@ -456,7 +456,7 @@ class wxNotebookSizer(wxSizer):
pass
class wxPySizer(wxSizer):
class PySizer(Sizer):
""""""
def __init__(self):
@@ -468,7 +468,7 @@ class wxPySizer(wxSizer):
pass
class wxStaticBoxSizer(wxBoxSizer):
class StaticBoxSizer(BoxSizer):
""""""
def CalcMin(self):

View File

@@ -12,7 +12,7 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
class wxInputStream:
class InputStream:
""""""
def CanRead(self):
@@ -84,7 +84,7 @@ class wxInputStream:
pass
class wxOutputStream:
class OutputStream:
""""""
def __init__(self):

View File

@@ -12,7 +12,7 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
class wxMutexGuiLocker:
class MutexGuiLocker:
""""""
def __del__(self):

View File

@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
from wxControls import wxControl
import wxParameters as wx
from Base import Object
from Controls import Control
import Parameters as wx
class wxToolBarBase(wxControl):
class ToolBarBase(Control):
""""""
def AddCheckLabelTool(self):
@@ -225,7 +225,7 @@ class wxToolBarBase(wxControl):
pass
class wxToolBar(wxToolBarBase):
class ToolBar(ToolBarBase):
""""""
def Create(self):
@@ -241,7 +241,7 @@ class wxToolBar(wxToolBarBase):
pass
class wxToolBarSimple(wxToolBarBase):
class ToolBarSimple(ToolBarBase):
""""""
def Create(self):
@@ -257,7 +257,7 @@ class wxToolBarSimple(wxToolBarBase):
pass
class wxToolBarToolBase(wxObject):
class ToolBarToolBase(Object):
""""""
def Attach(self):

View File

@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxObject
from wxControls import wxControl
import wxParameters as wx
from Base import Object
from Controls import Control
import Parameters as wx
class wxTreeCtrl(wxControl):
class TreeCtrl(Control):
""""""
def AddRoot(self):
@@ -309,7 +309,7 @@ class wxTreeCtrl(wxControl):
pass
class wxTreeItemAttr:
class TreeItemAttr:
""""""
def GetBackgroundColour(self):
@@ -353,7 +353,7 @@ class wxTreeItemAttr:
pass
class wxTreeItemData(wxObject):
class TreeItemData(Object):
""""""
def GetData(self):
@@ -377,7 +377,7 @@ class wxTreeItemData(wxObject):
pass
class wxTreeItemId:
class TreeItemId:
""""""
def IsOk(self):

View File

@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxEvtHandler
import wxParameters as wx
from Base import EvtHandler
import Parameters as wx
class wxValidator(wxEvtHandler):
class Validator(EvtHandler):
""""""
def __init__(self):
@@ -36,7 +36,7 @@ class wxValidator(wxEvtHandler):
pass
class wxPyValidator(wxValidator):
class PyValidator(Validator):
""""""
def __init__(self):

View File

@@ -12,15 +12,15 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxBase import wxEvtHandler
import wxParameters as wx
from Base import EvtHandler
import Parameters as wx
class wxWindow(wxEvtHandler):
class Window(EvtHandler):
""""""
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0, name=wx.wxPyPanelNameStr):
def __init__(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0, name=wx.PyPanelNameStr):
""""""
pass
@@ -36,27 +36,27 @@ class wxWindow(wxEvtHandler):
""""""
pass
def Center(self, direction=wx.wxBOTH):
def Center(self, direction=wx.BOTH):
""""""
pass
def CenterOnParent(self, direction=wx.wxBOTH):
def CenterOnParent(self, direction=wx.BOTH):
""""""
pass
def CenterOnScreen(self, direction=wx.wxBOTH):
def CenterOnScreen(self, direction=wx.BOTH):
""""""
pass
def Centre(self, direction=wx.wxBOTH):
def Centre(self, direction=wx.BOTH):
""""""
pass
def CentreOnParent(self, direction=wx.wxBOTH):
def CentreOnParent(self, direction=wx.BOTH):
""""""
pass
def CentreOnScreen(self, direction=wx.wxBOTH):
def CentreOnScreen(self, direction=wx.BOTH):
""""""
pass
@@ -92,8 +92,8 @@ class wxWindow(wxEvtHandler):
""""""
pass
def Create(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0, name=wx.wxPyPanelNameStr):
def Create(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0, name=wx.PyPanelNameStr):
""""""
pass
@@ -402,7 +402,7 @@ class wxWindow(wxEvtHandler):
pass
def LoadFromResource(self, parent, resourceName, resourceTable=wx.NULL):
"""Only if wxUSE_WX_RESOURCES."""
"""Only if USE_WX_RESOURCES."""
pass
def Lower(self):
@@ -413,11 +413,11 @@ class wxWindow(wxEvtHandler):
""""""
pass
def Move(self, point, flags=wx.wxSIZE_USE_EXISTING):
def Move(self, point, flags=wx.SIZE_USE_EXISTING):
""""""
pass
def MoveXY(self, x, y, flags=wx.wxSIZE_USE_EXISTING):
def MoveXY(self, x, y, flags=wx.SIZE_USE_EXISTING):
""""""
pass
@@ -589,11 +589,11 @@ class wxWindow(wxEvtHandler):
""""""
pass
def SetPosition(self, pos, flags=wx.wxSIZE_USE_EXISTING):
def SetPosition(self, pos, flags=wx.SIZE_USE_EXISTING):
""""""
pass
def SetRect(self, rect, sizeFlags=wx.wxSIZE_AUTO):
def SetRect(self, rect, sizeFlags=wx.SIZE_AUTO):
""""""
pass
@@ -605,7 +605,7 @@ class wxWindow(wxEvtHandler):
""""""
pass
def SetSize(self, x, y, width, height, sizeFlags=wx.wxSIZE_AUTO):
def SetSize(self, x, y, width, height, sizeFlags=wx.SIZE_AUTO):
""""""
pass
@@ -698,7 +698,7 @@ class wxWindow(wxEvtHandler):
pass
class wxPyWindow(wxWindow):
class PyWindow(Window):
""""""
def __init__(self):
@@ -782,7 +782,7 @@ class wxPyWindow(wxWindow):
pass
class wxTopLevelWindow(wxWindow):
class TopLevelWindow(Window):
""""""
def Create(self):

View File

@@ -0,0 +1,17 @@
"""Decorator utility for documentation and shell scripting.
When you import stc from this module, all of the classes get decorated
with docstrings from our decoration class definitions.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import stc
import stc_
import decorator
decorator.decorate(real=stc, decoration=stc_)

View File

@@ -0,0 +1,17 @@
"""Decorator utility for documentation and shell scripting.
When you import wx from this module, all of the classes get decorated
with docstrings from our decoration class definitions.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
from wxPython import wx
import wx_
import decorator
decorator.decorate(real=wx, decoration=wx_)

View File

@@ -1,41 +1,30 @@
"""Decorator utility for documentation and shell scripting.
When you import wx and stc from this module, all of their classes get
decorated with docstrings from our decorator class definitions.
"""
"""Decorator utility for documentation and shell scripting."""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
# The classes in these modules will get decorated.
#-------------------------------------------------
from wxPython import wx
from wxPython import stc
# Code for decorating existing classes.
# -------------------------------------
import inspect
def decorate(item, wxdict):
"""Use item to decorate the matching class in wxdict."""
def decorate(real, decoration):
"""Decorate real module with docstrings from decoration module."""
realdict = real.__dict__
for item in decoration.__dict__.itervalues():
if inspect.isclass(item):
decorateClass(item, wxdict)
decorateClass(item, realdict)
elif inspect.isfunction(item):
decorateFunction(item, wxdict)
decorateFunction(item, realdict)
def decorateClass(item, wxdict):
def decorateClass(item, realdict):
classname = item.__name__
if classname in wxdict.keys():
wxclass = wxdict[classname]
## XXX Not sure if we'll need this or not, but it's here just in case.
## pointername = classname + 'Ptr'
## if pointer in wxdict:
## wxclassPtr = wxdict[pointername]
if not classname.startswith('wx'):
classname = 'wx' + classname
try:
wxclass = realdict[classname]
except:
print classname
else:
if item.__doc__:
wxclass.__doc__ = item.__doc__
# Get attributes from only the item's local dictionary!
@@ -59,10 +48,10 @@ def decorateClass(item, wxdict):
except:
pass
def decorateFunction(item, wxdict):
def decorateFunction(item, realdict):
funcname = item.__name__
if funcname in wxdict.keys():
func = wxdict[funcname]
if funcname in realdict.keys():
func = realdict[funcname]
doc = getdoc(item, drop=False)
try:
# Built-in functions have a read-only docstring. :-(
@@ -95,34 +84,3 @@ def getdoc(attr, drop=False):
if tip != firstline:
doc = '%s\n\n%s' % (tip, doc)
return doc
# For each decorator class, apply docstrings to the matching class.
#---------------------------------------------------------------------
# The order in which docstrings are applied could be important,
# depending on how we handle multiple inheritance. We may want to
# work from parent to child. We may also have to be clever about how
# we apply the docstrings in the case where our class definitions are
# not an exact match with the wxPython class definitions. For
# example, if we define a method in a child class that wxPython does
# not, our docstring for the child method may end up on the parent or
# grandparent method. If the parent or grandparent is not just an
# abstract class, or if the method is shared by more than one
# subclass, none of which override it, the docstring would be
# misleading.
import wxDecor
[decorate(item, wx.__dict__) for item in wxDecor.__dict__.values()]
import stcDecor
[decorate(item, stc.__dict__) for item in stcDecor.__dict__.values()]
# Test the timing of the list comprehension approach vs. the for loop:
##for item in wxDecor.__dict__.itervalues():
## decorate(item, wx.__dict__)
##
##for item in stcDecor.__dict__.itervalues():
## decorate(item, stc.__dict__)

View File

@@ -0,0 +1,71 @@
import inspect
from wxPython import wx
def scan():
d = wx.__dict__
newd = {}
keys = d.keys()
keys.sort()
for key in keys:
if key.endswith('Ptr'):
# Skip
pass
elif key+'Ptr' in keys:
# Rename
newd[key] = d[key+'Ptr']
else:
# Include as is
newd[key] = d[key]
d = newd
keys = d.keys()
keys.sort()
for key in keys:
value = d[key]
if inspect.isclass(value):
# genClass(value)
pass
elif callable(value):
genFunction(value)
pass
else:
# print type(value), value
pass
def genClass(cls):
sp4 = ' ' * 4
name = cls.__name__
if name.endswith('Ptr'):
name = name[:-3]
## if name != 'wxNotebook':
## return
parent = ''
if cls.__bases__:
parent = cls.__bases__[0].__name__
if parent.endswith('Ptr'):
parent = parent[:-3]
parent = '(%s)' % parent
items = cls.__dict__.keys()
items.sort()
print
print 'class %s%s:' % (name, parent)
print sp4 + '""""""'
print
for item in items:
attr = cls.__dict__[item]
if inspect.isfunction(attr):
print sp4 + 'def ' + item + '(self):'
print sp4 + sp4 + '""""""'
print sp4 + sp4 + 'pass'
print
def genFunction(func):
sp4 = ' ' * 4
name = func.__name__
print 'def %s():' % name
print sp4 + '""""""'
print sp4 + 'pass'
print

View File

@@ -12,16 +12,16 @@ __revision__ = "$Revision$"[11:-2]
# C-language classes.
from wxControls import wxControl
import wxParameters as wx
from Controls import Control
import Parameters as wx
class wxStyledTextCtrl(wxControl):
"""wxStyledTextCtrl class."""
class StyledTextCtrl(Control):
"""StyledTextCtrl class."""
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
size=wx.wxDefaultSize, style=0, name=wx.wxPySTCNameStr):
"""Create a wxStyledTextCtrl instance."""
def __init__(self, parent, id, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0, name=wx.PySTCNameStr):
"""Create a StyledTextCtrl instance."""
pass
def AddRefDocument(self, docPointer):
@@ -216,7 +216,7 @@ class wxStyledTextCtrl(wxControl):
pass
def CmdKeyExecute(self, cmd):
"""Perform one of the operations defined by the wxSTC_CMD_*
"""Perform one of the operations defined by the STC_CMD_*
constants."""
pass
@@ -721,7 +721,7 @@ class wxStyledTextCtrl(wxControl):
pass
def MarkerDefine(self, markerNumber, markerSymbol,
foreground=wx.wxNullColour, background=wx.wxNullColour):
foreground=wx.NullColour, background=wx.NullColour):
"""Set the symbol used for a particular marker number, and
optionally the fore and background colours."""
pass
@@ -1306,7 +1306,7 @@ class wxStyledTextCtrl(wxControl):
def StyleSetFont(self, styleNum, font):
"""Set style size, face, bold, italic, and underline
attributes from a wxFont's attributes."""
attributes from a Font's attributes."""
pass
def StyleSetFontAttr(self, styleNum, size, faceName,

View File

@@ -0,0 +1,57 @@
"""Decorator classes for documentation and shell scripting.
"""
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
# These are not the real wxPython classes. These are Python versions
# for documentation purposes. They are also used to apply docstrings
# to the real wxPython classes, which are SWIG-generated wrappers for
# C-language classes.
_topics = {
'Accelerators': None,
'App': None,
'Base': None,
'ClipDragDrop': None,
'Config': None,
'Controls': None,
'DataStructures': None,
'DateTime': None,
'Dialogs': None,
'Drawing': None,
'Errors': None,
'EventFunctions': None,
'Events': None,
'FileSystem': None,
'Frames': None,
'Functions': None,
'Help': None,
'ImageHandlers': None,
'Joystick': None,
'LayoutConstraints': None,
'Logging': None,
'Menus': None,
'MimeTypes': None,
'Misc': None,
'Panel': None,
'Printing': None,
'Process': None,
'SashSplitter': None,
'Sizers': None,
'Streams': None,
'Threading': None,
'ToolBar': None,
'Tree': None,
'Validators': None,
'Window': None,
}
for topic in _topics:
_topics[topic] = __import__(topic, globals())
exec 'from %s import *' % topic
del topic # Cleanup the namespace.