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:
@@ -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\*.py"; DestDir: "{app}\wxPython\lib\PyCrust"; Components: core
|
||||||
Source: "wxPython\lib\PyCrust\*.txt"; 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\*.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
|
Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourchooser"; Components: core
|
||||||
|
|
||||||
%(LOCALE)s
|
%(LOCALE)s
|
||||||
|
@@ -1206,7 +1206,7 @@ if __name__ == "__main__":
|
|||||||
PKGDIR+'.lib.editor',
|
PKGDIR+'.lib.editor',
|
||||||
PKGDIR+'.lib.mixins',
|
PKGDIR+'.lib.mixins',
|
||||||
PKGDIR+'.lib.PyCrust',
|
PKGDIR+'.lib.PyCrust',
|
||||||
PKGDIR+'.lib.PyCrust.decor',
|
PKGDIR+'.lib.PyCrust.wxd',
|
||||||
PKGDIR+'.tools',
|
PKGDIR+'.tools',
|
||||||
PKGDIR+'.tools.XRCed',
|
PKGDIR+'.tools.XRCed',
|
||||||
],
|
],
|
||||||
|
@@ -29,7 +29,7 @@ Introduced new tabbed interface:
|
|||||||
* wxSTC Docs
|
* wxSTC Docs
|
||||||
|
|
||||||
Filling.tree now expands tuples as well as lists. (It should have done
|
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:
|
Added this True/False test to all modules:
|
||||||
|
|
||||||
@@ -39,6 +39,7 @@ Added this True/False test to all modules:
|
|||||||
True = 1==1
|
True = 1==1
|
||||||
False = 1==0
|
False = 1==0
|
||||||
|
|
||||||
|
Added wxd directory with decoration classes.
|
||||||
|
|
||||||
|
|
||||||
0.8.2 (1/5/2003 to 2/26/2003)
|
0.8.2 (1/5/2003 to 2/26/2003)
|
||||||
|
@@ -41,19 +41,29 @@ class App(wx.wxApp):
|
|||||||
sys.application = self
|
sys.application = self
|
||||||
return 1
|
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():
|
def main():
|
||||||
locals = __main__.__dict__
|
import __main__
|
||||||
|
md = __main__.__dict__
|
||||||
keepers = original
|
keepers = original
|
||||||
keepers.append('App')
|
keepers.append('App')
|
||||||
for key in locals.keys():
|
for key in md.keys():
|
||||||
if key not in keepers:
|
if key not in keepers:
|
||||||
del locals[key]
|
del md[key]
|
||||||
application = App(0)
|
application = App(0)
|
||||||
if locals.has_key('App') and locals['App'] is App:
|
if md.has_key('App') and md['App'] is App:
|
||||||
del locals['App']
|
del md['App']
|
||||||
if locals.has_key('__main__') and locals['__main__'] is __main__:
|
if md.has_key('__main__') and md['__main__'] is __main__:
|
||||||
del locals['__main__']
|
del md['__main__']
|
||||||
application.MainLoop()
|
application.MainLoop()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@@ -6,7 +6,7 @@ __cvsid__ = "$Id$"
|
|||||||
__revision__ = "$Revision$"[11:-2]
|
__revision__ = "$Revision$"[11:-2]
|
||||||
|
|
||||||
# We use this object to get more introspection when run standalone.
|
# We use this object to get more introspection when run standalone.
|
||||||
application = None
|
app = None
|
||||||
|
|
||||||
import filling
|
import filling
|
||||||
|
|
||||||
@@ -30,16 +30,15 @@ except NameError:
|
|||||||
class App(filling.App):
|
class App(filling.App):
|
||||||
def OnInit(self):
|
def OnInit(self):
|
||||||
filling.App.OnInit(self)
|
filling.App.OnInit(self)
|
||||||
root = self.fillingFrame.filling.fillingTree.root
|
self.root = self.fillingFrame.filling.tree.root
|
||||||
self.fillingFrame.filling.fillingTree.Expand(root)
|
return True
|
||||||
return 1
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Create and run the application."""
|
"""Create and run the application."""
|
||||||
global application
|
global app
|
||||||
application = App(0)
|
app = App(0)
|
||||||
application.MainLoop()
|
app.fillingFrame.filling.tree.Expand(app.root)
|
||||||
|
app.MainLoop()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@@ -42,19 +42,29 @@ class App(wx.wxApp):
|
|||||||
sys.application = self
|
sys.application = self
|
||||||
return 1
|
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():
|
def main():
|
||||||
locals = __main__.__dict__
|
import __main__
|
||||||
|
md = __main__.__dict__
|
||||||
keepers = original
|
keepers = original
|
||||||
keepers.append('App')
|
keepers.append('App')
|
||||||
for key in locals.keys():
|
for key in md.keys():
|
||||||
if key not in keepers:
|
if key not in keepers:
|
||||||
del locals[key]
|
del md[key]
|
||||||
application = App(0)
|
application = App(0)
|
||||||
if locals.has_key('App') and locals['App'] is App:
|
if md.has_key('App') and md['App'] is App:
|
||||||
del locals['App']
|
del md['App']
|
||||||
if locals.has_key('__main__') and locals['__main__'] is __main__:
|
if md.has_key('__main__') and md['__main__'] is __main__:
|
||||||
del locals['__main__']
|
del md['__main__']
|
||||||
application.MainLoop()
|
application.MainLoop()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
@@ -50,20 +50,20 @@ class Crust(wx.wxSplitterWindow):
|
|||||||
self.notebook.AddPage(self.sessionlisting, 'Session')
|
self.notebook.AddPage(self.sessionlisting, 'Session')
|
||||||
self.dispatcherlisting = DispatcherListing(parent=self.notebook)
|
self.dispatcherlisting = DispatcherListing(parent=self.notebook)
|
||||||
self.notebook.AddPage(self.dispatcherlisting, 'Dispatcher')
|
self.notebook.AddPage(self.dispatcherlisting, 'Dispatcher')
|
||||||
from decor import wxDecor
|
from wxd import wx_
|
||||||
self.wxdocs = Filling(parent=self.notebook,
|
self.wxdocs = Filling(parent=self.notebook,
|
||||||
rootObject=wxDecor,
|
rootObject=wx_,
|
||||||
rootLabel='wx',
|
rootLabel='wx',
|
||||||
rootIsNamespace=False,
|
rootIsNamespace=False,
|
||||||
static=True)
|
static=True)
|
||||||
self.notebook.AddPage(self.wxdocs, 'wxPython Docs')
|
self.notebook.AddPage(self.wxdocs, 'wxPython Docs')
|
||||||
from decor import stcDecor
|
from wxd import stc_
|
||||||
self.stcdocs = Filling(parent=self.notebook,
|
self.stcdocs = Filling(parent=self.notebook,
|
||||||
rootObject=stcDecor.wxStyledTextCtrl,
|
rootObject=stc_.StyledTextCtrl,
|
||||||
rootLabel='wxStyledTextCtrl',
|
rootLabel='StyledTextCtrl',
|
||||||
rootIsNamespace=False,
|
rootIsNamespace=False,
|
||||||
static=True)
|
static=True)
|
||||||
self.notebook.AddPage(self.stcdocs, 'wxSTC Docs')
|
self.notebook.AddPage(self.stcdocs, 'StyledTextCtrl Docs')
|
||||||
self.SplitHorizontally(self.shell, self.notebook, 300)
|
self.SplitHorizontally(self.shell, self.notebook, 300)
|
||||||
self.SetMinimumPaneSize(1)
|
self.SetMinimumPaneSize(1)
|
||||||
|
|
||||||
|
@@ -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
@@ -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()
|
|
||||||
|
|
@@ -22,13 +22,18 @@ from version import VERSION
|
|||||||
import dispatcher
|
import dispatcher
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import decor
|
import wxd.d_wx
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from wxPython import wx
|
from wxPython import wx
|
||||||
|
else:
|
||||||
|
from wxd.d_wx import wx
|
||||||
|
|
||||||
|
try:
|
||||||
|
import wxd.d_stc
|
||||||
|
except ImportError:
|
||||||
from wxPython import stc
|
from wxPython import stc
|
||||||
else:
|
else:
|
||||||
from decor.decorate import wx
|
from wxd.d_stc import stc
|
||||||
from decor.decorate import stc
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
True
|
True
|
||||||
@@ -259,6 +264,7 @@ class Shell(stc.wxStyledTextCtrl):
|
|||||||
# Do this last so the user has complete control over their
|
# Do this last so the user has complete control over their
|
||||||
# environment. They can override anything they want.
|
# environment. They can override anything they want.
|
||||||
self.execStartupScript(self.interp.startupScript)
|
self.execStartupScript(self.interp.startupScript)
|
||||||
|
wx.wxCallAfter(self.ScrollToLine, 0)
|
||||||
|
|
||||||
def fontsizer(self, signal):
|
def fontsizer(self, signal):
|
||||||
"""Receiver for Font* signals."""
|
"""Receiver for Font* signals."""
|
||||||
@@ -315,7 +321,6 @@ class Shell(stc.wxStyledTextCtrl):
|
|||||||
self.write(self.interp.introText)
|
self.write(self.interp.introText)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
wx.wxCallAfter(self.ScrollToLine, 0)
|
|
||||||
|
|
||||||
def setBuiltinKeywords(self):
|
def setBuiltinKeywords(self):
|
||||||
"""Create pseudo keywords as part of builtins.
|
"""Create pseudo keywords as part of builtins.
|
||||||
|
@@ -7,5 +7,5 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
|||||||
__cvsid__ = "$Id$"
|
__cvsid__ = "$Id$"
|
||||||
__revision__ = "$Revision$"[11:-2]
|
__revision__ = "$Revision$"[11:-2]
|
||||||
|
|
||||||
VERSION = '0.9a'
|
VERSION = '0.9b'
|
||||||
|
|
||||||
|
@@ -12,13 +12,21 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxAcceleratorEntry:
|
class AcceleratorEntry:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
""""""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def __del__(self):
|
||||||
|
""""""
|
||||||
|
pass
|
||||||
|
|
||||||
def GetCommand(self):
|
def GetCommand(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -35,24 +43,16 @@ class wxAcceleratorEntry:
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
""""""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def __init__(self):
|
class AcceleratorTable(Object):
|
||||||
""""""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class wxAcceleratorTable(wxObject):
|
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
""""""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def __del__(self):
|
||||||
|
""""""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxEvtHandler
|
from Base import EvtHandler
|
||||||
|
|
||||||
|
|
||||||
class wxPyApp(wxEvtHandler):
|
class PyApp(EvtHandler):
|
||||||
"""Python Application base class.
|
"""Python Application base class.
|
||||||
|
|
||||||
It is used to:
|
It is used to:
|
||||||
@@ -24,13 +24,13 @@ class wxPyApp(wxEvtHandler):
|
|||||||
|
|
||||||
- implement the windowing system message or event loop;
|
- 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
|
- allow default processing of events not handled by other objects
|
||||||
in the application."""
|
in the application."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Create a wxPyApp instance."""
|
"""Create a PyApp instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
@@ -84,7 +84,7 @@ class wxPyApp(wxEvtHandler):
|
|||||||
def GetTopWindow(self):
|
def GetTopWindow(self):
|
||||||
"""Return the top window.
|
"""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
|
this method will find the first top-level window (frame or
|
||||||
dialog) and return that."""
|
dialog) and return that."""
|
||||||
pass
|
pass
|
||||||
@@ -100,7 +100,7 @@ class wxPyApp(wxEvtHandler):
|
|||||||
|
|
||||||
def Initialized(self):
|
def Initialized(self):
|
||||||
"""Return True if the application has been initialized
|
"""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
|
useful for error message routines to determine which method of
|
||||||
output is best for the current state of the program (some
|
output is best for the current state of the program (some
|
||||||
windowing systems may not like dialogs to pop up before the
|
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):
|
def OnAssert(self, file, line, cond, msg):
|
||||||
"""Called when an assert failure occurs, i.e. the condition
|
"""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
|
called in debug mode (when __WXDEBUG__ is defined) as asserts
|
||||||
are not left in the release code at all.
|
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
|
cond is the condition of the failed assert in string form
|
||||||
|
|
||||||
msg is the message specified as argument to wxASSERT_MSG or
|
msg is the message specified as argument to ASSERT_MSG or
|
||||||
wxFAIL_MSG, will be NULL if just wxASSERT or wxFAIL was used"""
|
FAIL_MSG, will be NULL if just ASSERT or FAIL was used"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def OnExit(self):
|
def OnExit(self):
|
||||||
@@ -146,7 +146,7 @@ class wxPyApp(wxEvtHandler):
|
|||||||
def OnInit(self):
|
def OnInit(self):
|
||||||
"""This must be provided by the application, and will usually
|
"""This must be provided by the application, and will usually
|
||||||
create the application's main window, optionally calling
|
create the application's main window, optionally calling
|
||||||
wxApp.SetTopWindow.
|
App.SetTopWindow.
|
||||||
|
|
||||||
Return True to continue processing, False to exit the
|
Return True to continue processing, False to exit the
|
||||||
application."""
|
application."""
|
||||||
@@ -174,8 +174,8 @@ class wxPyApp(wxEvtHandler):
|
|||||||
def SetAssertMode(self, mode):
|
def SetAssertMode(self, mode):
|
||||||
"""Lets you control how C++ assertions are processed.
|
"""Lets you control how C++ assertions are processed.
|
||||||
|
|
||||||
Valid modes are: wxPYAPP_ASSERT_SUPPRESS,
|
Valid modes are: PYAPP_ASSERT_SUPPRESS,
|
||||||
wxPYAPP_ASSERT_EXCEPTION, and wxPYAPP_ASSERT_DIALOG. Using
|
PYAPP_ASSERT_EXCEPTION, and PYAPP_ASSERT_DIALOG. Using
|
||||||
_SUPPRESS will give you behavior like the old final builds and
|
_SUPPRESS will give you behavior like the old final builds and
|
||||||
the assert will be ignored, _EXCEPTION is the new default
|
the assert will be ignored, _EXCEPTION is the new default
|
||||||
described above, and _DIALOG is like the default in 2.3.3.1
|
described above, and _DIALOG is like the default in 2.3.3.1
|
||||||
@@ -208,7 +208,7 @@ class wxPyApp(wxEvtHandler):
|
|||||||
def SetTopWindow(self, window):
|
def SetTopWindow(self, window):
|
||||||
"""Set the 'top' 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
|
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
|
window; it is only a convenience so that (for example) certain
|
||||||
dialogs without parents can use a specific window as the top
|
dialogs without parents can use a specific window as the top
|
||||||
@@ -226,7 +226,7 @@ class wxPyApp(wxEvtHandler):
|
|||||||
mode.
|
mode.
|
||||||
|
|
||||||
Note that this function has to be called in the constructor of
|
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.
|
on.
|
||||||
|
|
||||||
This function currently only has effect under GTK."""
|
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
|
the user to perform actions which are not compatible with the
|
||||||
current task. Disabling menu items or whole menus during
|
current task. Disabling menu items or whole menus during
|
||||||
processing can avoid unwanted reentrance of code: see
|
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
|
Calling Yield() recursively is normally an error and an assert
|
||||||
failure is raised in debug build if such situation is
|
failure is raised in debug build if such situation is
|
||||||
@@ -258,7 +258,7 @@ class wxPyApp(wxEvtHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxApp(wxPyApp):
|
class App(PyApp):
|
||||||
"""The main application class.
|
"""The main application class.
|
||||||
|
|
||||||
Inherit from this class and implement an OnInit method that
|
Inherit from this class and implement an OnInit method that
|
||||||
@@ -316,29 +316,29 @@ class wxApp(wxPyApp):
|
|||||||
## sys.stdout, sys.stderr = self.saveStdio
|
## sys.stdout, sys.stderr = self.saveStdio
|
||||||
|
|
||||||
|
|
||||||
class wxPyOnDemandOutputWindow:
|
class PyOnDemandOutputWindow:
|
||||||
"""Used by wxApp to display stdout and stderr messages if app is
|
"""Used by App to display stdout and stderr messages if app is
|
||||||
created using wxApp(redirect=True). Mostly useful on Windows or
|
created using App(redirect=True). Mostly useful on Windows or
|
||||||
Mac where apps aren't always launched from the command line."""
|
Mac where apps aren't always launched from the command line."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPySimpleApp(wxApp):
|
class PySimpleApp(App):
|
||||||
"""Use instead of wxApp for simple apps with a simple frame or
|
"""Use instead of App for simple apps with a simple frame or
|
||||||
dialog, particularly for testing."""
|
dialog, particularly for testing."""
|
||||||
|
|
||||||
def __init__(self, flag=0):
|
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
|
pass
|
||||||
|
|
||||||
def OnInit(self):
|
def OnInit(self):
|
||||||
"""Automatically does a wxInitAllImageHandlers()."""
|
"""Automatically does a wx.InitAllImageHandlers()."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyWidgetTester(wxApp):
|
class PyWidgetTester(App):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -354,7 +354,7 @@ class wxPyWidgetTester(wxApp):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSingleInstanceChecker:
|
class SingleInstanceChecker:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
@@ -12,18 +12,18 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxObject:
|
class Object:
|
||||||
"""Base class for all other wxPython classes."""
|
"""Base class for all other wxPython classes."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Create a wxObject instance."""
|
"""Create a Object instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Destroy(self):
|
def Destroy(self):
|
||||||
"""Destroy the wxObject instance."""
|
"""Destroy the Object instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def GetClassName(self):
|
def GetClassName(self):
|
||||||
@@ -31,7 +31,7 @@ class wxObject:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxEvtHandler(wxObject):
|
class EvtHandler(Object):
|
||||||
"""Base class that can handle events from the windowing system.
|
"""Base class that can handle events from the windowing system.
|
||||||
|
|
||||||
If the handler is part of a chain, the destructor will unlink
|
If the handler is part of a chain, the destructor will unlink
|
||||||
@@ -39,7 +39,7 @@ class wxEvtHandler(wxObject):
|
|||||||
point to each other."""
|
point to each other."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Create a wxEvtHandler instance."""
|
"""Create a EvtHandler instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _setOORInfo(self):
|
def _setOORInfo(self):
|
||||||
@@ -61,7 +61,7 @@ class wxEvtHandler(wxObject):
|
|||||||
A copy of event is made by the function, so the original can
|
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
|
be deleted as soon as function returns (it is common that the
|
||||||
original is created on the stack). This requires 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.
|
be duplicated and stored until it gets processed.
|
||||||
|
|
||||||
This is also the method to call for inter-thread
|
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
|
This method automatically wakes up idle handling if the
|
||||||
underlying window system is currently idle and thus would not
|
underlying window system is currently idle and thus would not
|
||||||
send any idle events. (Waking up idle handling is done
|
send any idle events. (Waking up idle handling is done
|
||||||
calling wxWakeUpIdle.)"""
|
calling WakeUpIdle.)"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Connect(self, id, lastId, eventType, func):
|
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."""
|
userData is data to be associated with the event table entry."""
|
||||||
pass
|
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
|
"""Disconnects the given function dynamically from the event
|
||||||
handler, using the specified parameters as search criteria and
|
handler, using the specified parameters as search criteria and
|
||||||
returning True if a matching function has been found and
|
returning True if a matching function has been found and
|
||||||
removed. This method can only disconnect functions which have
|
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
|
way to disconnect functions connected using the (static) event
|
||||||
tables.
|
tables.
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ class wxEvtHandler(wxObject):
|
|||||||
"""Processes an event, searching event tables and calling zero
|
"""Processes an event, searching event tables and calling zero
|
||||||
or more suitable event handler function(s). Return True if a
|
or more suitable event handler function(s). Return True if a
|
||||||
suitable event handler function was found and executed, and
|
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.
|
event is an Event to process.
|
||||||
|
|
||||||
@@ -157,17 +157,17 @@ class wxEvtHandler(wxObject):
|
|||||||
potential event handlers. When an event reaches a frame,
|
potential event handlers. When an event reaches a frame,
|
||||||
ProcessEvent will need to be called on the associated document
|
ProcessEvent will need to be called on the associated document
|
||||||
and view in case event handler functions are associated with
|
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.
|
overrides ProcessEvent for similar reasons.
|
||||||
|
|
||||||
The normal order of event table searching is as follows:
|
The normal order of event table searching is as follows:
|
||||||
|
|
||||||
1. If the object is disabled (via a call to
|
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).
|
(6).
|
||||||
|
|
||||||
2. If the object is a wxWindow, ProcessEvent is recursively
|
2. If the object is a Window, ProcessEvent is recursively
|
||||||
called on the window's wxValidator. If this returns TRUE, the
|
called on the window's Validator. If this returns TRUE, the
|
||||||
function exits.
|
function exits.
|
||||||
|
|
||||||
3. SearchEventTable is called for this event handler. If this
|
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
|
handlers (usually the chain has a length of one). If this
|
||||||
succeeds, the function exits.
|
succeeds, the function exits.
|
||||||
|
|
||||||
5. If the object is a wxWindow and the event is a
|
5. If the object is a Window and the event is a
|
||||||
wxCommandEvent, ProcessEvent is recursively applied to the
|
CommandEvent, ProcessEvent is recursively applied to the
|
||||||
parent window's event handler. If this returns TRUE, the
|
parent window's event handler. If this returns TRUE, the
|
||||||
function exits.
|
function exits.
|
||||||
|
|
||||||
6. Finally, ProcessEvent is called on the wxApp object.
|
6. Finally, ProcessEvent is called on the App object.
|
||||||
|
|
||||||
See also:
|
See also:
|
||||||
|
|
||||||
wxEvtHandler::SearchEventTable"""
|
EvtHandler::SearchEventTable"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def SetEvtHandlerEnabled(self, enabled):
|
def SetEvtHandlerEnabled(self, enabled):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxClipboard(wxObject):
|
class Clipboard(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddData(self):
|
def AddData(self):
|
||||||
@@ -64,7 +64,7 @@ class wxClipboard(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDataFormat:
|
class DataFormat:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetId(self):
|
def GetId(self):
|
||||||
@@ -92,7 +92,7 @@ class wxDataFormat:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDataObject:
|
class DataObject:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetAllFormats(self):
|
def GetAllFormats(self):
|
||||||
@@ -132,7 +132,7 @@ class wxDataObject:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDataObjectComposite(wxDataObject):
|
class DataObjectComposite(DataObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Add(self):
|
def Add(self):
|
||||||
@@ -144,7 +144,7 @@ class wxDataObjectComposite(wxDataObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDataObjectSimple(wxDataObject):
|
class DataObjectSimple(DataObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFormat(self):
|
def GetFormat(self):
|
||||||
@@ -160,7 +160,7 @@ class wxDataObjectSimple(wxDataObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyDataObjectSimple(wxDataObjectSimple):
|
class PyDataObjectSimple(DataObjectSimple):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -172,7 +172,7 @@ class wxPyDataObjectSimple(wxDataObjectSimple):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBitmapDataObject(wxDataObjectSimple):
|
class BitmapDataObject(DataObjectSimple):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetBitmap(self):
|
def GetBitmap(self):
|
||||||
@@ -188,7 +188,7 @@ class wxBitmapDataObject(wxDataObjectSimple):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyBitmapDataObject(wxBitmapDataObject):
|
class PyBitmapDataObject(BitmapDataObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -200,7 +200,7 @@ class wxPyBitmapDataObject(wxBitmapDataObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCustomDataObject(wxDataObjectSimple):
|
class CustomDataObject(DataObjectSimple):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetData(self):
|
def GetData(self):
|
||||||
@@ -224,7 +224,7 @@ class wxCustomDataObject(wxDataObjectSimple):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDragImage(wxObject):
|
class DragImage(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def BeginDrag(self):
|
def BeginDrag(self):
|
||||||
@@ -272,7 +272,7 @@ class wxDragImage(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDropSource:
|
class DropSource:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def DoDragDrop(self):
|
def DoDragDrop(self):
|
||||||
@@ -308,7 +308,7 @@ class wxDropSource:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDropTarget:
|
class DropTarget:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -316,7 +316,7 @@ class wxDropTarget:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyDropTarget(wxDropTarget):
|
class PyDropTarget(DropTarget):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetData(self):
|
def GetData(self):
|
||||||
@@ -360,7 +360,7 @@ class wxPyDropTarget(wxDropTarget):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileDataObject(wxDataObjectSimple):
|
class FileDataObject(DataObjectSimple):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFilenames(self):
|
def GetFilenames(self):
|
||||||
@@ -372,7 +372,7 @@ class wxFileDataObject(wxDataObjectSimple):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileDropTarget(wxPyDropTarget):
|
class FileDropTarget(PyDropTarget):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -404,7 +404,7 @@ class wxFileDropTarget(wxPyDropTarget):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTextDataObject(wxDataObjectSimple):
|
class TextDataObject(DataObjectSimple):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetText(self):
|
def GetText(self):
|
||||||
@@ -424,7 +424,7 @@ class wxTextDataObject(wxDataObjectSimple):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyTextDataObject(wxTextDataObject):
|
class PyTextDataObject(TextDataObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -436,7 +436,7 @@ class wxPyTextDataObject(wxTextDataObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTextDropTarget(wxPyDropTarget):
|
class TextDropTarget(PyDropTarget):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -468,7 +468,7 @@ class wxTextDropTarget(wxPyDropTarget):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxURLDataObject(wxDataObjectComposite):
|
class URLDataObject(DataObjectComposite):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetURL(self):
|
def GetURL(self):
|
@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxConfigBase:
|
class ConfigBase:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def DeleteAll(self):
|
def DeleteAll(self):
|
||||||
@@ -175,7 +175,7 @@ class wxConfigBase:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxConfig(wxConfigBase):
|
class Config(ConfigBase):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
@@ -187,7 +187,7 @@ class wxConfig(wxConfigBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileConfig(wxConfigBase):
|
class FileConfig(ConfigBase):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
@@ -12,32 +12,32 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxWindow
|
from Window import Window
|
||||||
|
|
||||||
|
|
||||||
class wxControl(wxWindow):
|
class Control(Window):
|
||||||
"""Base class for a control or 'widget'.
|
"""Base class for a control or 'widget'.
|
||||||
|
|
||||||
A control is generally a small window which processes user input
|
A control is generally a small window which processes user input
|
||||||
and/or displays one or more item of data."""
|
and/or displays one or more item of data."""
|
||||||
|
|
||||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0,
|
size=wx.DefaultSize, style=0,
|
||||||
validator=wx.wxDefaultValidator, name='control'):
|
validator=wx.DefaultValidator, name='control'):
|
||||||
"""Create a wxControl instance."""
|
"""Create a Control instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Command(self, event):
|
def Command(self, event):
|
||||||
"""Simulates the effect of the user issuing a command to the
|
"""Simulates the effect of the user issuing a command to the
|
||||||
item. See wxCommandEvent."""
|
item. See CommandEvent."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self, parent, id, pos=wx.wxDefaultPosition,
|
def Create(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0,
|
size=wx.DefaultSize, style=0,
|
||||||
validator=wx.wxDefaultValidator, name='control'):
|
validator=wx.DefaultValidator, name='control'):
|
||||||
"""Create a wxControl instance."""
|
"""Create a Control instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def GetLabel(self):
|
def GetLabel(self):
|
||||||
@@ -49,7 +49,7 @@ class wxControl(wxWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyControl(wxControl):
|
class PyControl(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -133,7 +133,7 @@ class wxPyControl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxControlWithItems(wxControl):
|
class ControlWithItems(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Append(self):
|
def Append(self):
|
||||||
@@ -193,7 +193,7 @@ class wxControlWithItems(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxButton(wxControl):
|
class Button(Control):
|
||||||
"""A button is a control that contains a text string, and is one
|
"""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
|
of the most common elements of a GUI. It may be placed on a
|
||||||
dialog box or panel, or indeed almost any other window.
|
dialog box or panel, or indeed almost any other window.
|
||||||
@@ -201,16 +201,16 @@ class wxButton(wxControl):
|
|||||||
Styles
|
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.
|
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.)
|
making it of the standard size (which is the default behaviour.)
|
||||||
|
|
||||||
Events
|
Events
|
||||||
@@ -218,9 +218,9 @@ class wxButton(wxControl):
|
|||||||
|
|
||||||
EVT_BUTTON(win,id,func): Sent when the button is clicked."""
|
EVT_BUTTON(win,id,func): Sent when the button is clicked."""
|
||||||
|
|
||||||
def __init__(self, parent, id, label, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id, label, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0,
|
size=wx.DefaultSize, style=0,
|
||||||
validator=wx.wxDefaultValidator, name='button'):
|
validator=wx.DefaultValidator, name='button'):
|
||||||
"""Create and show a button.
|
"""Create and show a button.
|
||||||
|
|
||||||
parent: Parent window. Must not be None.
|
parent: Parent window. Must not be None.
|
||||||
@@ -229,14 +229,14 @@ class wxButton(wxControl):
|
|||||||
pos: The button position on it's parent.
|
pos: The button position on it's parent.
|
||||||
size: Button size. If the default size (-1, -1) is specified
|
size: Button size. If the default size (-1, -1) is specified
|
||||||
then the button is sized appropriately for the text.
|
then the button is sized appropriately for the text.
|
||||||
style: Window style. See wxButton.
|
style: Window style. See Button.
|
||||||
validator: Window validator.
|
validator: Window validator.
|
||||||
name: Window name."""
|
name: Window name."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self, parent, id, label, pos=wx.wxDefaultPosition,
|
def Create(self, parent, id, label, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0,
|
size=wx.DefaultSize, style=0,
|
||||||
validator=wx.wxDefaultValidator, name='button'):
|
validator=wx.DefaultValidator, name='button'):
|
||||||
"""Create and show a button."""
|
"""Create and show a button."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -251,9 +251,9 @@ class wxButton(wxControl):
|
|||||||
Under Windows, only dialog box buttons respond to this
|
Under Windows, only dialog box buttons respond to this
|
||||||
function. As normal under Windows and Motif, pressing return
|
function. As normal under Windows and Motif, pressing return
|
||||||
causes the default button to be depressed when the return key
|
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
|
focus for windows and text panel items, and
|
||||||
wxPanel.SetDefaultItem."""
|
Panel.SetDefaultItem."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def SetForegroundColour(self):
|
def SetForegroundColour(self):
|
||||||
@@ -261,7 +261,7 @@ class wxButton(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBitmapButton(wxButton):
|
class BitmapButton(Button):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -317,7 +317,7 @@ class wxBitmapButton(wxButton):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCheckBox(wxControl):
|
class CheckBox(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -341,7 +341,7 @@ class wxCheckBox(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxChoice(wxControlWithItems):
|
class Choice(ControlWithItems):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -381,7 +381,7 @@ class wxChoice(wxControlWithItems):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxGauge(wxControl):
|
class Gauge(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -425,7 +425,7 @@ class wxGauge(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxGenericDirCtrl(wxControl):
|
class GenericDirCtrl(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -497,7 +497,7 @@ class wxGenericDirCtrl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxListBox(wxControlWithItems):
|
class ListBox(ControlWithItems):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Clear(self):
|
def Clear(self):
|
||||||
@@ -557,7 +557,7 @@ class wxListBox(wxControlWithItems):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCheckListBox(wxListBox):
|
class CheckListBox(ListBox):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -593,7 +593,7 @@ class wxCheckListBox(wxListBox):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxListCtrl(wxControl):
|
class ListCtrl(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Append(self):
|
def Append(self):
|
||||||
@@ -889,7 +889,7 @@ class wxListCtrl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxListItem(wxObject):
|
class ListItem(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Clear(self):
|
def Clear(self):
|
||||||
@@ -1025,7 +1025,7 @@ class wxListItem(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxListItemAttr:
|
class ListItemAttr:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetBackgroundColour(self):
|
def GetBackgroundColour(self):
|
||||||
@@ -1069,7 +1069,7 @@ class wxListItemAttr:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxListView(wxListCtrl):
|
class ListView(ListCtrl):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def ClearColumnImage(self):
|
def ClearColumnImage(self):
|
||||||
@@ -1113,10 +1113,10 @@ class wxListView(wxListCtrl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxNotebook(wxControl):
|
class Notebook(Control):
|
||||||
|
|
||||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0, name=wx.wxPyNOTEBOOK_NAME):
|
size=wx.DefaultSize, style=0, name=wx.PyNOTEBOOK_NAME):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -1132,8 +1132,8 @@ class wxNotebook(wxControl):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self, parent, id, pos=wx.wxDefaultPosition,
|
def Create(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0, name=wx.wxPyNOTEBOOK_NAME):
|
size=wx.DefaultSize, style=0, name=wx.PyNOTEBOOK_NAME):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -1210,7 +1210,7 @@ class wxNotebook(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxRadioBox(wxControl):
|
class RadioBox(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1278,7 +1278,7 @@ class wxRadioBox(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxRadioButton(wxControl):
|
class RadioButton(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1298,7 +1298,7 @@ class wxRadioButton(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxScrollBar(wxControl):
|
class ScrollBar(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1342,7 +1342,7 @@ class wxScrollBar(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSlider(wxControl):
|
class Slider(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def ClearSel(self):
|
def ClearSel(self):
|
||||||
@@ -1430,7 +1430,7 @@ class wxSlider(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSpinButton(wxControl):
|
class SpinButton(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1462,7 +1462,7 @@ class wxSpinButton(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSpinCtrl(wxSpinButton):
|
class SpinCtrl(SpinButton):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1494,7 +1494,7 @@ class wxSpinCtrl(wxSpinButton):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStaticBitmap(wxControl):
|
class StaticBitmap(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1518,7 +1518,7 @@ class wxStaticBitmap(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStaticBox(wxControl):
|
class StaticBox(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1530,7 +1530,7 @@ class wxStaticBox(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStaticLine(wxControl):
|
class StaticLine(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1542,7 +1542,7 @@ class wxStaticLine(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStaticText(wxControl):
|
class StaticText(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -1562,7 +1562,7 @@ class wxStaticText(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTextAttr:
|
class TextAttr:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetBackgroundColour(self):
|
def GetBackgroundColour(self):
|
||||||
@@ -1614,7 +1614,7 @@ class wxTextAttr:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTextCtrl(wxControl):
|
class TextCtrl(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AppendText(self):
|
def AppendText(self):
|
||||||
@@ -1814,7 +1814,7 @@ class wxTextCtrl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxToggleButton(wxControl):
|
class ToggleButton(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxPoint:
|
class Point:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Set(self):
|
def Set(self):
|
||||||
@@ -79,7 +79,7 @@ class wxPoint:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPoint2DDouble:
|
class Point2DDouble:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCrossProduct(self):
|
def GetCrossProduct(self):
|
||||||
@@ -195,7 +195,7 @@ class wxPoint2DDouble:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxRealPoint:
|
class RealPoint:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Set(self):
|
def Set(self):
|
||||||
@@ -259,7 +259,7 @@ class wxRealPoint:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxRect:
|
class Rect:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetBottom(self):
|
def GetBottom(self):
|
||||||
@@ -403,7 +403,7 @@ class wxRect:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSize:
|
class Size:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetHeight(self):
|
def GetHeight(self):
|
@@ -8,10 +8,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxDateSpan:
|
class DateSpan:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Add(self):
|
def Add(self):
|
||||||
@@ -95,7 +95,7 @@ class wxDateSpan:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDateTime:
|
class DateTime:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddDS(self):
|
def AddDS(self):
|
||||||
@@ -443,7 +443,7 @@ class wxDateTime:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTimeSpan:
|
class TimeSpan:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Abs(self):
|
def Abs(self):
|
@@ -12,13 +12,13 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
from wxFrames import wxFrame
|
from Frames import Frame
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxTopLevelWindow
|
from Window import TopLevelWindow
|
||||||
|
|
||||||
|
|
||||||
class wxDialog(wxTopLevelWindow):
|
class Dialog(TopLevelWindow):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Centre(self):
|
def Centre(self):
|
||||||
@@ -66,7 +66,7 @@ class wxDialog(wxTopLevelWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxColourDialog(wxDialog):
|
class ColourDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetColourData(self):
|
def GetColourData(self):
|
||||||
@@ -82,7 +82,7 @@ class wxColourDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxColourData(wxObject):
|
class ColourData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetChooseFull(self):
|
def GetChooseFull(self):
|
||||||
@@ -118,7 +118,7 @@ class wxColourData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxColourDatabase(wxObject):
|
class ColourDatabase(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Append(self):
|
def Append(self):
|
||||||
@@ -138,7 +138,7 @@ class wxColourDatabase(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDirDialog(wxDialog):
|
class DirDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetMessage(self):
|
def GetMessage(self):
|
||||||
@@ -170,7 +170,7 @@ class wxDirDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileDialog(wxDialog):
|
class FileDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetDirectory(self):
|
def GetDirectory(self):
|
||||||
@@ -246,7 +246,7 @@ class wxFileDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFindReplaceDialog(wxDialog):
|
class FindReplaceDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -266,7 +266,7 @@ class wxFindReplaceDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFindReplaceData(wxObject):
|
class FindReplaceData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFindString(self):
|
def GetFindString(self):
|
||||||
@@ -302,7 +302,7 @@ class wxFindReplaceData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFontDialog(wxDialog):
|
class FontDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFontData(self):
|
def GetFontData(self):
|
||||||
@@ -318,7 +318,7 @@ class wxFontDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFontData(wxObject):
|
class FontData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def EnableEffects(self):
|
def EnableEffects(self):
|
||||||
@@ -382,7 +382,7 @@ class wxFontData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMessageDialog(wxDialog):
|
class MessageDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def ShowModal(self):
|
def ShowModal(self):
|
||||||
@@ -395,7 +395,7 @@ class wxMessageDialog(wxDialog):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class wxMultiChoiceDialog(wxDialog):
|
class MultiChoiceDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetSelections(self):
|
def GetSelections(self):
|
||||||
@@ -411,7 +411,7 @@ class wxMultiChoiceDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxProgressDialog(wxFrame):
|
class ProgressDialog(Frame):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Resume(self):
|
def Resume(self):
|
||||||
@@ -427,7 +427,7 @@ class wxProgressDialog(wxFrame):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSingleChoiceDialog(wxDialog):
|
class SingleChoiceDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetSelection(self):
|
def GetSelection(self):
|
||||||
@@ -451,7 +451,7 @@ class wxSingleChoiceDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTextEntryDialog(wxDialog):
|
class TextEntryDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetValue(self):
|
def GetValue(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxDC(wxObject):
|
class DC(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def BeginDrawing(self):
|
def BeginDrawing(self):
|
||||||
@@ -408,7 +408,7 @@ class wxDC(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxClientDC(wxDC):
|
class ClientDC(DC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -416,7 +416,7 @@ class wxClientDC(wxDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMemoryDC(wxDC):
|
class MemoryDC(DC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def SelectObject(self):
|
def SelectObject(self):
|
||||||
@@ -428,7 +428,7 @@ class wxMemoryDC(wxDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBufferedDC(wxMemoryDC):
|
class BufferedDC(MemoryDC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def UnMask(self):
|
def UnMask(self):
|
||||||
@@ -440,7 +440,7 @@ class wxBufferedDC(wxMemoryDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBufferedPaintDC(wxBufferedDC):
|
class BufferedPaintDC(BufferedDC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -448,7 +448,7 @@ class wxBufferedPaintDC(wxBufferedDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPaintDC(wxDC):
|
class PaintDC(DC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -456,7 +456,7 @@ class wxPaintDC(wxDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPostScriptDC(wxDC):
|
class PostScriptDC(DC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPrintData(self):
|
def GetPrintData(self):
|
||||||
@@ -472,7 +472,7 @@ class wxPostScriptDC(wxDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxScreenDC(wxDC):
|
class ScreenDC(DC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def EndDrawingOnTop(self):
|
def EndDrawingOnTop(self):
|
||||||
@@ -492,7 +492,7 @@ class wxScreenDC(wxDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxWindowDC(wxDC):
|
class WindowDC(DC):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -500,7 +500,7 @@ class wxWindowDC(wxDC):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxGDIObject(wxObject):
|
class GDIObject(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetVisible(self):
|
def GetVisible(self):
|
||||||
@@ -524,7 +524,7 @@ class wxGDIObject(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBitmap(wxGDIObject):
|
class Bitmap(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CopyFromIcon(self):
|
def CopyFromIcon(self):
|
||||||
@@ -592,7 +592,7 @@ class wxBitmap(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBrush(wxGDIObject):
|
class Brush(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetColour(self):
|
def GetColour(self):
|
||||||
@@ -632,7 +632,7 @@ class wxBrush(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBrushList(wxObject):
|
class BrushList(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddBrush(self):
|
def AddBrush(self):
|
||||||
@@ -656,7 +656,7 @@ class wxBrushList(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxColour(wxObject):
|
class Colour(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Blue(self):
|
def Blue(self):
|
||||||
@@ -712,7 +712,7 @@ class wxColour(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCursor(wxGDIObject):
|
class Cursor(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Ok(self):
|
def Ok(self):
|
||||||
@@ -728,7 +728,7 @@ class wxCursor(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFont(wxObject):
|
class Font(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetEncoding(self):
|
def GetEncoding(self):
|
||||||
@@ -848,7 +848,7 @@ class wxFont(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFontList(wxObject):
|
class FontList(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddFont(self):
|
def AddFont(self):
|
||||||
@@ -872,7 +872,7 @@ class wxFontList(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxIcon(wxGDIObject):
|
class Icon(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CopyFromBitmap(self):
|
def CopyFromBitmap(self):
|
||||||
@@ -920,7 +920,7 @@ class wxIcon(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxIconBundle:
|
class IconBundle:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddIcon(self):
|
def AddIcon(self):
|
||||||
@@ -944,7 +944,7 @@ class wxIconBundle:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxImage(wxObject):
|
class Image(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def ConvertToBitmap(self):
|
def ConvertToBitmap(self):
|
||||||
@@ -1132,7 +1132,7 @@ class wxImage(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxImageList(wxObject):
|
class ImageList(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Add(self):
|
def Add(self):
|
||||||
@@ -1180,7 +1180,7 @@ class wxImageList(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMask(wxObject):
|
class Mask(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Destroy(self):
|
def Destroy(self):
|
||||||
@@ -1192,7 +1192,7 @@ class wxMask(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPalette(wxGDIObject):
|
class Palette(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPixel(self):
|
def GetPixel(self):
|
||||||
@@ -1216,7 +1216,7 @@ class wxPalette(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPen(wxGDIObject):
|
class Pen(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCap(self):
|
def GetCap(self):
|
||||||
@@ -1280,7 +1280,7 @@ class wxPen(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPenList(wxObject):
|
class PenList(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddPen(self):
|
def AddPen(self):
|
||||||
@@ -1304,7 +1304,7 @@ class wxPenList(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyPen(wxPen):
|
class PyPen(Pen):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def SetDashes(self):
|
def SetDashes(self):
|
||||||
@@ -1320,7 +1320,7 @@ class wxPyPen(wxPen):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxRegion(wxGDIObject):
|
class Region(GDIObject):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Clear(self):
|
def Clear(self):
|
||||||
@@ -1412,7 +1412,7 @@ class wxRegion(wxGDIObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxRegionIterator(wxObject):
|
class RegionIterator(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetH(self):
|
def GetH(self):
|
@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
class wxPyAssertionError(AssertionError):
|
class PyAssertionError(AssertionError):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyDeadObjectError(AttributeError):
|
class PyDeadObjectError(AttributeError):
|
||||||
"""Instances of wx objects that are OOR capable will have their
|
"""Instances of wx objects that are OOR capable will have their
|
||||||
__class__ attribute changed to a _wxPyDeadObject class when the
|
__class__ attribute changed to a _wxPyDeadObject class when the
|
||||||
C++ object is deleted. Subsequent attempts to access object
|
C++ object is deleted. Subsequent attempts to access object
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxEvent(wxObject):
|
class Event(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -68,7 +68,7 @@ class wxEvent(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyEvent(wxEvent):
|
class PyEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetSelf(self):
|
def GetSelf(self):
|
||||||
@@ -88,7 +88,7 @@ class wxPyEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxActivateEvent(wxEvent):
|
class ActivateEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetActive(self):
|
def GetActive(self):
|
||||||
@@ -100,7 +100,7 @@ class wxActivateEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCalculateLayoutEvent(wxEvent):
|
class CalculateLayoutEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFlags(self):
|
def GetFlags(self):
|
||||||
@@ -124,7 +124,7 @@ class wxCalculateLayoutEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCloseEvent(wxEvent):
|
class CloseEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanVeto(self):
|
def CanVeto(self):
|
||||||
@@ -156,7 +156,7 @@ class wxCloseEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCommandEvent(wxEvent):
|
class CommandEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -208,7 +208,7 @@ class wxCommandEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxChildFocusEvent(wxCommandEvent):
|
class ChildFocusEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetWindow(self):
|
def GetWindow(self):
|
||||||
@@ -220,7 +220,7 @@ class wxChildFocusEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxContextMenuEvent(wxCommandEvent):
|
class ContextMenuEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPosition(self):
|
def GetPosition(self):
|
||||||
@@ -236,7 +236,7 @@ class wxContextMenuEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDisplayChangedEvent(wxEvent):
|
class DisplayChangedEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -244,7 +244,7 @@ class wxDisplayChangedEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDropFilesEvent(wxEvent):
|
class DropFilesEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFiles(self):
|
def GetFiles(self):
|
||||||
@@ -264,7 +264,7 @@ class wxDropFilesEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxEraseEvent(wxEvent):
|
class EraseEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetDC(self):
|
def GetDC(self):
|
||||||
@@ -276,7 +276,7 @@ class wxEraseEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFindDialogEvent(wxCommandEvent):
|
class FindDialogEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetDialog(self):
|
def GetDialog(self):
|
||||||
@@ -312,7 +312,7 @@ class wxFindDialogEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFocusEvent(wxEvent):
|
class FocusEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -320,7 +320,7 @@ class wxFocusEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxIconizeEvent(wxEvent):
|
class IconizeEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Iconized(self):
|
def Iconized(self):
|
||||||
@@ -332,7 +332,7 @@ class wxIconizeEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxIdleEvent(wxEvent):
|
class IdleEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def MoreRequested(self):
|
def MoreRequested(self):
|
||||||
@@ -348,7 +348,7 @@ class wxIdleEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxInitDialogEvent(wxEvent):
|
class InitDialogEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -356,7 +356,7 @@ class wxInitDialogEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxJoystickEvent(wxEvent):
|
class JoystickEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def ButtonDown(self):
|
def ButtonDown(self):
|
||||||
@@ -428,7 +428,7 @@ class wxJoystickEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxKeyEvent(wxEvent):
|
class KeyEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AltDown(self):
|
def AltDown(self):
|
||||||
@@ -496,7 +496,7 @@ class wxKeyEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMaximizeEvent(wxEvent):
|
class MaximizeEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -504,7 +504,7 @@ class wxMaximizeEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMenuEvent(wxEvent):
|
class MenuEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetMenuId(self):
|
def GetMenuId(self):
|
||||||
@@ -520,7 +520,7 @@ class wxMenuEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMouseCaptureChangedEvent(wxEvent):
|
class MouseCaptureChangedEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCapturedWindow(self):
|
def GetCapturedWindow(self):
|
||||||
@@ -532,7 +532,7 @@ class wxMouseCaptureChangedEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMouseEvent(wxEvent):
|
class MouseEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AltDown(self):
|
def AltDown(self):
|
||||||
@@ -684,7 +684,7 @@ class wxMouseEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMoveEvent(wxEvent):
|
class MoveEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPosition(self):
|
def GetPosition(self):
|
||||||
@@ -696,7 +696,7 @@ class wxMoveEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxNavigationKeyEvent(wxEvent):
|
class NavigationKeyEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCurrentFocus(self):
|
def GetCurrentFocus(self):
|
||||||
@@ -728,7 +728,7 @@ class wxNavigationKeyEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxNotifyEvent(wxCommandEvent):
|
class NotifyEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -748,7 +748,7 @@ class wxNotifyEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxListEvent(wxNotifyEvent):
|
class ListEvent(NotifyEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCacheFrom(self):
|
def GetCacheFrom(self):
|
||||||
@@ -816,9 +816,9 @@ class wxListEvent(wxNotifyEvent):
|
|||||||
pass
|
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
|
pass
|
||||||
|
|
||||||
@@ -839,7 +839,7 @@ class wxNotebookEvent(wxNotifyEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPaintEvent(wxEvent):
|
class PaintEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -847,7 +847,7 @@ class wxPaintEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPaletteChangedEvent(wxEvent):
|
class PaletteChangedEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetChangedWindow(self):
|
def GetChangedWindow(self):
|
||||||
@@ -863,7 +863,7 @@ class wxPaletteChangedEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxProcessEvent(wxEvent):
|
class ProcessEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetExitCode(self):
|
def GetExitCode(self):
|
||||||
@@ -887,7 +887,7 @@ class wxProcessEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyCommandEvent(wxCommandEvent):
|
class PyCommandEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetSelf(self):
|
def GetSelf(self):
|
||||||
@@ -907,7 +907,7 @@ class wxPyCommandEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxQueryLayoutInfoEvent(wxEvent):
|
class QueryLayoutInfoEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetAlignment(self):
|
def GetAlignment(self):
|
||||||
@@ -955,7 +955,7 @@ class wxQueryLayoutInfoEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxQueryNewPaletteEvent(wxEvent):
|
class QueryNewPaletteEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPaletteRealized(self):
|
def GetPaletteRealized(self):
|
||||||
@@ -971,7 +971,7 @@ class wxQueryNewPaletteEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSashEvent(wxCommandEvent):
|
class SashEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetDragRect(self):
|
def GetDragRect(self):
|
||||||
@@ -1003,7 +1003,7 @@ class wxSashEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxScrollEvent(wxCommandEvent):
|
class ScrollEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetOrientation(self):
|
def GetOrientation(self):
|
||||||
@@ -1019,7 +1019,7 @@ class wxScrollEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxScrollWinEvent(wxEvent):
|
class ScrollWinEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetOrientation(self):
|
def GetOrientation(self):
|
||||||
@@ -1035,7 +1035,7 @@ class wxScrollWinEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSetCursorEvent(wxEvent):
|
class SetCursorEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCursor(self):
|
def GetCursor(self):
|
||||||
@@ -1063,7 +1063,7 @@ class wxSetCursorEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxShowEvent(wxEvent):
|
class ShowEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetShow(self):
|
def GetShow(self):
|
||||||
@@ -1079,7 +1079,7 @@ class wxShowEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSizeEvent(wxEvent):
|
class SizeEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetSize(self):
|
def GetSize(self):
|
||||||
@@ -1091,7 +1091,7 @@ class wxSizeEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSpinEvent(wxScrollEvent):
|
class SpinEvent(ScrollEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -1099,7 +1099,7 @@ class wxSpinEvent(wxScrollEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSplitterEvent(wxNotifyEvent):
|
class SplitterEvent(NotifyEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetSashPosition(self):
|
def GetSashPosition(self):
|
||||||
@@ -1127,7 +1127,7 @@ class wxSplitterEvent(wxNotifyEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSysColourChangedEvent(wxEvent):
|
class SysColourChangedEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -1135,7 +1135,7 @@ class wxSysColourChangedEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTextUrlEvent(wxCommandEvent):
|
class TextUrlEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetMouseEvent(self):
|
def GetMouseEvent(self):
|
||||||
@@ -1155,7 +1155,7 @@ class wxTextUrlEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTimerEvent(wxEvent):
|
class TimerEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetInterval(self):
|
def GetInterval(self):
|
||||||
@@ -1167,7 +1167,7 @@ class wxTimerEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTreeEvent(wxNotifyEvent):
|
class TreeEvent(NotifyEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCode(self):
|
def GetCode(self):
|
||||||
@@ -1207,7 +1207,7 @@ class wxTreeEvent(wxNotifyEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxUpdateUIEvent(wxEvent):
|
class UpdateUIEvent(Event):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Check(self):
|
def Check(self):
|
||||||
@@ -1251,7 +1251,7 @@ class wxUpdateUIEvent(wxEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxWindowCreateEvent(wxCommandEvent):
|
class WindowCreateEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetWindow(self):
|
def GetWindow(self):
|
||||||
@@ -1263,7 +1263,7 @@ class wxWindowCreateEvent(wxCommandEvent):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxWindowDestroyEvent(wxCommandEvent):
|
class WindowDestroyEvent(CommandEvent):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetWindow(self):
|
def GetWindow(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxFSFile(wxObject):
|
class FSFile(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetAnchor(self):
|
def GetAnchor(self):
|
||||||
@@ -44,7 +44,7 @@ class wxFSFile(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileSystem(wxObject):
|
class FileSystem(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def ChangePathTo(self):
|
def ChangePathTo(self):
|
||||||
@@ -72,7 +72,7 @@ class wxFileSystem(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCPPFileSystemHandler(wxObject):
|
class CPPFileSystemHandler(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -80,7 +80,7 @@ class wxCPPFileSystemHandler(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileSystemHandler(wxCPPFileSystemHandler):
|
class FileSystemHandler(CPPFileSystemHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanOpen(self):
|
def CanOpen(self):
|
||||||
@@ -128,7 +128,7 @@ class wxFileSystemHandler(wxCPPFileSystemHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxInternetFSHandler(wxCPPFileSystemHandler):
|
class InternetFSHandler(CPPFileSystemHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanOpen(self):
|
def CanOpen(self):
|
||||||
@@ -144,7 +144,7 @@ class wxInternetFSHandler(wxCPPFileSystemHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMemoryFSHandler(wxCPPFileSystemHandler):
|
class MemoryFSHandler(CPPFileSystemHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanOpen(self):
|
def CanOpen(self):
|
||||||
@@ -168,7 +168,7 @@ class wxMemoryFSHandler(wxCPPFileSystemHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxZipFSHandler(wxCPPFileSystemHandler):
|
class ZipFSHandler(CPPFileSystemHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanOpen(self):
|
def CanOpen(self):
|
@@ -12,22 +12,28 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxTopLevelWindow, wxWindow
|
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
|
pass
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def Command(self):
|
||||||
|
""""""
|
||||||
|
pass
|
||||||
|
|
||||||
def CreateStatusBar(self):
|
def CreateStatusBar(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -100,14 +106,14 @@ class wxFrame(wxTopLevelWindow):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class LayoutAlgorithm(Object):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLayoutAlgorithm(wxObject):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def LayoutFrame(self):
|
def LayoutFrame(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -120,23 +126,19 @@ class wxLayoutAlgorithm(wxObject):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
""""""
|
class MDIChildFrame(Frame):
|
||||||
pass
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def Create(self):
|
||||||
class wxMDIChildFrame(wxFrame):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def Activate(self):
|
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self):
|
def Activate(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -148,25 +150,29 @@ class wxMDIChildFrame(wxFrame):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MDIClientWindow(Window):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMDIClientWindow(wxWindow):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MDIParentFrame(Frame):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def Create(self):
|
||||||
class wxMDIParentFrame(wxFrame):
|
""""""
|
||||||
""""""
|
pass
|
||||||
|
|
||||||
def ActivateNext(self):
|
def ActivateNext(self):
|
||||||
""""""
|
""""""
|
||||||
@@ -184,10 +190,6 @@ class wxMDIParentFrame(wxFrame):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self):
|
|
||||||
""""""
|
|
||||||
pass
|
|
||||||
|
|
||||||
def GetActiveChild(self):
|
def GetActiveChild(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -204,26 +206,26 @@ class wxMDIParentFrame(wxFrame):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MiniFrame(Frame):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMiniFrame(wxFrame):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class SplashScreen(Frame):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSplashScreen(wxFrame):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def GetSplashStyle(self):
|
def GetSplashStyle(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -236,14 +238,14 @@ class wxSplashScreen(wxFrame):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class SplashScreenWindow(Window):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSplashScreenWindow(wxWindow):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def GetBitmap(self):
|
def GetBitmap(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -252,14 +254,14 @@ class wxSplashScreenWindow(wxWindow):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class StatusBar(Window):
|
||||||
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStatusBar(wxWindow):
|
|
||||||
""""""
|
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
@@ -308,8 +310,4 @@ class wxStatusBar(wxWindow):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
""""""
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
1264
wxPython/wxPython/lib/PyCrust/wxd/Functions.py
Normal file
1264
wxPython/wxPython/lib/PyCrust/wxd/Functions.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxWindow
|
from Window import Window
|
||||||
|
|
||||||
|
|
||||||
class wxPopupWindow(wxWindow):
|
class PopupWindow(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -33,7 +33,7 @@ class wxPopupWindow(wxWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPopupTransientWindow(wxPopupWindow):
|
class PopupTransientWindow(PopupWindow):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Dismiss(self):
|
def Dismiss(self):
|
||||||
@@ -53,7 +53,7 @@ class wxPopupTransientWindow(wxPopupWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTipProvider:
|
class TipProvider:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCurrentTip(self):
|
def GetCurrentTip(self):
|
||||||
@@ -77,7 +77,7 @@ class wxTipProvider:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyTipProvider(wxTipProvider):
|
class PyTipProvider(TipProvider):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -89,7 +89,7 @@ class wxPyTipProvider(wxTipProvider):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTipWindow(wxPopupTransientWindow):
|
class TipWindow(PopupTransientWindow):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Close(self):
|
def Close(self):
|
||||||
@@ -105,7 +105,7 @@ class wxTipWindow(wxPopupTransientWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxToolTip(wxObject):
|
class ToolTip(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetTip(self):
|
def GetTip(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxImageHandler(wxObject):
|
class ImageHandler(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanRead(self):
|
def CanRead(self):
|
||||||
@@ -60,7 +60,7 @@ class wxImageHandler(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBMPHandler(wxImageHandler):
|
class BMPHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -68,7 +68,7 @@ class wxBMPHandler(wxImageHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxGIFHandler(wxImageHandler):
|
class GIFHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -76,7 +76,7 @@ class wxGIFHandler(wxImageHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxICOHandler(wxBMPHandler):
|
class ICOHandler(BMPHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -84,7 +84,7 @@ class wxICOHandler(wxBMPHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCURHandler(wxICOHandler):
|
class CURHandler(ICOHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -92,7 +92,7 @@ class wxCURHandler(wxICOHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxANIHandler(wxCURHandler):
|
class ANIHandler(CURHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -100,7 +100,7 @@ class wxANIHandler(wxCURHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxJPEGHandler(wxImageHandler):
|
class JPEGHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -108,7 +108,7 @@ class wxJPEGHandler(wxImageHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPCXHandler(wxImageHandler):
|
class PCXHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -116,7 +116,7 @@ class wxPCXHandler(wxImageHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPNGHandler(wxImageHandler):
|
class PNGHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -124,7 +124,7 @@ class wxPNGHandler(wxImageHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPNMHandler(wxImageHandler):
|
class PNMHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -132,7 +132,7 @@ class wxPNMHandler(wxImageHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTIFFHandler(wxImageHandler):
|
class TIFFHandler(ImageHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxJoystick(wxObject):
|
class Joystick(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetButtonState(self):
|
def GetButtonState(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxIndividualLayoutConstraint(wxObject):
|
class IndividualLayoutConstraint(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Above(self):
|
def Above(self):
|
||||||
@@ -64,7 +64,7 @@ class wxIndividualLayoutConstraint(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLayoutConstraints(wxObject):
|
class LayoutConstraints(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __getattr__(self):
|
def __getattr__(self):
|
@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxLog:
|
class Log:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Flush(self):
|
def Flush(self):
|
||||||
@@ -39,7 +39,7 @@ class wxLog:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyLog(wxLog):
|
class PyLog(Log):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Destroy(self):
|
def Destroy(self):
|
||||||
@@ -55,7 +55,7 @@ class wxPyLog(wxLog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLogChain(wxLog):
|
class LogChain(Log):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetOldLog(self):
|
def GetOldLog(self):
|
||||||
@@ -79,7 +79,7 @@ class wxLogChain(wxLog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLogGui(wxLog):
|
class LogGui(Log):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -87,7 +87,7 @@ class wxLogGui(wxLog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLogNull:
|
class LogNull:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
@@ -99,7 +99,7 @@ class wxLogNull:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLogStderr(wxLog):
|
class LogStderr(Log):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -107,7 +107,7 @@ class wxLogStderr(wxLog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLogTextCtrl(wxLog):
|
class LogTextCtrl(Log):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -115,7 +115,7 @@ class wxLogTextCtrl(wxLog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLogWindow(wxLog):
|
class LogWindow(Log):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetFrame(self):
|
def GetFrame(self):
|
@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject, wxEvtHandler
|
from Base import Object, EvtHandler
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxWindow
|
from Window import Window
|
||||||
|
|
||||||
|
|
||||||
class wxFileHistory(wxObject):
|
class FileHistory(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddFileToHistory(self):
|
def AddFileToHistory(self):
|
||||||
@@ -77,7 +77,7 @@ class wxFileHistory(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMenu(wxEvtHandler):
|
class Menu(EvtHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Append(self):
|
def Append(self):
|
||||||
@@ -281,7 +281,7 @@ class wxMenu(wxEvtHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMenuBar(wxWindow):
|
class MenuBar(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Append(self):
|
def Append(self):
|
||||||
@@ -372,7 +372,7 @@ class wxMenuBar(wxWindow):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class wxMenuItem(wxObject):
|
class MenuItem(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Check(self):
|
def Check(self):
|
@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxFileType:
|
class FileType:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetAllCommands(self):
|
def GetAllCommands(self):
|
||||||
@@ -75,7 +75,7 @@ class wxFileType:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFileTypeInfo:
|
class FileTypeInfo:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetDescription(self):
|
def GetDescription(self):
|
||||||
@@ -131,7 +131,7 @@ class wxFileTypeInfo:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxMimeTypesManager:
|
class MimeTypesManager:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddFallback(self):
|
def AddFallback(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxArtProvider(wxObject):
|
class ArtProvider(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -28,7 +28,7 @@ class wxArtProvider(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBusyCursor:
|
class BusyCursor:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
@@ -40,7 +40,7 @@ class wxBusyCursor:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBusyInfo(wxObject):
|
class BusyInfo(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
@@ -52,7 +52,7 @@ class wxBusyInfo(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxCaret:
|
class Caret:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPosition(self):
|
def GetPosition(self):
|
||||||
@@ -116,7 +116,7 @@ class wxCaret:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxEncodingConverter(wxObject):
|
class EncodingConverter(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Convert(self):
|
def Convert(self):
|
||||||
@@ -136,7 +136,7 @@ class wxEncodingConverter(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxDirItemData(wxObject):
|
class DirItemData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def SetNewDirName(self):
|
def SetNewDirName(self):
|
||||||
@@ -156,7 +156,7 @@ class wxDirItemData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxEffects(wxObject):
|
class Effects(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def DrawSunkenEdge(self):
|
def DrawSunkenEdge(self):
|
||||||
@@ -216,7 +216,7 @@ class wxEffects(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFontEnumerator:
|
class FontEnumerator:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def EnumerateEncodings(self):
|
def EnumerateEncodings(self):
|
||||||
@@ -248,7 +248,7 @@ class wxFontEnumerator:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFontMapper:
|
class FontMapper:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CharsetToEncoding(self):
|
def CharsetToEncoding(self):
|
||||||
@@ -288,7 +288,7 @@ class wxFontMapper:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLanguageInfo:
|
class LanguageInfo:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __getattr__(self):
|
def __getattr__(self):
|
||||||
@@ -304,7 +304,7 @@ class wxLanguageInfo:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxLocale:
|
class Locale:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddCatalog(self):
|
def AddCatalog(self):
|
||||||
@@ -356,7 +356,7 @@ class wxLocale:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxNativeFontInfo:
|
class NativeFontInfo:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def FromString(self):
|
def FromString(self):
|
||||||
@@ -444,7 +444,7 @@ class wxNativeFontInfo:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyTimer(wxObject):
|
class PyTimer(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetInterval(self):
|
def GetInterval(self):
|
||||||
@@ -480,7 +480,7 @@ class wxPyTimer(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStopWatch:
|
class StopWatch:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Pause(self):
|
def Pause(self):
|
||||||
@@ -508,7 +508,7 @@ class wxStopWatch:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSystemSettings:
|
class SystemSettings:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -516,15 +516,15 @@ class wxSystemSettings:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTimer(wxPyTimer):
|
class Timer(PyTimer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self, evtHandler=None, id=-1):
|
def __init__(self, evtHandler=None, id=-1):
|
||||||
"""Create a wxTimer instance."""
|
"""Create a Timer instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxWave(wxObject):
|
class Wave(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def IsOk(self):
|
def IsOk(self):
|
||||||
@@ -544,7 +544,7 @@ class wxWave(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxWindowDisabler:
|
class WindowDisabler:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
@@ -12,22 +12,22 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxWindow
|
from Window import Window
|
||||||
|
|
||||||
|
|
||||||
class wxPanel(wxWindow):
|
class Panel(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=wx.wxTAB_TRAVERSAL,
|
size=wx.DefaultSize, style=wx.TAB_TRAVERSAL,
|
||||||
name=wx.wxPyPanelNameStr):
|
name=wx.PyPanelNameStr):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self, parent, id, pos=wx.wxDefaultPosition,
|
def Create(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=wx.wxTAB_TRAVERSAL,
|
size=wx.DefaultSize, style=wx.TAB_TRAVERSAL,
|
||||||
name=wx.wxPyPanelNameStr):
|
name=wx.PyPanelNameStr):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ class wxPanel(wxWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyPanel(wxPanel):
|
class PyPanel(Panel):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -120,18 +120,18 @@ class wxPyPanel(wxPanel):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxScrolledWindow(wxPanel):
|
class ScrolledWindow(Panel):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id=-1, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=wx.wxHSCROLL|wx.wxVSCROLL,
|
size=wx.DefaultSize, style=wx.HSCROLL|wx.VSCROLL,
|
||||||
name=wx.wxPyPanelNameStr):
|
name=wx.PyPanelNameStr):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
def Create(self, parent, id=-1, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=wx.wxHSCROLL|wx.wxVSCROLL,
|
size=wx.DefaultSize, style=wx.HSCROLL|wx.VSCROLL,
|
||||||
name=wx.wxPyPanelNameStr):
|
name=wx.PyPanelNameStr):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
82
wxPython/wxPython/lib/PyCrust/wxd/Parameters.py
Normal file
82
wxPython/wxPython/lib/PyCrust/wxd/Parameters.py
Normal 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()
|
||||||
|
|
@@ -12,13 +12,13 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
from wxDialogs import wxDialog
|
from Dialogs import Dialog
|
||||||
from wxFrames import wxFrame
|
from Frames import Frame
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxPageSetupDialog(wxDialog):
|
class PageSetupDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPageSetupData(self):
|
def GetPageSetupData(self):
|
||||||
@@ -34,7 +34,7 @@ class wxPageSetupDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPageSetupDialogData(wxObject):
|
class PageSetupDialogData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def EnableHelp(self):
|
def EnableHelp(self):
|
||||||
@@ -162,7 +162,7 @@ class wxPageSetupDialogData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPrintDialog(wxDialog):
|
class PrintDialog(Dialog):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetPrintDC(self):
|
def GetPrintDC(self):
|
||||||
@@ -182,7 +182,7 @@ class wxPrintDialog(wxDialog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPrintDialogData(wxObject):
|
class PrintDialogData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def EnableHelp(self):
|
def EnableHelp(self):
|
||||||
@@ -286,7 +286,7 @@ class wxPrintDialogData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPreviewFrame(wxFrame):
|
class PreviewFrame(Frame):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Initialize(self):
|
def Initialize(self):
|
||||||
@@ -298,7 +298,7 @@ class wxPreviewFrame(wxFrame):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPrintData(wxObject):
|
class PrintData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCollate(self):
|
def GetCollate(self):
|
||||||
@@ -474,7 +474,7 @@ class wxPrintData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPrintPreview(wxObject):
|
class PrintPreview(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetCanvas(self):
|
def GetCanvas(self):
|
||||||
@@ -546,7 +546,7 @@ class wxPrintPreview(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPrinter(wxObject):
|
class Printer(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CreateAbortWindow(self):
|
def CreateAbortWindow(self):
|
||||||
@@ -582,7 +582,7 @@ class wxPrinter(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPrintout(wxObject):
|
class Printout(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Destroy(self):
|
def Destroy(self):
|
@@ -12,10 +12,10 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxEvtHandler
|
from Base import EvtHandler
|
||||||
|
|
||||||
|
|
||||||
class wxProcess(wxEvtHandler):
|
class Process(EvtHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CloseOutput(self):
|
def CloseOutput(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
from wxWindow import wxWindow
|
from Window import Window
|
||||||
|
|
||||||
|
|
||||||
class wxSashWindow(wxWindow):
|
class SashWindow(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -96,7 +96,7 @@ class wxSashWindow(wxWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSashLayoutWindow(wxSashWindow):
|
class SashLayoutWindow(SashWindow):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -128,7 +128,7 @@ class wxSashLayoutWindow(wxSashWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSplitterWindow(wxWindow):
|
class SplitterWindow(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxSizer(wxObject):
|
class Sizer(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Add(self):
|
def Add(self):
|
||||||
@@ -220,7 +220,7 @@ class wxSizer(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxSizerItem(wxObject):
|
class SizerItem(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CalcMin(self):
|
def CalcMin(self):
|
||||||
@@ -332,7 +332,7 @@ class wxSizerItem(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxBoxSizer(wxSizer):
|
class BoxSizer(Sizer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CalcMin(self):
|
def CalcMin(self):
|
||||||
@@ -356,7 +356,7 @@ class wxBoxSizer(wxSizer):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxGridSizer(wxSizer):
|
class GridSizer(Sizer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CalcMin(self):
|
def CalcMin(self):
|
||||||
@@ -404,7 +404,7 @@ class wxGridSizer(wxSizer):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxFlexGridSizer(wxGridSizer):
|
class FlexGridSizer(GridSizer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddGrowableCol(self):
|
def AddGrowableCol(self):
|
||||||
@@ -436,7 +436,7 @@ class wxFlexGridSizer(wxGridSizer):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxNotebookSizer(wxSizer):
|
class NotebookSizer(Sizer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CalcMin(self):
|
def CalcMin(self):
|
||||||
@@ -456,7 +456,7 @@ class wxNotebookSizer(wxSizer):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPySizer(wxSizer):
|
class PySizer(Sizer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -468,7 +468,7 @@ class wxPySizer(wxSizer):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxStaticBoxSizer(wxBoxSizer):
|
class StaticBoxSizer(BoxSizer):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CalcMin(self):
|
def CalcMin(self):
|
@@ -12,7 +12,7 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
class wxInputStream:
|
class InputStream:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def CanRead(self):
|
def CanRead(self):
|
||||||
@@ -84,7 +84,7 @@ class wxInputStream:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxOutputStream:
|
class OutputStream:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
@@ -12,7 +12,7 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
class wxMutexGuiLocker:
|
class MutexGuiLocker:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
from wxControls import wxControl
|
from Controls import Control
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxToolBarBase(wxControl):
|
class ToolBarBase(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddCheckLabelTool(self):
|
def AddCheckLabelTool(self):
|
||||||
@@ -225,7 +225,7 @@ class wxToolBarBase(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxToolBar(wxToolBarBase):
|
class ToolBar(ToolBarBase):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -241,7 +241,7 @@ class wxToolBar(wxToolBarBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxToolBarSimple(wxToolBarBase):
|
class ToolBarSimple(ToolBarBase):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
||||||
@@ -257,7 +257,7 @@ class wxToolBarSimple(wxToolBarBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxToolBarToolBase(wxObject):
|
class ToolBarToolBase(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Attach(self):
|
def Attach(self):
|
@@ -12,12 +12,12 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxObject
|
from Base import Object
|
||||||
from wxControls import wxControl
|
from Controls import Control
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxTreeCtrl(wxControl):
|
class TreeCtrl(Control):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def AddRoot(self):
|
def AddRoot(self):
|
||||||
@@ -309,7 +309,7 @@ class wxTreeCtrl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTreeItemAttr:
|
class TreeItemAttr:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetBackgroundColour(self):
|
def GetBackgroundColour(self):
|
||||||
@@ -353,7 +353,7 @@ class wxTreeItemAttr:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTreeItemData(wxObject):
|
class TreeItemData(Object):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def GetData(self):
|
def GetData(self):
|
||||||
@@ -377,7 +377,7 @@ class wxTreeItemData(wxObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTreeItemId:
|
class TreeItemId:
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def IsOk(self):
|
def IsOk(self):
|
@@ -12,11 +12,11 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxEvtHandler
|
from Base import EvtHandler
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxValidator(wxEvtHandler):
|
class Validator(EvtHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -36,7 +36,7 @@ class wxValidator(wxEvtHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyValidator(wxValidator):
|
class PyValidator(Validator):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
@@ -12,15 +12,15 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxBase import wxEvtHandler
|
from Base import EvtHandler
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxWindow(wxEvtHandler):
|
class Window(EvtHandler):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0, name=wx.wxPyPanelNameStr):
|
size=wx.DefaultSize, style=0, name=wx.PyPanelNameStr):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -36,27 +36,27 @@ class wxWindow(wxEvtHandler):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Center(self, direction=wx.wxBOTH):
|
def Center(self, direction=wx.BOTH):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def CenterOnParent(self, direction=wx.wxBOTH):
|
def CenterOnParent(self, direction=wx.BOTH):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def CenterOnScreen(self, direction=wx.wxBOTH):
|
def CenterOnScreen(self, direction=wx.BOTH):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Centre(self, direction=wx.wxBOTH):
|
def Centre(self, direction=wx.BOTH):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def CentreOnParent(self, direction=wx.wxBOTH):
|
def CentreOnParent(self, direction=wx.BOTH):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def CentreOnScreen(self, direction=wx.wxBOTH):
|
def CentreOnScreen(self, direction=wx.BOTH):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -92,8 +92,8 @@ class wxWindow(wxEvtHandler):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Create(self, parent, id, pos=wx.wxDefaultPosition,
|
def Create(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0, name=wx.wxPyPanelNameStr):
|
size=wx.DefaultSize, style=0, name=wx.PyPanelNameStr):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -402,7 +402,7 @@ class wxWindow(wxEvtHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def LoadFromResource(self, parent, resourceName, resourceTable=wx.NULL):
|
def LoadFromResource(self, parent, resourceName, resourceTable=wx.NULL):
|
||||||
"""Only if wxUSE_WX_RESOURCES."""
|
"""Only if USE_WX_RESOURCES."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Lower(self):
|
def Lower(self):
|
||||||
@@ -413,11 +413,11 @@ class wxWindow(wxEvtHandler):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Move(self, point, flags=wx.wxSIZE_USE_EXISTING):
|
def Move(self, point, flags=wx.SIZE_USE_EXISTING):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def MoveXY(self, x, y, flags=wx.wxSIZE_USE_EXISTING):
|
def MoveXY(self, x, y, flags=wx.SIZE_USE_EXISTING):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -589,11 +589,11 @@ class wxWindow(wxEvtHandler):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def SetPosition(self, pos, flags=wx.wxSIZE_USE_EXISTING):
|
def SetPosition(self, pos, flags=wx.SIZE_USE_EXISTING):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def SetRect(self, rect, sizeFlags=wx.wxSIZE_AUTO):
|
def SetRect(self, rect, sizeFlags=wx.SIZE_AUTO):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -605,7 +605,7 @@ class wxWindow(wxEvtHandler):
|
|||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def SetSize(self, x, y, width, height, sizeFlags=wx.wxSIZE_AUTO):
|
def SetSize(self, x, y, width, height, sizeFlags=wx.SIZE_AUTO):
|
||||||
""""""
|
""""""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -698,7 +698,7 @@ class wxWindow(wxEvtHandler):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxPyWindow(wxWindow):
|
class PyWindow(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -782,7 +782,7 @@ class wxPyWindow(wxWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class wxTopLevelWindow(wxWindow):
|
class TopLevelWindow(Window):
|
||||||
""""""
|
""""""
|
||||||
|
|
||||||
def Create(self):
|
def Create(self):
|
17
wxPython/wxPython/lib/PyCrust/wxd/d_stc.py
Normal file
17
wxPython/wxPython/lib/PyCrust/wxd/d_stc.py
Normal 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_)
|
17
wxPython/wxPython/lib/PyCrust/wxd/d_wx.py
Normal file
17
wxPython/wxPython/lib/PyCrust/wxd/d_wx.py
Normal 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_)
|
@@ -1,41 +1,30 @@
|
|||||||
"""Decorator utility for documentation and shell scripting.
|
"""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.
|
|
||||||
"""
|
|
||||||
|
|
||||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||||
__cvsid__ = "$Id$"
|
__cvsid__ = "$Id$"
|
||||||
__revision__ = "$Revision$"[11:-2]
|
__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
|
import inspect
|
||||||
|
|
||||||
def decorate(item, wxdict):
|
def decorate(real, decoration):
|
||||||
"""Use item to decorate the matching class in wxdict."""
|
"""Decorate real module with docstrings from decoration module."""
|
||||||
if inspect.isclass(item):
|
realdict = real.__dict__
|
||||||
decorateClass(item, wxdict)
|
for item in decoration.__dict__.itervalues():
|
||||||
elif inspect.isfunction(item):
|
if inspect.isclass(item):
|
||||||
decorateFunction(item, wxdict)
|
decorateClass(item, realdict)
|
||||||
|
elif inspect.isfunction(item):
|
||||||
|
decorateFunction(item, realdict)
|
||||||
|
|
||||||
def decorateClass(item, wxdict):
|
def decorateClass(item, realdict):
|
||||||
classname = item.__name__
|
classname = item.__name__
|
||||||
if classname in wxdict.keys():
|
if not classname.startswith('wx'):
|
||||||
wxclass = wxdict[classname]
|
classname = 'wx' + classname
|
||||||
## XXX Not sure if we'll need this or not, but it's here just in case.
|
try:
|
||||||
## pointername = classname + 'Ptr'
|
wxclass = realdict[classname]
|
||||||
## if pointer in wxdict:
|
except:
|
||||||
## wxclassPtr = wxdict[pointername]
|
print classname
|
||||||
|
else:
|
||||||
if item.__doc__:
|
if item.__doc__:
|
||||||
wxclass.__doc__ = item.__doc__
|
wxclass.__doc__ = item.__doc__
|
||||||
# Get attributes from only the item's local dictionary!
|
# Get attributes from only the item's local dictionary!
|
||||||
@@ -59,10 +48,10 @@ def decorateClass(item, wxdict):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def decorateFunction(item, wxdict):
|
def decorateFunction(item, realdict):
|
||||||
funcname = item.__name__
|
funcname = item.__name__
|
||||||
if funcname in wxdict.keys():
|
if funcname in realdict.keys():
|
||||||
func = wxdict[funcname]
|
func = realdict[funcname]
|
||||||
doc = getdoc(item, drop=False)
|
doc = getdoc(item, drop=False)
|
||||||
try:
|
try:
|
||||||
# Built-in functions have a read-only docstring. :-(
|
# Built-in functions have a read-only docstring. :-(
|
||||||
@@ -95,34 +84,3 @@ def getdoc(attr, drop=False):
|
|||||||
if tip != firstline:
|
if tip != firstline:
|
||||||
doc = '%s\n\n%s' % (tip, doc)
|
doc = '%s\n\n%s' % (tip, doc)
|
||||||
return 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__)
|
|
71
wxPython/wxPython/lib/PyCrust/wxd/gen.py
Normal file
71
wxPython/wxPython/lib/PyCrust/wxd/gen.py
Normal 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
|
@@ -12,16 +12,16 @@ __revision__ = "$Revision$"[11:-2]
|
|||||||
# C-language classes.
|
# C-language classes.
|
||||||
|
|
||||||
|
|
||||||
from wxControls import wxControl
|
from Controls import Control
|
||||||
import wxParameters as wx
|
import Parameters as wx
|
||||||
|
|
||||||
|
|
||||||
class wxStyledTextCtrl(wxControl):
|
class StyledTextCtrl(Control):
|
||||||
"""wxStyledTextCtrl class."""
|
"""StyledTextCtrl class."""
|
||||||
|
|
||||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
def __init__(self, parent, id, pos=wx.DefaultPosition,
|
||||||
size=wx.wxDefaultSize, style=0, name=wx.wxPySTCNameStr):
|
size=wx.DefaultSize, style=0, name=wx.PySTCNameStr):
|
||||||
"""Create a wxStyledTextCtrl instance."""
|
"""Create a StyledTextCtrl instance."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def AddRefDocument(self, docPointer):
|
def AddRefDocument(self, docPointer):
|
||||||
@@ -216,7 +216,7 @@ class wxStyledTextCtrl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def CmdKeyExecute(self, cmd):
|
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."""
|
constants."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -721,7 +721,7 @@ class wxStyledTextCtrl(wxControl):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def MarkerDefine(self, markerNumber, markerSymbol,
|
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
|
"""Set the symbol used for a particular marker number, and
|
||||||
optionally the fore and background colours."""
|
optionally the fore and background colours."""
|
||||||
pass
|
pass
|
||||||
@@ -1306,7 +1306,7 @@ class wxStyledTextCtrl(wxControl):
|
|||||||
|
|
||||||
def StyleSetFont(self, styleNum, font):
|
def StyleSetFont(self, styleNum, font):
|
||||||
"""Set style size, face, bold, italic, and underline
|
"""Set style size, face, bold, italic, and underline
|
||||||
attributes from a wxFont's attributes."""
|
attributes from a Font's attributes."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def StyleSetFontAttr(self, styleNum, size, faceName,
|
def StyleSetFontAttr(self, styleNum, size, faceName,
|
57
wxPython/wxPython/lib/PyCrust/wxd/wx_.py
Normal file
57
wxPython/wxPython/lib/PyCrust/wxd/wx_.py
Normal 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.
|
Reference in New Issue
Block a user