Updated to version 0.9a of PyCrust
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,43 +1,126 @@
|
||||
==================================================================
|
||||
CHANGES.txt is a list of code changes for each release of PyCrust.
|
||||
==================================================================
|
||||
=============
|
||||
CHANGES.txt
|
||||
=============
|
||||
|
||||
-----------------------------------------
|
||||
Changes made to each release of PyCrust
|
||||
-----------------------------------------
|
||||
|
||||
|
||||
0.9 (2/27/2003 to //2003)
|
||||
=========================
|
||||
|
||||
Added fontIncrease, fontDecrease, fontDefault signals, receivers and
|
||||
keybindings:
|
||||
|
||||
Ctrl+] Increase font size.
|
||||
Ctrl+[ Decrease font size.
|
||||
Ctrl+= Default font size.
|
||||
|
||||
Continued enhancement of the decorator capability to provide better
|
||||
documentation and docstrings for wxPython classes and functions.
|
||||
|
||||
Introduced new tabbed interface:
|
||||
|
||||
* Namespace
|
||||
* Session
|
||||
* Dispatcher
|
||||
* wxPython Docs
|
||||
* wxSTC Docs
|
||||
|
||||
Filling.tree now expands tuples as well as lists. (It should have done
|
||||
this all along, I just never noticed this before.)
|
||||
|
||||
Added this True/False test to all modules:
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
|
||||
0.8.2 (1/5/2003 to 2/26/2003)
|
||||
=============================
|
||||
|
||||
Wrapped sys.ps1, sys.ps2, and sys.ps3 in str(). (Thanks, Kieran
|
||||
Holland.)
|
||||
|
||||
Fixed minor things found by PyChecker.
|
||||
|
||||
Changed locals to use __main__.__dict__ and added code to clean up the
|
||||
namespace, making it as close to the regular Python environment as
|
||||
possible. This solves the problem of pickling and unpickling instances
|
||||
of classes defined in the shell.
|
||||
|
||||
Made shell.PasteAndRun() a little more forgiving when it finds a ps2
|
||||
prompt line with no trailing space, such when you copy code from a web
|
||||
page.
|
||||
|
||||
Improved autocomplete behavior by adding these to shell:
|
||||
self.AutoCompSetAutoHide(False)
|
||||
self.AutoCompStops(' .,;:([)]}\'"\\<>%^&+-=*/|`')
|
||||
|
||||
Added decor directory, decorator.py, stcDecor.py, and
|
||||
stcConstants.py. These all serve the purpose of adding docstrings to
|
||||
existing wxPython classes, in particular the wxStyledTextControl.
|
||||
|
||||
Added wrap.py, a command line utility for running a wxPython app with
|
||||
additional runtime-tools loaded, such as PyCrust (the only tool at
|
||||
this point).
|
||||
|
||||
Flushed the clipboard Cut/Copy operations so that selections will
|
||||
exist in the clipboard even after PyCrust has been closed.
|
||||
|
||||
Improved the suppression of docstrings for simple data types appearing
|
||||
in the namespace viewer.
|
||||
|
||||
Better handling of autocompletion with numeric types; no
|
||||
autocompletion when typing a dot after an integer. If the
|
||||
autocompletion is desired, type a space before the dot:
|
||||
|
||||
func = 3 .
|
||||
|
||||
More Filling!!! The namespace tree is now dynamically updated.
|
||||
|
||||
|
||||
0.8.1 (12/20/2002 to 12/25/2002)
|
||||
================================
|
||||
|
||||
Improved keyboard handling with Autocomplete active. You can now use
|
||||
Enter as well as Tab to select an item from the list.
|
||||
|
||||
=====
|
||||
0.8.1 (12/20/2002 to //2002)
|
||||
=====
|
||||
Improved keyboard handling with Autocomplete active. You can now
|
||||
use Enter as well as Tab to select an item from the list.
|
||||
-----
|
||||
Disabled autocomplete for lists of 2000 items or more. The current
|
||||
implementation of wxSTC can't handle lists this big.
|
||||
-----
|
||||
|
||||
Changed filling to always display docstrings for objects. This is
|
||||
useful for objects whose docstrings have been decorated, rather than
|
||||
coming directly from the source code. (Hmmm. Sounds like someone is
|
||||
doing some decorating. I wonder where that would be helpful. ;-)
|
||||
-----
|
||||
doing some decorating. I wonder where that would be helpful? ;-)
|
||||
|
||||
Fixed handling of icon. Added images.py file.
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.8 (10/29/2002 to 12/16/2002)
|
||||
=====
|
||||
0.8 (10/29/2002 to 12/16/2002)
|
||||
==============================
|
||||
|
||||
Added "help" to startup banner info.
|
||||
-----
|
||||
|
||||
Made all wx and stc imports explicit. No more import *.
|
||||
-----
|
||||
|
||||
Replaced use of wx's true and false with Python's True and False.
|
||||
-----
|
||||
Changed introspect.getRoot() to use tokenize module. This does a
|
||||
slightly better job than the previous parsing routine and the code
|
||||
is clearer.
|
||||
-----
|
||||
|
||||
Changed introspect.getRoot() to use tokenize module. This does a
|
||||
slightly better job than the previous parsing routine and the code is
|
||||
clearer.
|
||||
|
||||
Improved handling of whitespace and empty types during introspection.
|
||||
-----
|
||||
|
||||
Fixed cut/copy clipboard problem under Linux. (Robin Dunn rocks!!!)
|
||||
-----
|
||||
|
||||
Added shell.about() which works like this:
|
||||
|
||||
>>> shell.about()
|
||||
PyCrust Version: 0.8
|
||||
Shell Revision: 1.80
|
||||
@@ -45,277 +128,283 @@ Added shell.about() which works like this:
|
||||
Python Version: 2.2.2
|
||||
wxPython Version: 2.3.3.1
|
||||
Platform: linux2
|
||||
-----
|
||||
|
||||
Added copy plus and paste plus to shell menu.
|
||||
-----
|
||||
|
||||
Moved shell menu from shell.py to shellmenu.py.
|
||||
-----
|
||||
|
||||
Added sys.stdin.readlines() support.
|
||||
-----
|
||||
Added time.sleep() in readline() and OnIdle() event handler to free
|
||||
up the CPU.
|
||||
-----
|
||||
|
||||
Added time.sleep() in readline() and OnIdle() event handler to free up
|
||||
the CPU.
|
||||
|
||||
|
||||
=====
|
||||
0.7.2 (2/22/2002 to 8/27/2002)
|
||||
=====
|
||||
0.7.2 (2/22/2002 to 8/27/2002)
|
||||
==============================
|
||||
|
||||
Tweaked getAttributeNames() to pick up a few more attributes:
|
||||
'__bases__', '__class__', '__dict__', '__name__',
|
||||
'func_closure', 'func_code', 'func_defaults', 'func_dict',
|
||||
'func_doc', 'func_globals', 'func_name'
|
||||
-----
|
||||
|
||||
'__bases__', '__class__', '__dict__', '__name__', 'func_closure',
|
||||
'func_code', 'func_defaults', 'func_dict', 'func_doc',
|
||||
'func_globals', 'func_name'
|
||||
|
||||
Added a tests directory and unit tests.
|
||||
-----
|
||||
Improved support for empty types in the shell: [], () and {} as far
|
||||
as when call tips and autocompletion are available.
|
||||
|
||||
Improved support for empty types in the shell: [], () and {} as far as
|
||||
when call tips and autocompletion are available.
|
||||
|
||||
Added support for the other triple string - ''''''.
|
||||
-----
|
||||
|
||||
Refactored introspect.py to improve testability.
|
||||
-----
|
||||
|
||||
Improved call tips for unbound methods by leaving the "self"
|
||||
parameter, since unbound methods require an instance be passed.
|
||||
-----
|
||||
|
||||
Fixed call tip bug where a tip was displayed when a "(" was typed
|
||||
after an object that wasn't callable.
|
||||
-----
|
||||
|
||||
Fixed getAllAttributeNames when str(object) fails.
|
||||
-----
|
||||
|
||||
Added brace highlighting. (Thank you, Kevin Altis.)
|
||||
-----
|
||||
|
||||
Fixed problem displaying unicode objects in PyFilling.
|
||||
-----
|
||||
Changed how filling.py checks for expandable objects.
|
||||
Lists are now expandable objects.
|
||||
-----
|
||||
Made the key handling more robust when there is an active text
|
||||
selection that includes text prior to the last primary prompt.
|
||||
Thanks to Raul Cota for pointing this out.
|
||||
-----
|
||||
|
||||
Changed how filling.py checks for expandable objects. Lists are now
|
||||
expandable objects.
|
||||
|
||||
Made the key handling more robust when there is an active text
|
||||
selection that includes text prior to the last primary prompt. Thanks
|
||||
to Raul Cota for pointing this out.
|
||||
|
||||
Fixed wxSTC problem with brace highlighting and non-us keyboards.
|
||||
(Thank you for the patch, Jean-Michel Fauth.)
|
||||
-----
|
||||
|
||||
Added busy = wxBusyCursor() to key point in shell and filling.
|
||||
-----
|
||||
|
||||
Added OnCloseWindow handler to ShellFrame and CrustFrame.
|
||||
-----
|
||||
|
||||
Default to SetWrapMode(1) for shell and namespace viewer.
|
||||
-----
|
||||
|
||||
Added shell.wrap() and shell.zoom().
|
||||
-----
|
||||
|
||||
Added Raul Cota autoCompleteKeys hooks.
|
||||
-----
|
||||
|
||||
Cleaned up various little key handling bugs.
|
||||
-----
|
||||
|
||||
Changed input methods to get values from shell, rather than dialog
|
||||
boxes. Renamed readIn to readline and readRaw to raw_input.
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.7.1 (12/12/2001 to 2/21/2002)
|
||||
=====
|
||||
0.7.1 (12/12/2001 to 2/21/2002)
|
||||
===============================
|
||||
|
||||
Fixed OnChar() issues effecting European keyboards, as reported by
|
||||
Jean-Michel Fauth.
|
||||
-----
|
||||
|
||||
Fixed introspect.py issue with xmlrpc objects reported by Kevin Altis.
|
||||
-----
|
||||
|
||||
Fixed some introspect/PyFilling issues with regard to Python 2.2.
|
||||
-----
|
||||
|
||||
Fixed font background color as reported by Keith J. Farmer. (Thanks)
|
||||
-----
|
||||
|
||||
Fixed problem with call tips and autocompletion inside multiline
|
||||
commands as report by Kevin Altis.
|
||||
-----
|
||||
|
||||
Improved OnKeyDown handling of cut/copy/paste operations based on
|
||||
feedback from Syver Enstad. (Thanks)
|
||||
-----
|
||||
|
||||
Added a shell.help() method to display some help info.
|
||||
-----
|
||||
|
||||
Changed sort of items in the namespace viewer to case insensitive.
|
||||
-----
|
||||
Changed attributes.sort(lambda x, y: cmp(x.upper(), y.upper())) in
|
||||
|
||||
Changed attributes.sort(lambda x, y: cmp(x.upper(), y.upper())) in
|
||||
advance of an upcoming fix to an autocompletion matching bug in wxSTC.
|
||||
-----
|
||||
|
||||
Improved support for ZODB by allowing namespace drilldown into BTrees.
|
||||
-----
|
||||
Added shell.PasteAndRun() to support pasting multiple commands into
|
||||
|
||||
Added shell.PasteAndRun() to support pasting multiple commands into
|
||||
the shell from the clipboard. Ctrl+Shift+V or v.
|
||||
-----
|
||||
|
||||
Enter now always processes a command (or copies down a previous one.)
|
||||
To insert a line break, press Ctrl+Enter.
|
||||
-----
|
||||
|
||||
Escape key clears the current, unexecuted command.
|
||||
-----
|
||||
|
||||
History retrieval changed to replace current command. Added new keys
|
||||
to insert from history - Shift+Up and Shift+Down.
|
||||
-----
|
||||
|
||||
Better call tips on objects with __call__ methods.
|
||||
-----
|
||||
|
||||
Improved call tip positioning calculation.
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.7 (10/15/2001 to 12/11/2001)
|
||||
=====
|
||||
Changed how command history retrieval functions work.
|
||||
Added Alt-P, Alt-N as keybindings for Retrieve-Previous, Retrieve-Next.
|
||||
-----
|
||||
0.7 (10/15/2001 to 12/11/2001)
|
||||
==============================
|
||||
|
||||
Changed how command history retrieval functions work. Added Alt-P,
|
||||
Alt-N as keybindings for Retrieve-Previous, Retrieve-Next.
|
||||
|
||||
Added full support for mult-line commands, similar to IDLE.
|
||||
-----
|
||||
|
||||
Changed introspect.getAttributeNames() to do a case insensitive sort.
|
||||
-----
|
||||
Changed Cut/Copy/Paste to deal with prompts intelligently. Cut and Copy
|
||||
remove all prompts. Paste can handle prompted or not-prompted text.
|
||||
-----
|
||||
Added CopyWithPrompts() method attached to Ctrl-Shift-C for those times
|
||||
when you really do want all the prompts left intact.
|
||||
-----
|
||||
|
||||
Changed Cut/Copy/Paste to deal with prompts intelligently. Cut and
|
||||
Copy remove all prompts. Paste can handle prompted or not-prompted
|
||||
text.
|
||||
|
||||
Added CopyWithPrompts() method attached to Ctrl-Shift-C for those
|
||||
times when you really do want all the prompts left intact.
|
||||
|
||||
Improved handling of the shell's read-only zone.
|
||||
-----
|
||||
|
||||
Changed CrustFrame.__init__ parameter spec to include all parameters
|
||||
allowed by a wxFrame.
|
||||
-----
|
||||
|
||||
Changed FillingText to be read-only.
|
||||
-----
|
||||
|
||||
Renamed PyCrust.py to PyCrustApp.py to eliminate package/module name
|
||||
conflicts that kept you from doing "from PyCrust import shell" inside
|
||||
conflicts that kept you from doing "from PyCrust import shell" inside
|
||||
files located in the PyCrust directory.
|
||||
-----
|
||||
Renamed PyFilling.py to PyFillingApp.py and PyShell.py to PyShellApp.py
|
||||
to maintain consistency.
|
||||
-----
|
||||
|
||||
Renamed PyFilling.py to PyFillingApp.py and PyShell.py to
|
||||
PyShellApp.py to maintain consistency.
|
||||
|
||||
Removed the __date__ property from all modules.
|
||||
-----
|
||||
|
||||
Fixed bug in introspect.getCallTip(), reported by Kevin Altis.
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.6.1 (9/19/2001 to 10/12/2001)
|
||||
=====
|
||||
Changed Shell.run() to always position to the end of existing text, as
|
||||
===============================
|
||||
|
||||
Changed Shell.run() to always position to the end of existing text, as
|
||||
suggested by Raul Cota.
|
||||
-----
|
||||
Changed introspect.getAllAttributeNames() to break circular references in
|
||||
object.__class__, which occurs in Zope/ZODB extension classes.
|
||||
-----
|
||||
Changed filling.FillingTree.getChildren() to introspect extension classes.
|
||||
-----
|
||||
Fixed minor bugs in introspect.getCallTip() that were interfering with call
|
||||
tips for Zope/ZODB extension class methods.
|
||||
-----
|
||||
In preparation for wxPython 2.3.2, added code to fix a font sizing problem.
|
||||
Versions of wxPython prior to 2.3.2 had a sizing bug on Win platform where
|
||||
the font was 2 points larger than what was specified.
|
||||
-----
|
||||
Added a hack to introspect.getAllAttributeNames() to "wake up" ZODB objects
|
||||
that are asleep - in a "ghost" state. Otherwise it returns incomplete info.
|
||||
-----
|
||||
|
||||
Changed introspect.getAllAttributeNames() to break circular references
|
||||
in object.__class__, which occurs in Zope/ZODB extension classes.
|
||||
|
||||
Changed filling.FillingTree.getChildren() to introspect extension
|
||||
classes.
|
||||
|
||||
Fixed minor bugs in introspect.getCallTip() that were interfering with
|
||||
call tips for Zope/ZODB extension class methods.
|
||||
|
||||
In preparation for wxPython 2.3.2, added code to fix a font sizing
|
||||
problem. Versions of wxPython prior to 2.3.2 had a sizing bug on Win
|
||||
platform where the font was 2 points larger than what was specified.
|
||||
|
||||
Added a hack to introspect.getAllAttributeNames() to "wake up" ZODB
|
||||
objects that are asleep - in a "ghost" state. Otherwise it returns
|
||||
incomplete info.
|
||||
|
||||
|
||||
=====
|
||||
0.6 (8/21/2001 to 9/12/2001)
|
||||
=====
|
||||
0.6 (8/21/2001 to 9/12/2001)
|
||||
============================
|
||||
|
||||
Added PyFilling.py and filling.py.
|
||||
-----
|
||||
PyShell.py and PyFilling.py can now be run standalone, as well as PyCrust.py.
|
||||
-----
|
||||
|
||||
PyShell.py and PyFilling.py can now be run standalone, as well as
|
||||
PyCrust.py.
|
||||
|
||||
Added crust.py and moved some code from PyCrust.py to it.
|
||||
-----
|
||||
|
||||
Added command history retrieval features submitted by Richie Hindle.
|
||||
-----
|
||||
Changed shell.write() to replace line endings with OS-specific endings.
|
||||
Changed shell.py and interpreter.py to use os.linesep in strings having
|
||||
hardcoded line endings.
|
||||
-----
|
||||
Added shell.redirectStdin(), shell.redirectStdout() and
|
||||
shell.redirectStderr() to allow the surrounding app to toggle requests that
|
||||
the specified sys.std* be redirected to the shell. These can also be run
|
||||
from within the shell itself, of course.
|
||||
-----
|
||||
The shell now adds the current working directory "." to the search path:
|
||||
|
||||
Changed shell.write() to replace line endings with OS-specific
|
||||
endings. Changed shell.py and interpreter.py to use os.linesep in
|
||||
strings having hardcoded line endings.
|
||||
|
||||
Added shell.redirectStdin(), shell.redirectStdout() and
|
||||
shell.redirectStderr() to allow the surrounding app to toggle requests
|
||||
that the specified sys.std* be redirected to the shell. These can also
|
||||
be run from within the shell itself, of course.
|
||||
|
||||
The shell now adds the current working directory "." to the search
|
||||
path:
|
||||
|
||||
sys.path.insert(0, os.curdir)
|
||||
-----
|
||||
|
||||
Added support for distutils installations.
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.5.4 (8/17/2001 to 8/20/2001)
|
||||
=====
|
||||
==============================
|
||||
|
||||
Changed default font size under *nix to:
|
||||
|
||||
'size' : 12,
|
||||
'lnsize' : 10,
|
||||
-----
|
||||
Changed Shell to expect a parameter referencing an Interpreter class, rather
|
||||
than an intepreter instance, to facilitate subclassing of Interpreter, which
|
||||
effectively broke when the Editor class was eliminated.
|
||||
-----
|
||||
|
||||
Changed Shell to expect a parameter referencing an Interpreter class,
|
||||
rather than an intepreter instance, to facilitate subclassing of
|
||||
Interpreter, which effectively broke when the Editor class was
|
||||
eliminated.
|
||||
|
||||
Fixed PyCrustAlaCarte.py, which had been broken by previous changes.
|
||||
|
||||
Created InterpreterAlaCarte class as an example for use in the demo.
|
||||
-----
|
||||
Split PyCrust.py into PyCrust.py and PyShell.py in anticipation of PyFilling.
|
||||
-----
|
||||
|
||||
Split PyCrust.py into PyCrust.py and PyShell.py in anticipation of
|
||||
PyFilling.
|
||||
|
||||
|
||||
=====
|
||||
0.5.3 (8/16/2001)
|
||||
=====
|
||||
=================
|
||||
|
||||
Added patch to PyCrust.py to fix wxPython bug:
|
||||
wxID_SELECTALL = NewId() # This *should* be defined by wxPython.
|
||||
-----
|
||||
|
||||
wxID_SELECTALL = NewId() # This *should* be defined by wxPython.
|
||||
|
||||
|
||||
=====
|
||||
0.5.2 (8/14/2001 to 8/15/2001)
|
||||
=====
|
||||
==============================
|
||||
|
||||
Shortened module names by dropping "PyCrust" as a prefix.
|
||||
-----
|
||||
|
||||
Changed version to VERSION in version module.
|
||||
-----
|
||||
|
||||
Added Options menu to PyCrust application.
|
||||
-----
|
||||
|
||||
Eliminated the Editor class (and editor module) by merging with Shell.
|
||||
This means that Shell "is a" wxStyledTextCtrl rather than "has a".
|
||||
There just wasn't enough non-gui code to justify the separation. Plus,
|
||||
Shell will be much easier for gui toolkits/designers to deal with now.
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.5.1 (8/10/2001 to 8/14/2001)
|
||||
=====
|
||||
==============================
|
||||
|
||||
Added introspect module.
|
||||
|
||||
Moved some functionality from PyCrustInterp to introspect.
|
||||
-----
|
||||
Changed introspect.getRoot() to no longer remove whitespace from the command.
|
||||
This was a remnant of a previous approach that, when left as part of the
|
||||
current approach, turned out to be a really bad thing.
|
||||
-----
|
||||
Changed introspect.getRoot() to allow commands of '', "", """""", [], (),
|
||||
and {} to pass through. This allows you to type them, followed by a dot, and
|
||||
get autocomplete options on them.
|
||||
-----
|
||||
Changed introspect.getRoot() to identify some situations where strings
|
||||
|
||||
Changed introspect.getRoot() to no longer remove whitespace from the
|
||||
command. This was a remnant of a previous approach that, when left as
|
||||
part of the current approach, turned out to be a really bad thing.
|
||||
|
||||
Changed introspect.getRoot() to allow commands of '', "", """""", [],
|
||||
(), and {} to pass through. This allows you to type them, followed by
|
||||
a dot, and get autocomplete options on them.
|
||||
|
||||
Changed introspect.getRoot() to identify some situations where strings
|
||||
shouldn't be considered roots. For example:
|
||||
|
||||
>>> import PyCrust # To illustrate the potential problem.
|
||||
>>> len('PyCrust.py')
|
||||
|
||||
Typing the dot at the end of "PyCrust" in the second line above should NOT
|
||||
result in an autocompletion list because "PyCrust" is part of a string in
|
||||
this context, not a reference to the PyCrust module object. Similar reasoning
|
||||
applies to call tips. For example:
|
||||
Typing the dot at the end of "PyCrust" in the second line above should
|
||||
NOT result in an autocompletion list because "PyCrust" is part of a
|
||||
string in this context, not a reference to the PyCrust module
|
||||
object. Similar reasoning applies to call tips. For example:
|
||||
|
||||
>>> len('dir(')
|
||||
|
||||
Typing the left paren at the end of "dir" should NOT result in a call tip.
|
||||
Typing the left paren at the end of "dir" should NOT result in a call
|
||||
tip.
|
||||
|
||||
Both features now behave properly in the examples given. However, there is
|
||||
still the case where whitespace precedes the potential root and that is NOT
|
||||
handled properly. For example:
|
||||
Both features now behave properly in the examples given. However,
|
||||
there is still the case where whitespace precedes the potential root
|
||||
and that is NOT handled properly. For example:
|
||||
|
||||
>>> len('this is a dir(')
|
||||
|
||||
@@ -324,81 +413,96 @@ and
|
||||
>>> len('This is PyCrust.py')
|
||||
|
||||
More code needs to be written to handle more complex situations.
|
||||
-----
|
||||
|
||||
Added locals=None parameter to Shell.__init__().
|
||||
-----
|
||||
Added support for magic attribute retrieval. Users can change this with:
|
||||
|
||||
Added support for magic attribute retrieval. Users can change this
|
||||
with:
|
||||
|
||||
>>> shell.editor.autoCompleteIncludeMagic = 0
|
||||
-----
|
||||
Added the ability to set filters on auto completion to exclude attributes
|
||||
prefixed with a single or double underscore. Users can exclude one or the
|
||||
other or both with:
|
||||
|
||||
Added the ability to set filters on auto completion to exclude
|
||||
attributes prefixed with a single or double underscore. Users can
|
||||
exclude one or the other or both with:
|
||||
|
||||
>>> shell.editor.autoCompleteExcludeSingle = 1
|
||||
>>> shell.editor.autoCompleteExcludeDouble = 1
|
||||
-----
|
||||
|
||||
|
||||
=====
|
||||
0.5 (8/8/2001)
|
||||
=====
|
||||
0.5 (8/8/2001)
|
||||
==============
|
||||
|
||||
Mostly just a final version change before creating a release.
|
||||
|
||||
|
||||
=====
|
||||
0.4 (8/4/2001 to 8/7/2001)
|
||||
=====
|
||||
0.4 (8/4/2001 to 8/7/2001)
|
||||
==========================
|
||||
|
||||
Changed version/revision handling.
|
||||
|
||||
Fixed bugs.
|
||||
|
||||
|
||||
=====
|
||||
0.3 (8/2/2001 to 8/3/2001)
|
||||
=====
|
||||
0.3 (8/2/2001 to 8/3/2001)
|
||||
==========================
|
||||
|
||||
Removed lots of cruft.
|
||||
|
||||
Added lots of docstrings.
|
||||
|
||||
Imported to CVS repository at SourceForge.
|
||||
|
||||
Added call tips.
|
||||
|
||||
|
||||
=====
|
||||
0.2 (7/30/2001 to 8/2/2001)
|
||||
=====
|
||||
0.2 (7/30/2001 to 8/2/2001)
|
||||
===========================
|
||||
|
||||
Renamed several files.
|
||||
|
||||
Added command autocompletion.
|
||||
|
||||
Added menus to PyCrust.py: File, Edit and Help
|
||||
|
||||
Added sample applications: PyCrustAlaCarte.py, PyCrustAlaMode.py, and
|
||||
PyCrustMinimus.py.
|
||||
|
||||
|
||||
=====
|
||||
0.1 (7/1/2001 to 7/19/2001)
|
||||
=====
|
||||
0.1 (7/1/2001 to 7/19/2001)
|
||||
===========================
|
||||
|
||||
Added basic syntax coloring much like Boa.
|
||||
|
||||
Added read-only logging much like IDLE.
|
||||
Can retrieve a previous command by putting the cursor back on that line and
|
||||
hitting enter.
|
||||
Stdin and raw_input operate properly so you can now do help() and license()
|
||||
without hanging.
|
||||
Redefined "quit", "exit", and "close" to display a better-than-nothing
|
||||
|
||||
Can retrieve a previous command by putting the cursor back on that
|
||||
line and hitting enter.
|
||||
|
||||
Stdin and raw_input operate properly so you can now do help() and
|
||||
license() without hanging.
|
||||
|
||||
Redefined "quit", "exit", and "close" to display a better-than-nothing
|
||||
response.
|
||||
|
||||
Home key honors the prompt.
|
||||
|
||||
Created SourceForge account, but nothing was posted.
|
||||
|
||||
|
||||
==================================
|
||||
In the beginning, there was pie... (7/1/2001)
|
||||
==================================
|
||||
Blame it all on IDLE, Boa and PythonWin. I was using all three, got frustrated
|
||||
with their dissimilarities, and began to let everyone know how I felt. At the
|
||||
same time, Scintilla looked like an interesting tool to build a shell around.
|
||||
And while I didn't receive much in the way of positive feedback, let alone
|
||||
encouragement, I just couldn't let go of the idea of a Scintilla-based Python
|
||||
shell. Then the PythonCard project got to the point where they were talking
|
||||
about including a shell in their development environment. That was all the
|
||||
incentive I needed. PyCrust had to happen...
|
||||
=============================================
|
||||
|
||||
Blame it all on IDLE, Boa and PythonWin. I was using all three, got
|
||||
frustrated with their dissimilarities, and began to let everyone know
|
||||
how I felt. At the same time, Scintilla looked like an interesting
|
||||
tool to build a shell around. And while I didn't receive much in the
|
||||
way of positive feedback, let alone encouragement, I just couldn't let
|
||||
go of the idea of a Scintilla-based Python shell. Then the PythonCard
|
||||
project got to the point where they were talking about including a
|
||||
shell in their development environment. That was all the incentive I
|
||||
needed. PyCrust had to happen...
|
||||
|
||||
|
||||
===============
|
||||
CVS Information
|
||||
===============
|
||||
$Date$
|
||||
|
@@ -1,24 +1,37 @@
|
||||
|
||||
"""PyCrustApp is a python shell and namespace browser application."""
|
||||
|
||||
# The next two lines, and the other code below that makes use of
|
||||
# ``__main__`` and ``original``, serve the purpose of cleaning up the
|
||||
# main namespace to look as much as possible like the regular Python
|
||||
# shell environment.
|
||||
import __main__
|
||||
original = __main__.__dict__.keys()
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
from wxPython import wx
|
||||
from crust import CrustFrame
|
||||
|
||||
True, False = 1, 0
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class App(wx.wxApp):
|
||||
"""PyCrust standalone application."""
|
||||
|
||||
def OnInit(self):
|
||||
from wxPython import wx
|
||||
wx.wxInitAllImageHandlers()
|
||||
locals = {'__app__': 'PyCrust Standalone Application'}
|
||||
locals = __main__.__dict__
|
||||
from crust import CrustFrame
|
||||
self.crustFrame = CrustFrame(locals=locals)
|
||||
self.crustFrame.SetSize((750, 525))
|
||||
self.crustFrame.Show(True)
|
||||
self.crustFrame.SetSize((800, 600))
|
||||
self.crustFrame.Show()
|
||||
self.SetTopWindow(self.crustFrame)
|
||||
# Add the application object to the sys module's namespace.
|
||||
# This allows a shell user to do:
|
||||
@@ -26,14 +39,22 @@ class App(wx.wxApp):
|
||||
# >>> sys.application.whatever
|
||||
import sys
|
||||
sys.application = self
|
||||
return True
|
||||
return 1
|
||||
|
||||
|
||||
def main():
|
||||
locals = __main__.__dict__
|
||||
keepers = original
|
||||
keepers.append('App')
|
||||
for key in locals.keys():
|
||||
if key not in keepers:
|
||||
del locals[key]
|
||||
application = App(0)
|
||||
if locals.has_key('App') and locals['App'] is App:
|
||||
del locals['App']
|
||||
if locals.has_key('__main__') and locals['__main__'] is __main__:
|
||||
del locals['__main__']
|
||||
application.MainLoop()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
@@ -1,3 +1,4 @@
|
||||
|
||||
"""PyFillingApp is a python namespace inspection application."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
@@ -10,25 +11,36 @@ application = None
|
||||
import filling
|
||||
|
||||
# These are imported just to have something interesting to inspect.
|
||||
from PyCrust import crust
|
||||
from PyCrust import interpreter
|
||||
from PyCrust import introspect
|
||||
from PyCrust import pseudo
|
||||
from PyCrust import shell
|
||||
import crust
|
||||
import interpreter
|
||||
import introspect
|
||||
import pseudo
|
||||
import shell
|
||||
|
||||
import sys
|
||||
from wxPython import wx
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class App(filling.App):
|
||||
def OnInit(self):
|
||||
filling.App.OnInit(self)
|
||||
root = self.fillingFrame.filling.fillingTree.root
|
||||
self.fillingFrame.filling.fillingTree.Expand(root)
|
||||
return 1
|
||||
|
||||
|
||||
def main():
|
||||
"""Create and run the application."""
|
||||
global application
|
||||
application = filling.App(0)
|
||||
root = application.fillingFrame.filling.fillingTree.root
|
||||
application.fillingFrame.filling.fillingTree.Expand(root)
|
||||
application = App(0)
|
||||
application.MainLoop()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
@@ -1,24 +1,37 @@
|
||||
|
||||
"""PyShellApp is a python shell application."""
|
||||
|
||||
# The next two lines, and the other code below that makes use of
|
||||
# ``__main__`` and ``original``, serve the purpose of cleaning up the
|
||||
# main namespace to look as much as possible like the regular Python
|
||||
# shell environment.
|
||||
import __main__
|
||||
original = __main__.__dict__.keys()
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
from wxPython import wx
|
||||
from shell import ShellFrame
|
||||
|
||||
True, False = 1, 0
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class App(wx.wxApp):
|
||||
"""PyShell standalone application."""
|
||||
|
||||
def OnInit(self):
|
||||
from wxPython import wx
|
||||
wx.wxInitAllImageHandlers()
|
||||
locals = {'__app__': 'PyShell Standalone Application'}
|
||||
locals = __main__.__dict__
|
||||
from shell import ShellFrame
|
||||
self.shellFrame = ShellFrame(locals=locals)
|
||||
self.shellFrame.SetSize((750, 525))
|
||||
self.shellFrame.Show(True)
|
||||
self.shellFrame.Show()
|
||||
self.SetTopWindow(self.shellFrame)
|
||||
self.shellFrame.shell.SetFocus()
|
||||
# Add the application object to the sys module's namespace.
|
||||
@@ -27,20 +40,22 @@ class App(wx.wxApp):
|
||||
# >>> sys.application.whatever
|
||||
import sys
|
||||
sys.application = self
|
||||
|
||||
# exec a startup script if one is given on the command line
|
||||
if len(sys.argv) > 1:
|
||||
self.shellFrame.shell.execStartupScript(sys.argv[1])
|
||||
|
||||
return True
|
||||
return 1
|
||||
|
||||
|
||||
def main():
|
||||
locals = __main__.__dict__
|
||||
keepers = original
|
||||
keepers.append('App')
|
||||
for key in locals.keys():
|
||||
if key not in keepers:
|
||||
del locals[key]
|
||||
application = App(0)
|
||||
if locals.has_key('App') and locals['App'] is App:
|
||||
del locals['App']
|
||||
if locals.has_key('__main__') and locals['__main__'] is __main__:
|
||||
del locals['__main__']
|
||||
application.MainLoop()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
|
||||
|
@@ -1,68 +1,79 @@
|
||||
PyCrust - The Flakiest Python Shell
|
||||
=====================================
|
||||
PyCrust - The Flakiest Python Shell
|
||||
=====================================
|
||||
|
||||
Half-baked by Patrick K. O'Brien (pobrien@orbtech.com)
|
||||
|
||||
==============================================================
|
||||
* Orbtech - "Your source for Python programming expertise." *
|
||||
* Sample all our half-baked Python goods at www.orbtech.com. *
|
||||
==============================================================
|
||||
Orbtech - "Your source for Python programming expertise."
|
||||
Sample all our half-baked Python goods at www.orbtech.com.
|
||||
|
||||
|
||||
What is PyCrust?
|
||||
----------------
|
||||
|
||||
PyCrust is an interactive Python environment written in Python.
|
||||
PyCrust components can run standalone or be integrated into other
|
||||
development environments and/or other Python applications.
|
||||
|
||||
PyCrust comes with an interactive Python shell (PyShell), an
|
||||
interactive namespace/object tree control (PyFilling) and an
|
||||
PyCrust comes with an interactive Python shell (PyShell), an
|
||||
interactive namespace/object tree control (PyFilling) and an
|
||||
integrated, split-window combination of the two (PyCrust).
|
||||
|
||||
|
||||
What is PyCrust good for?
|
||||
-------------------------
|
||||
Have you ever tried to bake a pie without one? Well, you
|
||||
shouldn't build a Python program without a PyCrust either.
|
||||
|
||||
Have you ever tried to bake a pie without one? Well, you shouldn't
|
||||
build a Python program without a PyCrust either.
|
||||
|
||||
|
||||
What else do I need to use PyCrust?
|
||||
-----------------------------------
|
||||
PyCrust requires Python 2.1 or later, and wxPython 2.3.1 or later.
|
||||
|
||||
PyCrust requires Python 2.1.3 or later, and wxPython 2.4 or later.
|
||||
PyCrust uses wxPython and the Scintilla wrapper (wxStyledTextCtrl).
|
||||
Python is available at http://www.python.org/.
|
||||
wxPython is available at http://www.wxpython.org/.
|
||||
Python is available at http://www.python.org/. wxPython is available
|
||||
at http://www.wxpython.org/.
|
||||
|
||||
|
||||
Where can I get the latest version of PyCrust?
|
||||
----------------------------------------------
|
||||
The latest production version ships with wxPython.
|
||||
The latest developer version is available in CVS at:
|
||||
|
||||
The latest production version ships with wxPython. The latest
|
||||
developer version is available in CVS at:
|
||||
http://sourceforge.net/cvs/?group_id=31263
|
||||
|
||||
|
||||
Where is the PyCrust project hosted?
|
||||
------------------------------------
|
||||
|
||||
At SourceForge, of course. The SourceForge summary page:
|
||||
http://sourceforge.net/projects/pycrust/
|
||||
|
||||
|
||||
I found a bug in PyCrust, what do I do with it?
|
||||
-----------------------------------------------
|
||||
|
||||
You can send it to me at pobrien@orbtech.com.
|
||||
|
||||
|
||||
I want a new feature added to PyCrust. Will you do it?
|
||||
------------------------------------------------------
|
||||
Flattery and money will get you anything. Short of that, you
|
||||
can send me a request and I'll see what I can do.
|
||||
|
||||
Flattery and money will get you anything. Short of that, you can send
|
||||
me a request and I'll see what I can do.
|
||||
|
||||
|
||||
Does PyCrust have a mailing list full of wonderful people?
|
||||
----------------------------------------------------------
|
||||
|
||||
As a matter of fact, we do. Join the PyCrust mailing lists at:
|
||||
http://sourceforge.net/mail/?group_id=31263
|
||||
|
||||
|
||||
What is the CVS information for this README file?
|
||||
-------------------------------------------------
|
||||
|
||||
$Date$
|
||||
$Revision$
|
||||
$Id$
|
||||
|
@@ -11,6 +11,12 @@ from shell import Shell
|
||||
from shellmenu import ShellMenu
|
||||
from version import VERSION
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class Crust(wx.wxSplitterWindow):
|
||||
"""PyCrust Crust based on wxSplitterWindow."""
|
||||
@@ -19,24 +25,89 @@ class Crust(wx.wxSplitterWindow):
|
||||
revision = __revision__
|
||||
|
||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxSP_3D, name='Crust Window',
|
||||
rootObject=None, rootLabel=None, rootIsNamespace=1,
|
||||
intro='', locals=None,
|
||||
size=wx.wxDefaultSize, style=wx.wxSP_3D,
|
||||
name='Crust Window', rootObject=None, rootLabel=None,
|
||||
rootIsNamespace=True, intro='', locals=None,
|
||||
InterpClass=None, *args, **kwds):
|
||||
"""Create a PyCrust Crust instance."""
|
||||
wx.wxSplitterWindow.__init__(self, parent, id, pos, size, style, name)
|
||||
self.shell = Shell(parent=self, introText=intro,
|
||||
locals=locals, InterpClass=InterpClass,
|
||||
*args, **kwds)
|
||||
self.filling = Filling(parent=self,
|
||||
rootObject=self.shell.interp.locals,
|
||||
rootLabel=rootLabel, rootIsNamespace=1)
|
||||
"""Add 'filling' to the interpreter's locals."""
|
||||
if rootObject is None:
|
||||
rootObject = self.shell.interp.locals
|
||||
self.notebook = wx.wxNotebook(parent=self, id=-1)
|
||||
self.shell.interp.locals['notebook'] = self.notebook
|
||||
self.filling = Filling(parent=self.notebook,
|
||||
rootObject=rootObject,
|
||||
rootLabel=rootLabel,
|
||||
rootIsNamespace=rootIsNamespace)
|
||||
# Add 'filling' to the interpreter's locals.
|
||||
self.shell.interp.locals['filling'] = self.filling
|
||||
self.SplitHorizontally(self.shell, self.filling, 300)
|
||||
## self.notebook.AddPage(pPage=self.filling, strText='Namespace', bSelect=True)
|
||||
self.notebook.AddPage(self.filling, 'Namespace', True)
|
||||
self.sessionlisting = SessionListing(parent=self.notebook)
|
||||
self.notebook.AddPage(self.sessionlisting, 'Session')
|
||||
self.dispatcherlisting = DispatcherListing(parent=self.notebook)
|
||||
self.notebook.AddPage(self.dispatcherlisting, 'Dispatcher')
|
||||
from decor import wxDecor
|
||||
self.wxdocs = Filling(parent=self.notebook,
|
||||
rootObject=wxDecor,
|
||||
rootLabel='wx',
|
||||
rootIsNamespace=False,
|
||||
static=True)
|
||||
self.notebook.AddPage(self.wxdocs, 'wxPython Docs')
|
||||
from decor import stcDecor
|
||||
self.stcdocs = Filling(parent=self.notebook,
|
||||
rootObject=stcDecor.wxStyledTextCtrl,
|
||||
rootLabel='wxStyledTextCtrl',
|
||||
rootIsNamespace=False,
|
||||
static=True)
|
||||
self.notebook.AddPage(self.stcdocs, 'wxSTC Docs')
|
||||
self.SplitHorizontally(self.shell, self.notebook, 300)
|
||||
self.SetMinimumPaneSize(1)
|
||||
|
||||
|
||||
class SessionListing(wx.wxTextCtrl):
|
||||
"""Text control containing all commands for session."""
|
||||
|
||||
def __init__(self, parent=None, id=-1):
|
||||
import dispatcher
|
||||
style = wx.wxTE_MULTILINE | wx.wxTE_READONLY | \
|
||||
wx.wxTE_RICH2 | wx.wxTE_DONTWRAP
|
||||
wx.wxTextCtrl.__init__(self, parent=parent, id=id, style=style)
|
||||
dispatcher.connect(receiver=self.push, signal='Interpreter.push')
|
||||
|
||||
def push(self, command, more):
|
||||
"""Receiver for Interpreter.push signal."""
|
||||
if command and not more:
|
||||
self.SetInsertionPointEnd()
|
||||
start, end = self.GetSelection()
|
||||
if start != end:
|
||||
self.SetSelection(0, 0)
|
||||
self.AppendText(command + '\n')
|
||||
|
||||
|
||||
class DispatcherListing(wx.wxTextCtrl):
|
||||
"""Text control containing all dispatches for session."""
|
||||
|
||||
def __init__(self, parent=None, id=-1):
|
||||
import dispatcher
|
||||
style = wx.wxTE_MULTILINE | wx.wxTE_READONLY | \
|
||||
wx.wxTE_RICH2 | wx.wxTE_DONTWRAP
|
||||
wx.wxTextCtrl.__init__(self, parent=parent, id=id, style=style)
|
||||
dispatcher.connect(receiver=self.spy)
|
||||
|
||||
def spy(self, signal, sender):
|
||||
"""Receiver for Any signal from Any sender."""
|
||||
text = '%r from %s' % (signal, sender)
|
||||
self.SetInsertionPointEnd()
|
||||
start, end = self.GetSelection()
|
||||
if start != end:
|
||||
self.SetSelection(0, 0)
|
||||
self.AppendText(text + '\n')
|
||||
|
||||
|
||||
class CrustFrame(wx.wxFrame, ShellMenu):
|
||||
"""Frame containing all the PyCrust components."""
|
||||
|
||||
@@ -46,12 +117,13 @@ class CrustFrame(wx.wxFrame, ShellMenu):
|
||||
def __init__(self, parent=None, id=-1, title='PyCrust',
|
||||
pos=wx.wxDefaultPosition, size=wx.wxDefaultSize,
|
||||
style=wx.wxDEFAULT_FRAME_STYLE,
|
||||
rootObject=None, rootLabel=None, rootIsNamespace=1,
|
||||
rootObject=None, rootLabel=None, rootIsNamespace=True,
|
||||
locals=None, InterpClass=None, *args, **kwds):
|
||||
"""Create a PyCrust CrustFrame instance."""
|
||||
wx.wxFrame.__init__(self, parent, id, title, pos, size, style)
|
||||
intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % VERSION
|
||||
intro += '\nSponsored by Orbtech - Your source for Python programming expertise.'
|
||||
intro = 'PyCrust %s - The Flakiest Python Shell' % VERSION
|
||||
intro += '\nSponsored by Orbtech - '
|
||||
intro += 'Your source for Python programming expertise.'
|
||||
self.CreateStatusBar()
|
||||
self.SetStatusText(intro.replace('\n', ', '))
|
||||
import images
|
||||
@@ -63,17 +135,16 @@ class CrustFrame(wx.wxFrame, ShellMenu):
|
||||
locals=locals,
|
||||
InterpClass=InterpClass, *args, **kwds)
|
||||
# Override the filling so that status messages go to the status bar.
|
||||
self.crust.filling.fillingTree.setStatusText = self.SetStatusText
|
||||
self.crust.filling.tree.setStatusText = self.SetStatusText
|
||||
# Override the shell so that status messages go to the status bar.
|
||||
self.crust.shell.setStatusText = self.SetStatusText
|
||||
# Fix a problem with the sash shrinking to nothing.
|
||||
self.crust.filling.SetSashPosition(200)
|
||||
# Set focus to the shell editor.
|
||||
self.crust.shell.SetFocus()
|
||||
# Temporary hack to share menus between PyCrust and PyShell.
|
||||
self.shell = self.crust.shell
|
||||
self.createMenus()
|
||||
wx.EVT_CLOSE(self, self.OnCloseWindow)
|
||||
# Set focus to the shell editor.
|
||||
self.crust.shell.SetFocus()
|
||||
|
||||
def OnCloseWindow(self, event):
|
||||
self.crust.shell.destroy()
|
||||
|
1
wxPython/wxPython/lib/PyCrust/decor/__init__.py
Normal file
1
wxPython/wxPython/lib/PyCrust/decor/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# Orbtech python package.
|
128
wxPython/wxPython/lib/PyCrust/decor/decorate.py
Normal file
128
wxPython/wxPython/lib/PyCrust/decor/decorate.py
Normal file
@@ -0,0 +1,128 @@
|
||||
"""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>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
|
||||
# The classes in these modules will get decorated.
|
||||
#-------------------------------------------------
|
||||
|
||||
from wxPython import wx
|
||||
from wxPython import stc
|
||||
|
||||
|
||||
# Code for decorating existing classes.
|
||||
# -------------------------------------
|
||||
|
||||
import inspect
|
||||
|
||||
def decorate(item, wxdict):
|
||||
"""Use item to decorate the matching class in wxdict."""
|
||||
if inspect.isclass(item):
|
||||
decorateClass(item, wxdict)
|
||||
elif inspect.isfunction(item):
|
||||
decorateFunction(item, wxdict)
|
||||
|
||||
def decorateClass(item, wxdict):
|
||||
classname = item.__name__
|
||||
if classname in wxdict.keys():
|
||||
wxclass = wxdict[classname]
|
||||
## XXX Not sure if we'll need this or not, but it's here just in case.
|
||||
## pointername = classname + 'Ptr'
|
||||
## if pointer in wxdict:
|
||||
## wxclassPtr = wxdict[pointername]
|
||||
if item.__doc__:
|
||||
wxclass.__doc__ = item.__doc__
|
||||
# Get attributes from only the item's local dictionary!
|
||||
for attrname, attr in item.__dict__.items():
|
||||
# If the attribute has a docstring, and the wx class has a
|
||||
# matching attribute.
|
||||
if hasattr(attr, '__doc__') and hasattr(wxclass, attrname):
|
||||
if inspect.isfunction(attr):
|
||||
# Class methods are functions.
|
||||
doc = getdoc(attr, drop=True)
|
||||
# Is getattr() okay, or do we want to only look in
|
||||
# the wxclass.__dict__ and wxclassPtr.__dict__?
|
||||
wxattr = getattr(wxclass, attrname)
|
||||
# Our class code may be defined incorrectly, and
|
||||
# the wxattr may not actually be a class method,
|
||||
# but that's okay because the following attempt
|
||||
# will simply fail.
|
||||
try:
|
||||
func = wxattr.im_func
|
||||
func.__doc__ = doc
|
||||
except:
|
||||
pass
|
||||
|
||||
def decorateFunction(item, wxdict):
|
||||
funcname = item.__name__
|
||||
if funcname in wxdict.keys():
|
||||
func = wxdict[funcname]
|
||||
doc = getdoc(item, drop=False)
|
||||
try:
|
||||
# Built-in functions have a read-only docstring. :-(
|
||||
func.__doc__ = doc
|
||||
except:
|
||||
# print funcname
|
||||
pass
|
||||
|
||||
def getdoc(attr, drop=False):
|
||||
"""Return a docstring for attr, which should be a method."""
|
||||
doc = ''
|
||||
if attr.__doc__:
|
||||
doc = inspect.getdoc(attr).strip()
|
||||
name = attr.__name__
|
||||
# tip is a string with name(argspec), like: "SetLabel(label)"
|
||||
tip = ''
|
||||
argspec = apply(inspect.formatargspec, inspect.getargspec(attr))
|
||||
# The first parameter to a method is a reference to an instance,
|
||||
# usually coded as "self", and is usually passed automatically by
|
||||
# Python and therefore we want to drop it.
|
||||
temp = argspec.split(',')
|
||||
if len(temp) == 1: # No other arguments.
|
||||
argspec = '()'
|
||||
elif drop: # Drop the first argument.
|
||||
argspec = '(' + ','.join(temp[1:]).lstrip()
|
||||
else:
|
||||
argspec = ','.join(temp).lstrip()
|
||||
tip = name + argspec
|
||||
firstline = doc.split('\n')[0].lstrip()
|
||||
if tip != firstline:
|
||||
doc = '%s\n\n%s' % (tip, doc)
|
||||
return doc
|
||||
|
||||
|
||||
# For each decorator class, apply docstrings to the matching class.
|
||||
#---------------------------------------------------------------------
|
||||
# The order in which docstrings are applied could be important,
|
||||
# depending on how we handle multiple inheritance. We may want to
|
||||
# work from parent to child. We may also have to be clever about how
|
||||
# we apply the docstrings in the case where our class definitions are
|
||||
# not an exact match with the wxPython class definitions. For
|
||||
# example, if we define a method in a child class that wxPython does
|
||||
# not, our docstring for the child method may end up on the parent or
|
||||
# grandparent method. If the parent or grandparent is not just an
|
||||
# abstract class, or if the method is shared by more than one
|
||||
# subclass, none of which override it, the docstring would be
|
||||
# misleading.
|
||||
|
||||
|
||||
import wxDecor
|
||||
[decorate(item, wx.__dict__) for item in wxDecor.__dict__.values()]
|
||||
|
||||
import stcDecor
|
||||
[decorate(item, stc.__dict__) for item in stcDecor.__dict__.values()]
|
||||
|
||||
|
||||
# Test the timing of the list comprehension approach vs. the for loop:
|
||||
|
||||
##for item in wxDecor.__dict__.itervalues():
|
||||
## decorate(item, wx.__dict__)
|
||||
##
|
||||
##for item in stcDecor.__dict__.itervalues():
|
||||
## decorate(item, stc.__dict__)
|
643
wxPython/wxPython/lib/PyCrust/decor/stcConstants.py
Normal file
643
wxPython/wxPython/lib/PyCrust/decor/stcConstants.py
Normal file
@@ -0,0 +1,643 @@
|
||||
"""wxStyledTextControl constants for documentation.
|
||||
"""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
|
||||
from wxPython import wx
|
||||
from wxPython import stc
|
||||
|
||||
|
||||
"""
|
||||
>>> from wxPython import stc_c
|
||||
>>> def gen_constants():
|
||||
... print '# Begin generated constants.'
|
||||
... for item in dir(stc_c): # dir returns a sorted list.
|
||||
... if not callable(stc_c.__dict__[item]) \
|
||||
... and not item.startswith('__'):
|
||||
... print item, '=', 'stc.' + item, ' #', \
|
||||
... repr(stc_c.__dict__[item])
|
||||
... print '# End generated constants.'
|
||||
|
||||
"""
|
||||
|
||||
# Begin generated constants.
|
||||
STC_USE_DND = stc.STC_USE_DND # 1
|
||||
wxEVT_STC_CHANGE = stc.wxEVT_STC_CHANGE # 10206
|
||||
wxEVT_STC_CHARADDED = stc.wxEVT_STC_CHARADDED # 10208
|
||||
wxEVT_STC_DOUBLECLICK = stc.wxEVT_STC_DOUBLECLICK # 10213
|
||||
wxEVT_STC_DO_DROP = stc.wxEVT_STC_DO_DROP # 10227
|
||||
wxEVT_STC_DRAG_OVER = stc.wxEVT_STC_DRAG_OVER # 10226
|
||||
wxEVT_STC_DWELLEND = stc.wxEVT_STC_DWELLEND # 10224
|
||||
wxEVT_STC_DWELLSTART = stc.wxEVT_STC_DWELLSTART # 10223
|
||||
wxEVT_STC_KEY = stc.wxEVT_STC_KEY # 10212
|
||||
wxEVT_STC_MACRORECORD = stc.wxEVT_STC_MACRORECORD # 10216
|
||||
wxEVT_STC_MARGINCLICK = stc.wxEVT_STC_MARGINCLICK # 10217
|
||||
wxEVT_STC_MODIFIED = stc.wxEVT_STC_MODIFIED # 10215
|
||||
wxEVT_STC_NEEDSHOWN = stc.wxEVT_STC_NEEDSHOWN # 10218
|
||||
wxEVT_STC_PAINTED = stc.wxEVT_STC_PAINTED # 10220
|
||||
wxEVT_STC_POSCHANGED = stc.wxEVT_STC_POSCHANGED # 10219
|
||||
wxEVT_STC_ROMODIFYATTEMPT = stc.wxEVT_STC_ROMODIFYATTEMPT # 10211
|
||||
wxEVT_STC_SAVEPOINTLEFT = stc.wxEVT_STC_SAVEPOINTLEFT # 10210
|
||||
wxEVT_STC_SAVEPOINTREACHED = stc.wxEVT_STC_SAVEPOINTREACHED # 10209
|
||||
wxEVT_STC_START_DRAG = stc.wxEVT_STC_START_DRAG # 10225
|
||||
wxEVT_STC_STYLENEEDED = stc.wxEVT_STC_STYLENEEDED # 10207
|
||||
wxEVT_STC_UPDATEUI = stc.wxEVT_STC_UPDATEUI # 10214
|
||||
wxEVT_STC_URIDROPPED = stc.wxEVT_STC_URIDROPPED # 10222
|
||||
wxEVT_STC_USERLISTSELECTION = stc.wxEVT_STC_USERLISTSELECTION # 10221
|
||||
wxEVT_STC_ZOOM = stc.wxEVT_STC_ZOOM # 10228
|
||||
wxSTC_ADA_CHARACTER = stc.wxSTC_ADA_CHARACTER # 5
|
||||
wxSTC_ADA_COMMENT = stc.wxSTC_ADA_COMMENT # 1
|
||||
wxSTC_ADA_DEFAULT = stc.wxSTC_ADA_DEFAULT # 0
|
||||
wxSTC_ADA_IDENTIFIER = stc.wxSTC_ADA_IDENTIFIER # 7
|
||||
wxSTC_ADA_NUMBER = stc.wxSTC_ADA_NUMBER # 2
|
||||
wxSTC_ADA_OPERATOR = stc.wxSTC_ADA_OPERATOR # 6
|
||||
wxSTC_ADA_STRING = stc.wxSTC_ADA_STRING # 4
|
||||
wxSTC_ADA_STRINGEOL = stc.wxSTC_ADA_STRINGEOL # 8
|
||||
wxSTC_ADA_WORD = stc.wxSTC_ADA_WORD # 3
|
||||
wxSTC_AVE_COMMENT = stc.wxSTC_AVE_COMMENT # 1
|
||||
wxSTC_AVE_DEFAULT = stc.wxSTC_AVE_DEFAULT # 0
|
||||
wxSTC_AVE_ENUM = stc.wxSTC_AVE_ENUM # 7
|
||||
wxSTC_AVE_IDENTIFIER = stc.wxSTC_AVE_IDENTIFIER # 9
|
||||
wxSTC_AVE_KEYWORD = stc.wxSTC_AVE_KEYWORD # 4
|
||||
wxSTC_AVE_NUMBER = stc.wxSTC_AVE_NUMBER # 2
|
||||
wxSTC_AVE_OPERATOR = stc.wxSTC_AVE_OPERATOR # 10
|
||||
wxSTC_AVE_STATEMENT = stc.wxSTC_AVE_STATEMENT # 5
|
||||
wxSTC_AVE_STRING = stc.wxSTC_AVE_STRING # 6
|
||||
wxSTC_AVE_STRINGEOL = stc.wxSTC_AVE_STRINGEOL # 8
|
||||
wxSTC_AVE_WORD = stc.wxSTC_AVE_WORD # 3
|
||||
wxSTC_BAAN_COMMENT = stc.wxSTC_BAAN_COMMENT # 1
|
||||
wxSTC_BAAN_COMMENTDOC = stc.wxSTC_BAAN_COMMENTDOC # 2
|
||||
wxSTC_BAAN_DEFAULT = stc.wxSTC_BAAN_DEFAULT # 0
|
||||
wxSTC_BAAN_IDENTIFIER = stc.wxSTC_BAAN_IDENTIFIER # 8
|
||||
wxSTC_BAAN_NUMBER = stc.wxSTC_BAAN_NUMBER # 3
|
||||
wxSTC_BAAN_OPERATOR = stc.wxSTC_BAAN_OPERATOR # 7
|
||||
wxSTC_BAAN_PREPROCESSOR = stc.wxSTC_BAAN_PREPROCESSOR # 6
|
||||
wxSTC_BAAN_STRING = stc.wxSTC_BAAN_STRING # 5
|
||||
wxSTC_BAAN_STRINGEOL = stc.wxSTC_BAAN_STRINGEOL # 9
|
||||
wxSTC_BAAN_WORD = stc.wxSTC_BAAN_WORD # 4
|
||||
wxSTC_BAAN_WORD2 = stc.wxSTC_BAAN_WORD2 # 10
|
||||
wxSTC_BAT_COMMAND = stc.wxSTC_BAT_COMMAND # 5
|
||||
wxSTC_BAT_COMMENT = stc.wxSTC_BAT_COMMENT # 1
|
||||
wxSTC_BAT_DEFAULT = stc.wxSTC_BAT_DEFAULT # 0
|
||||
wxSTC_BAT_HIDE = stc.wxSTC_BAT_HIDE # 4
|
||||
wxSTC_BAT_IDENTIFIER = stc.wxSTC_BAT_IDENTIFIER # 6
|
||||
wxSTC_BAT_LABEL = stc.wxSTC_BAT_LABEL # 3
|
||||
wxSTC_BAT_OPERATOR = stc.wxSTC_BAT_OPERATOR # 7
|
||||
wxSTC_BAT_WORD = stc.wxSTC_BAT_WORD # 2
|
||||
wxSTC_B_COMMENT = stc.wxSTC_B_COMMENT # 1
|
||||
wxSTC_B_DATE = stc.wxSTC_B_DATE # 8
|
||||
wxSTC_B_DEFAULT = stc.wxSTC_B_DEFAULT # 0
|
||||
wxSTC_B_IDENTIFIER = stc.wxSTC_B_IDENTIFIER # 7
|
||||
wxSTC_B_KEYWORD = stc.wxSTC_B_KEYWORD # 3
|
||||
wxSTC_B_NUMBER = stc.wxSTC_B_NUMBER # 2
|
||||
wxSTC_B_OPERATOR = stc.wxSTC_B_OPERATOR # 6
|
||||
wxSTC_B_PREPROCESSOR = stc.wxSTC_B_PREPROCESSOR # 5
|
||||
wxSTC_B_STRING = stc.wxSTC_B_STRING # 4
|
||||
wxSTC_CACHE_CARET = stc.wxSTC_CACHE_CARET # 1
|
||||
wxSTC_CACHE_DOCUMENT = stc.wxSTC_CACHE_DOCUMENT # 3
|
||||
wxSTC_CACHE_NONE = stc.wxSTC_CACHE_NONE # 0
|
||||
wxSTC_CACHE_PAGE = stc.wxSTC_CACHE_PAGE # 2
|
||||
wxSTC_CARET_EVEN = stc.wxSTC_CARET_EVEN # 8
|
||||
wxSTC_CARET_JUMPS = stc.wxSTC_CARET_JUMPS # 16
|
||||
wxSTC_CARET_SLOP = stc.wxSTC_CARET_SLOP # 1
|
||||
wxSTC_CARET_STRICT = stc.wxSTC_CARET_STRICT # 4
|
||||
wxSTC_CASE_LOWER = stc.wxSTC_CASE_LOWER # 2
|
||||
wxSTC_CASE_MIXED = stc.wxSTC_CASE_MIXED # 0
|
||||
wxSTC_CASE_UPPER = stc.wxSTC_CASE_UPPER # 1
|
||||
wxSTC_CHARSET_ANSI = stc.wxSTC_CHARSET_ANSI # 0
|
||||
wxSTC_CHARSET_ARABIC = stc.wxSTC_CHARSET_ARABIC # 178
|
||||
wxSTC_CHARSET_BALTIC = stc.wxSTC_CHARSET_BALTIC # 186
|
||||
wxSTC_CHARSET_CHINESEBIG5 = stc.wxSTC_CHARSET_CHINESEBIG5 # 136
|
||||
wxSTC_CHARSET_DEFAULT = stc.wxSTC_CHARSET_DEFAULT # 1
|
||||
wxSTC_CHARSET_EASTEUROPE = stc.wxSTC_CHARSET_EASTEUROPE # 238
|
||||
wxSTC_CHARSET_GB2312 = stc.wxSTC_CHARSET_GB2312 # 134
|
||||
wxSTC_CHARSET_GREEK = stc.wxSTC_CHARSET_GREEK # 161
|
||||
wxSTC_CHARSET_HANGUL = stc.wxSTC_CHARSET_HANGUL # 129
|
||||
wxSTC_CHARSET_HEBREW = stc.wxSTC_CHARSET_HEBREW # 177
|
||||
wxSTC_CHARSET_JOHAB = stc.wxSTC_CHARSET_JOHAB # 130
|
||||
wxSTC_CHARSET_MAC = stc.wxSTC_CHARSET_MAC # 77
|
||||
wxSTC_CHARSET_OEM = stc.wxSTC_CHARSET_OEM # 255
|
||||
wxSTC_CHARSET_RUSSIAN = stc.wxSTC_CHARSET_RUSSIAN # 204
|
||||
wxSTC_CHARSET_SHIFTJIS = stc.wxSTC_CHARSET_SHIFTJIS # 128
|
||||
wxSTC_CHARSET_SYMBOL = stc.wxSTC_CHARSET_SYMBOL # 2
|
||||
wxSTC_CHARSET_THAI = stc.wxSTC_CHARSET_THAI # 222
|
||||
wxSTC_CHARSET_TURKISH = stc.wxSTC_CHARSET_TURKISH # 162
|
||||
wxSTC_CHARSET_VIETNAMESE = stc.wxSTC_CHARSET_VIETNAMESE # 163
|
||||
wxSTC_CMD_BACKTAB = stc.wxSTC_CMD_BACKTAB # 2328
|
||||
wxSTC_CMD_CANCEL = stc.wxSTC_CMD_CANCEL # 2325
|
||||
wxSTC_CMD_CHARLEFT = stc.wxSTC_CMD_CHARLEFT # 2304
|
||||
wxSTC_CMD_CHARLEFTEXTEND = stc.wxSTC_CMD_CHARLEFTEXTEND # 2305
|
||||
wxSTC_CMD_CHARRIGHT = stc.wxSTC_CMD_CHARRIGHT # 2306
|
||||
wxSTC_CMD_CHARRIGHTEXTEND = stc.wxSTC_CMD_CHARRIGHTEXTEND # 2307
|
||||
wxSTC_CMD_CLEAR = stc.wxSTC_CMD_CLEAR # 2180
|
||||
wxSTC_CMD_COPY = stc.wxSTC_CMD_COPY # 2178
|
||||
wxSTC_CMD_CUT = stc.wxSTC_CMD_CUT # 2177
|
||||
wxSTC_CMD_DELETEBACK = stc.wxSTC_CMD_DELETEBACK # 2326
|
||||
wxSTC_CMD_DELETEBACKNOTLINE = stc.wxSTC_CMD_DELETEBACKNOTLINE # 2344
|
||||
wxSTC_CMD_DELLINELEFT = stc.wxSTC_CMD_DELLINELEFT # 2395
|
||||
wxSTC_CMD_DELLINERIGHT = stc.wxSTC_CMD_DELLINERIGHT # 2396
|
||||
wxSTC_CMD_DELWORDLEFT = stc.wxSTC_CMD_DELWORDLEFT # 2335
|
||||
wxSTC_CMD_DELWORDRIGHT = stc.wxSTC_CMD_DELWORDRIGHT # 2336
|
||||
wxSTC_CMD_DOCUMENTEND = stc.wxSTC_CMD_DOCUMENTEND # 2318
|
||||
wxSTC_CMD_DOCUMENTENDEXTEND = stc.wxSTC_CMD_DOCUMENTENDEXTEND # 2319
|
||||
wxSTC_CMD_DOCUMENTSTART = stc.wxSTC_CMD_DOCUMENTSTART # 2316
|
||||
wxSTC_CMD_DOCUMENTSTARTEXTEND = stc.wxSTC_CMD_DOCUMENTSTARTEXTEND # 2317
|
||||
wxSTC_CMD_EDITTOGGLEOVERTYPE = stc.wxSTC_CMD_EDITTOGGLEOVERTYPE # 2324
|
||||
wxSTC_CMD_FORMFEED = stc.wxSTC_CMD_FORMFEED # 2330
|
||||
wxSTC_CMD_HOME = stc.wxSTC_CMD_HOME # 2312
|
||||
wxSTC_CMD_HOMEDISPLAY = stc.wxSTC_CMD_HOMEDISPLAY # 2345
|
||||
wxSTC_CMD_HOMEDISPLAYEXTEND = stc.wxSTC_CMD_HOMEDISPLAYEXTEND # 2346
|
||||
wxSTC_CMD_HOMEEXTEND = stc.wxSTC_CMD_HOMEEXTEND # 2313
|
||||
wxSTC_CMD_LINECUT = stc.wxSTC_CMD_LINECUT # 2337
|
||||
wxSTC_CMD_LINEDELETE = stc.wxSTC_CMD_LINEDELETE # 2338
|
||||
wxSTC_CMD_LINEDOWN = stc.wxSTC_CMD_LINEDOWN # 2300
|
||||
wxSTC_CMD_LINEDOWNEXTEND = stc.wxSTC_CMD_LINEDOWNEXTEND # 2301
|
||||
wxSTC_CMD_LINEEND = stc.wxSTC_CMD_LINEEND # 2314
|
||||
wxSTC_CMD_LINEENDDISPLAY = stc.wxSTC_CMD_LINEENDDISPLAY # 2347
|
||||
wxSTC_CMD_LINEENDDISPLAYEXTEND = stc.wxSTC_CMD_LINEENDDISPLAYEXTEND # 2348
|
||||
wxSTC_CMD_LINEENDEXTEND = stc.wxSTC_CMD_LINEENDEXTEND # 2315
|
||||
wxSTC_CMD_LINESCROLLDOWN = stc.wxSTC_CMD_LINESCROLLDOWN # 2342
|
||||
wxSTC_CMD_LINESCROLLUP = stc.wxSTC_CMD_LINESCROLLUP # 2343
|
||||
wxSTC_CMD_LINETRANSPOSE = stc.wxSTC_CMD_LINETRANSPOSE # 2339
|
||||
wxSTC_CMD_LINEUP = stc.wxSTC_CMD_LINEUP # 2302
|
||||
wxSTC_CMD_LINEUPEXTEND = stc.wxSTC_CMD_LINEUPEXTEND # 2303
|
||||
wxSTC_CMD_LOWERCASE = stc.wxSTC_CMD_LOWERCASE # 2340
|
||||
wxSTC_CMD_NEWLINE = stc.wxSTC_CMD_NEWLINE # 2329
|
||||
wxSTC_CMD_PAGEDOWN = stc.wxSTC_CMD_PAGEDOWN # 2322
|
||||
wxSTC_CMD_PAGEDOWNEXTEND = stc.wxSTC_CMD_PAGEDOWNEXTEND # 2323
|
||||
wxSTC_CMD_PAGEUP = stc.wxSTC_CMD_PAGEUP # 2320
|
||||
wxSTC_CMD_PAGEUPEXTEND = stc.wxSTC_CMD_PAGEUPEXTEND # 2321
|
||||
wxSTC_CMD_PASTE = stc.wxSTC_CMD_PASTE # 2179
|
||||
wxSTC_CMD_REDO = stc.wxSTC_CMD_REDO # 2011
|
||||
wxSTC_CMD_SELECTALL = stc.wxSTC_CMD_SELECTALL # 2013
|
||||
wxSTC_CMD_TAB = stc.wxSTC_CMD_TAB # 2327
|
||||
wxSTC_CMD_UNDO = stc.wxSTC_CMD_UNDO # 2176
|
||||
wxSTC_CMD_UPPERCASE = stc.wxSTC_CMD_UPPERCASE # 2341
|
||||
wxSTC_CMD_VCHOME = stc.wxSTC_CMD_VCHOME # 2331
|
||||
wxSTC_CMD_VCHOMEEXTEND = stc.wxSTC_CMD_VCHOMEEXTEND # 2332
|
||||
wxSTC_CMD_WORDLEFT = stc.wxSTC_CMD_WORDLEFT # 2308
|
||||
wxSTC_CMD_WORDLEFTEXTEND = stc.wxSTC_CMD_WORDLEFTEXTEND # 2309
|
||||
wxSTC_CMD_WORDPARTLEFT = stc.wxSTC_CMD_WORDPARTLEFT # 2390
|
||||
wxSTC_CMD_WORDPARTLEFTEXTEND = stc.wxSTC_CMD_WORDPARTLEFTEXTEND # 2391
|
||||
wxSTC_CMD_WORDPARTRIGHT = stc.wxSTC_CMD_WORDPARTRIGHT # 2392
|
||||
wxSTC_CMD_WORDPARTRIGHTEXTEND = stc.wxSTC_CMD_WORDPARTRIGHTEXTEND # 2393
|
||||
wxSTC_CMD_WORDRIGHT = stc.wxSTC_CMD_WORDRIGHT # 2310
|
||||
wxSTC_CMD_WORDRIGHTEXTEND = stc.wxSTC_CMD_WORDRIGHTEXTEND # 2311
|
||||
wxSTC_CMD_ZOOMIN = stc.wxSTC_CMD_ZOOMIN # 2333
|
||||
wxSTC_CMD_ZOOMOUT = stc.wxSTC_CMD_ZOOMOUT # 2334
|
||||
wxSTC_CONF_COMMENT = stc.wxSTC_CONF_COMMENT # 1
|
||||
wxSTC_CONF_DEFAULT = stc.wxSTC_CONF_DEFAULT # 0
|
||||
wxSTC_CONF_DIRECTIVE = stc.wxSTC_CONF_DIRECTIVE # 9
|
||||
wxSTC_CONF_EXTENSION = stc.wxSTC_CONF_EXTENSION # 4
|
||||
wxSTC_CONF_IDENTIFIER = stc.wxSTC_CONF_IDENTIFIER # 3
|
||||
wxSTC_CONF_IP = stc.wxSTC_CONF_IP # 8
|
||||
wxSTC_CONF_NUMBER = stc.wxSTC_CONF_NUMBER # 2
|
||||
wxSTC_CONF_OPERATOR = stc.wxSTC_CONF_OPERATOR # 7
|
||||
wxSTC_CONF_PARAMETER = stc.wxSTC_CONF_PARAMETER # 5
|
||||
wxSTC_CONF_STRING = stc.wxSTC_CONF_STRING # 6
|
||||
wxSTC_CP_UTF8 = stc.wxSTC_CP_UTF8 # 65001
|
||||
wxSTC_CURSORNORMAL = stc.wxSTC_CURSORNORMAL # -1
|
||||
wxSTC_CURSORWAIT = stc.wxSTC_CURSORWAIT # 3
|
||||
wxSTC_C_CHARACTER = stc.wxSTC_C_CHARACTER # 7
|
||||
wxSTC_C_COMMENT = stc.wxSTC_C_COMMENT # 1
|
||||
wxSTC_C_COMMENTDOC = stc.wxSTC_C_COMMENTDOC # 3
|
||||
wxSTC_C_COMMENTDOCKEYWORD = stc.wxSTC_C_COMMENTDOCKEYWORD # 17
|
||||
wxSTC_C_COMMENTDOCKEYWORDERROR = stc.wxSTC_C_COMMENTDOCKEYWORDERROR # 18
|
||||
wxSTC_C_COMMENTLINE = stc.wxSTC_C_COMMENTLINE # 2
|
||||
wxSTC_C_COMMENTLINEDOC = stc.wxSTC_C_COMMENTLINEDOC # 15
|
||||
wxSTC_C_DEFAULT = stc.wxSTC_C_DEFAULT # 0
|
||||
wxSTC_C_IDENTIFIER = stc.wxSTC_C_IDENTIFIER # 11
|
||||
wxSTC_C_NUMBER = stc.wxSTC_C_NUMBER # 4
|
||||
wxSTC_C_OPERATOR = stc.wxSTC_C_OPERATOR # 10
|
||||
wxSTC_C_PREPROCESSOR = stc.wxSTC_C_PREPROCESSOR # 9
|
||||
wxSTC_C_REGEX = stc.wxSTC_C_REGEX # 14
|
||||
wxSTC_C_STRING = stc.wxSTC_C_STRING # 6
|
||||
wxSTC_C_STRINGEOL = stc.wxSTC_C_STRINGEOL # 12
|
||||
wxSTC_C_UUID = stc.wxSTC_C_UUID # 8
|
||||
wxSTC_C_VERBATIM = stc.wxSTC_C_VERBATIM # 13
|
||||
wxSTC_C_WORD = stc.wxSTC_C_WORD # 5
|
||||
wxSTC_C_WORD2 = stc.wxSTC_C_WORD2 # 16
|
||||
wxSTC_DIFF_ADDED = stc.wxSTC_DIFF_ADDED # 6
|
||||
wxSTC_DIFF_COMMAND = stc.wxSTC_DIFF_COMMAND # 2
|
||||
wxSTC_DIFF_COMMENT = stc.wxSTC_DIFF_COMMENT # 1
|
||||
wxSTC_DIFF_DEFAULT = stc.wxSTC_DIFF_DEFAULT # 0
|
||||
wxSTC_DIFF_DELETED = stc.wxSTC_DIFF_DELETED # 5
|
||||
wxSTC_DIFF_HEADER = stc.wxSTC_DIFF_HEADER # 3
|
||||
wxSTC_DIFF_POSITION = stc.wxSTC_DIFF_POSITION # 4
|
||||
wxSTC_EDGE_BACKGROUND = stc.wxSTC_EDGE_BACKGROUND # 2
|
||||
wxSTC_EDGE_LINE = stc.wxSTC_EDGE_LINE # 1
|
||||
wxSTC_EDGE_NONE = stc.wxSTC_EDGE_NONE # 0
|
||||
wxSTC_EIFFEL_CHARACTER = stc.wxSTC_EIFFEL_CHARACTER # 5
|
||||
wxSTC_EIFFEL_COMMENTLINE = stc.wxSTC_EIFFEL_COMMENTLINE # 1
|
||||
wxSTC_EIFFEL_DEFAULT = stc.wxSTC_EIFFEL_DEFAULT # 0
|
||||
wxSTC_EIFFEL_IDENTIFIER = stc.wxSTC_EIFFEL_IDENTIFIER # 7
|
||||
wxSTC_EIFFEL_NUMBER = stc.wxSTC_EIFFEL_NUMBER # 2
|
||||
wxSTC_EIFFEL_OPERATOR = stc.wxSTC_EIFFEL_OPERATOR # 6
|
||||
wxSTC_EIFFEL_STRING = stc.wxSTC_EIFFEL_STRING # 4
|
||||
wxSTC_EIFFEL_STRINGEOL = stc.wxSTC_EIFFEL_STRINGEOL # 8
|
||||
wxSTC_EIFFEL_WORD = stc.wxSTC_EIFFEL_WORD # 3
|
||||
wxSTC_EOL_CR = stc.wxSTC_EOL_CR # 1
|
||||
wxSTC_EOL_CRLF = stc.wxSTC_EOL_CRLF # 0
|
||||
wxSTC_EOL_LF = stc.wxSTC_EOL_LF # 2
|
||||
wxSTC_ERR_BORLAND = stc.wxSTC_ERR_BORLAND # 5
|
||||
wxSTC_ERR_CMD = stc.wxSTC_ERR_CMD # 4
|
||||
wxSTC_ERR_CTAG = stc.wxSTC_ERR_CTAG # 9
|
||||
wxSTC_ERR_DEFAULT = stc.wxSTC_ERR_DEFAULT # 0
|
||||
wxSTC_ERR_DIFF_ADDITION = stc.wxSTC_ERR_DIFF_ADDITION # 11
|
||||
wxSTC_ERR_DIFF_CHANGED = stc.wxSTC_ERR_DIFF_CHANGED # 10
|
||||
wxSTC_ERR_DIFF_DELETION = stc.wxSTC_ERR_DIFF_DELETION # 12
|
||||
wxSTC_ERR_DIFF_MESSAGE = stc.wxSTC_ERR_DIFF_MESSAGE # 13
|
||||
wxSTC_ERR_GCC = stc.wxSTC_ERR_GCC # 2
|
||||
wxSTC_ERR_LUA = stc.wxSTC_ERR_LUA # 8
|
||||
wxSTC_ERR_MS = stc.wxSTC_ERR_MS # 3
|
||||
wxSTC_ERR_NET = stc.wxSTC_ERR_NET # 7
|
||||
wxSTC_ERR_PERL = stc.wxSTC_ERR_PERL # 6
|
||||
wxSTC_ERR_PYTHON = stc.wxSTC_ERR_PYTHON # 1
|
||||
wxSTC_FIND_MATCHCASE = stc.wxSTC_FIND_MATCHCASE # 4
|
||||
wxSTC_FIND_REGEXP = stc.wxSTC_FIND_REGEXP # 2097152
|
||||
wxSTC_FIND_WHOLEWORD = stc.wxSTC_FIND_WHOLEWORD # 2
|
||||
wxSTC_FIND_WORDSTART = stc.wxSTC_FIND_WORDSTART # 1048576
|
||||
wxSTC_FOLDLEVELBASE = stc.wxSTC_FOLDLEVELBASE # 1024
|
||||
wxSTC_FOLDLEVELHEADERFLAG = stc.wxSTC_FOLDLEVELHEADERFLAG # 8192
|
||||
wxSTC_FOLDLEVELNUMBERMASK = stc.wxSTC_FOLDLEVELNUMBERMASK # 4095
|
||||
wxSTC_FOLDLEVELWHITEFLAG = stc.wxSTC_FOLDLEVELWHITEFLAG # 4096
|
||||
wxSTC_HBA_COMMENTLINE = stc.wxSTC_HBA_COMMENTLINE # 82
|
||||
wxSTC_HBA_DEFAULT = stc.wxSTC_HBA_DEFAULT # 81
|
||||
wxSTC_HBA_IDENTIFIER = stc.wxSTC_HBA_IDENTIFIER # 86
|
||||
wxSTC_HBA_NUMBER = stc.wxSTC_HBA_NUMBER # 83
|
||||
wxSTC_HBA_START = stc.wxSTC_HBA_START # 80
|
||||
wxSTC_HBA_STRING = stc.wxSTC_HBA_STRING # 85
|
||||
wxSTC_HBA_STRINGEOL = stc.wxSTC_HBA_STRINGEOL # 87
|
||||
wxSTC_HBA_WORD = stc.wxSTC_HBA_WORD # 84
|
||||
wxSTC_HB_COMMENTLINE = stc.wxSTC_HB_COMMENTLINE # 72
|
||||
wxSTC_HB_DEFAULT = stc.wxSTC_HB_DEFAULT # 71
|
||||
wxSTC_HB_IDENTIFIER = stc.wxSTC_HB_IDENTIFIER # 76
|
||||
wxSTC_HB_NUMBER = stc.wxSTC_HB_NUMBER # 73
|
||||
wxSTC_HB_START = stc.wxSTC_HB_START # 70
|
||||
wxSTC_HB_STRING = stc.wxSTC_HB_STRING # 75
|
||||
wxSTC_HB_STRINGEOL = stc.wxSTC_HB_STRINGEOL # 77
|
||||
wxSTC_HB_WORD = stc.wxSTC_HB_WORD # 74
|
||||
wxSTC_HJA_COMMENT = stc.wxSTC_HJA_COMMENT # 57
|
||||
wxSTC_HJA_COMMENTDOC = stc.wxSTC_HJA_COMMENTDOC # 59
|
||||
wxSTC_HJA_COMMENTLINE = stc.wxSTC_HJA_COMMENTLINE # 58
|
||||
wxSTC_HJA_DEFAULT = stc.wxSTC_HJA_DEFAULT # 56
|
||||
wxSTC_HJA_DOUBLESTRING = stc.wxSTC_HJA_DOUBLESTRING # 63
|
||||
wxSTC_HJA_KEYWORD = stc.wxSTC_HJA_KEYWORD # 62
|
||||
wxSTC_HJA_NUMBER = stc.wxSTC_HJA_NUMBER # 60
|
||||
wxSTC_HJA_REGEX = stc.wxSTC_HJA_REGEX # 67
|
||||
wxSTC_HJA_SINGLESTRING = stc.wxSTC_HJA_SINGLESTRING # 64
|
||||
wxSTC_HJA_START = stc.wxSTC_HJA_START # 55
|
||||
wxSTC_HJA_STRINGEOL = stc.wxSTC_HJA_STRINGEOL # 66
|
||||
wxSTC_HJA_SYMBOLS = stc.wxSTC_HJA_SYMBOLS # 65
|
||||
wxSTC_HJA_WORD = stc.wxSTC_HJA_WORD # 61
|
||||
wxSTC_HJ_COMMENT = stc.wxSTC_HJ_COMMENT # 42
|
||||
wxSTC_HJ_COMMENTDOC = stc.wxSTC_HJ_COMMENTDOC # 44
|
||||
wxSTC_HJ_COMMENTLINE = stc.wxSTC_HJ_COMMENTLINE # 43
|
||||
wxSTC_HJ_DEFAULT = stc.wxSTC_HJ_DEFAULT # 41
|
||||
wxSTC_HJ_DOUBLESTRING = stc.wxSTC_HJ_DOUBLESTRING # 48
|
||||
wxSTC_HJ_KEYWORD = stc.wxSTC_HJ_KEYWORD # 47
|
||||
wxSTC_HJ_NUMBER = stc.wxSTC_HJ_NUMBER # 45
|
||||
wxSTC_HJ_REGEX = stc.wxSTC_HJ_REGEX # 52
|
||||
wxSTC_HJ_SINGLESTRING = stc.wxSTC_HJ_SINGLESTRING # 49
|
||||
wxSTC_HJ_START = stc.wxSTC_HJ_START # 40
|
||||
wxSTC_HJ_STRINGEOL = stc.wxSTC_HJ_STRINGEOL # 51
|
||||
wxSTC_HJ_SYMBOLS = stc.wxSTC_HJ_SYMBOLS # 50
|
||||
wxSTC_HJ_WORD = stc.wxSTC_HJ_WORD # 46
|
||||
wxSTC_HPA_CHARACTER = stc.wxSTC_HPA_CHARACTER # 110
|
||||
wxSTC_HPA_CLASSNAME = stc.wxSTC_HPA_CLASSNAME # 114
|
||||
wxSTC_HPA_COMMENTLINE = stc.wxSTC_HPA_COMMENTLINE # 107
|
||||
wxSTC_HPA_DEFAULT = stc.wxSTC_HPA_DEFAULT # 106
|
||||
wxSTC_HPA_DEFNAME = stc.wxSTC_HPA_DEFNAME # 115
|
||||
wxSTC_HPA_IDENTIFIER = stc.wxSTC_HPA_IDENTIFIER # 117
|
||||
wxSTC_HPA_NUMBER = stc.wxSTC_HPA_NUMBER # 108
|
||||
wxSTC_HPA_OPERATOR = stc.wxSTC_HPA_OPERATOR # 116
|
||||
wxSTC_HPA_START = stc.wxSTC_HPA_START # 105
|
||||
wxSTC_HPA_STRING = stc.wxSTC_HPA_STRING # 109
|
||||
wxSTC_HPA_TRIPLE = stc.wxSTC_HPA_TRIPLE # 112
|
||||
wxSTC_HPA_TRIPLEDOUBLE = stc.wxSTC_HPA_TRIPLEDOUBLE # 113
|
||||
wxSTC_HPA_WORD = stc.wxSTC_HPA_WORD # 111
|
||||
wxSTC_HPHP_COMMENT = stc.wxSTC_HPHP_COMMENT # 124
|
||||
wxSTC_HPHP_COMMENTLINE = stc.wxSTC_HPHP_COMMENTLINE # 125
|
||||
wxSTC_HPHP_DEFAULT = stc.wxSTC_HPHP_DEFAULT # 118
|
||||
wxSTC_HPHP_HSTRING = stc.wxSTC_HPHP_HSTRING # 119
|
||||
wxSTC_HPHP_HSTRING_VARIABLE = stc.wxSTC_HPHP_HSTRING_VARIABLE # 126
|
||||
wxSTC_HPHP_NUMBER = stc.wxSTC_HPHP_NUMBER # 122
|
||||
wxSTC_HPHP_OPERATOR = stc.wxSTC_HPHP_OPERATOR # 127
|
||||
wxSTC_HPHP_SIMPLESTRING = stc.wxSTC_HPHP_SIMPLESTRING # 120
|
||||
wxSTC_HPHP_VARIABLE = stc.wxSTC_HPHP_VARIABLE # 123
|
||||
wxSTC_HPHP_WORD = stc.wxSTC_HPHP_WORD # 121
|
||||
wxSTC_HP_CHARACTER = stc.wxSTC_HP_CHARACTER # 95
|
||||
wxSTC_HP_CLASSNAME = stc.wxSTC_HP_CLASSNAME # 99
|
||||
wxSTC_HP_COMMENTLINE = stc.wxSTC_HP_COMMENTLINE # 92
|
||||
wxSTC_HP_DEFAULT = stc.wxSTC_HP_DEFAULT # 91
|
||||
wxSTC_HP_DEFNAME = stc.wxSTC_HP_DEFNAME # 100
|
||||
wxSTC_HP_IDENTIFIER = stc.wxSTC_HP_IDENTIFIER # 102
|
||||
wxSTC_HP_NUMBER = stc.wxSTC_HP_NUMBER # 93
|
||||
wxSTC_HP_OPERATOR = stc.wxSTC_HP_OPERATOR # 101
|
||||
wxSTC_HP_START = stc.wxSTC_HP_START # 90
|
||||
wxSTC_HP_STRING = stc.wxSTC_HP_STRING # 94
|
||||
wxSTC_HP_TRIPLE = stc.wxSTC_HP_TRIPLE # 97
|
||||
wxSTC_HP_TRIPLEDOUBLE = stc.wxSTC_HP_TRIPLEDOUBLE # 98
|
||||
wxSTC_HP_WORD = stc.wxSTC_HP_WORD # 96
|
||||
wxSTC_H_ASP = stc.wxSTC_H_ASP # 15
|
||||
wxSTC_H_ASPAT = stc.wxSTC_H_ASPAT # 16
|
||||
wxSTC_H_ATTRIBUTE = stc.wxSTC_H_ATTRIBUTE # 3
|
||||
wxSTC_H_ATTRIBUTEUNKNOWN = stc.wxSTC_H_ATTRIBUTEUNKNOWN # 4
|
||||
wxSTC_H_CDATA = stc.wxSTC_H_CDATA # 17
|
||||
wxSTC_H_COMMENT = stc.wxSTC_H_COMMENT # 9
|
||||
wxSTC_H_DEFAULT = stc.wxSTC_H_DEFAULT # 0
|
||||
wxSTC_H_DOUBLESTRING = stc.wxSTC_H_DOUBLESTRING # 6
|
||||
wxSTC_H_ENTITY = stc.wxSTC_H_ENTITY # 10
|
||||
wxSTC_H_NUMBER = stc.wxSTC_H_NUMBER # 5
|
||||
wxSTC_H_OTHER = stc.wxSTC_H_OTHER # 8
|
||||
wxSTC_H_QUESTION = stc.wxSTC_H_QUESTION # 18
|
||||
wxSTC_H_SCRIPT = stc.wxSTC_H_SCRIPT # 14
|
||||
wxSTC_H_SGML_1ST_PARAM = stc.wxSTC_H_SGML_1ST_PARAM # 23
|
||||
wxSTC_H_SGML_1ST_PARAM_COMMENT = stc.wxSTC_H_SGML_1ST_PARAM_COMMENT # 30
|
||||
wxSTC_H_SGML_BLOCK_DEFAULT = stc.wxSTC_H_SGML_BLOCK_DEFAULT # 31
|
||||
wxSTC_H_SGML_COMMAND = stc.wxSTC_H_SGML_COMMAND # 22
|
||||
wxSTC_H_SGML_COMMENT = stc.wxSTC_H_SGML_COMMENT # 29
|
||||
wxSTC_H_SGML_DEFAULT = stc.wxSTC_H_SGML_DEFAULT # 21
|
||||
wxSTC_H_SGML_DOUBLESTRING = stc.wxSTC_H_SGML_DOUBLESTRING # 24
|
||||
wxSTC_H_SGML_ENTITY = stc.wxSTC_H_SGML_ENTITY # 28
|
||||
wxSTC_H_SGML_ERROR = stc.wxSTC_H_SGML_ERROR # 26
|
||||
wxSTC_H_SGML_SIMPLESTRING = stc.wxSTC_H_SGML_SIMPLESTRING # 25
|
||||
wxSTC_H_SGML_SPECIAL = stc.wxSTC_H_SGML_SPECIAL # 27
|
||||
wxSTC_H_SINGLESTRING = stc.wxSTC_H_SINGLESTRING # 7
|
||||
wxSTC_H_TAG = stc.wxSTC_H_TAG # 1
|
||||
wxSTC_H_TAGEND = stc.wxSTC_H_TAGEND # 11
|
||||
wxSTC_H_TAGUNKNOWN = stc.wxSTC_H_TAGUNKNOWN # 2
|
||||
wxSTC_H_VALUE = stc.wxSTC_H_VALUE # 19
|
||||
wxSTC_H_XCCOMMENT = stc.wxSTC_H_XCCOMMENT # 20
|
||||
wxSTC_H_XMLEND = stc.wxSTC_H_XMLEND # 13
|
||||
wxSTC_H_XMLSTART = stc.wxSTC_H_XMLSTART # 12
|
||||
wxSTC_INDIC0_MASK = stc.wxSTC_INDIC0_MASK # 32
|
||||
wxSTC_INDIC1_MASK = stc.wxSTC_INDIC1_MASK # 64
|
||||
wxSTC_INDIC2_MASK = stc.wxSTC_INDIC2_MASK # 128
|
||||
wxSTC_INDICS_MASK = stc.wxSTC_INDICS_MASK # 224
|
||||
wxSTC_INDIC_DIAGONAL = stc.wxSTC_INDIC_DIAGONAL # 3
|
||||
wxSTC_INDIC_MAX = stc.wxSTC_INDIC_MAX # 7
|
||||
wxSTC_INDIC_PLAIN = stc.wxSTC_INDIC_PLAIN # 0
|
||||
wxSTC_INDIC_SQUIGGLE = stc.wxSTC_INDIC_SQUIGGLE # 1
|
||||
wxSTC_INDIC_STRIKE = stc.wxSTC_INDIC_STRIKE # 4
|
||||
wxSTC_INDIC_TT = stc.wxSTC_INDIC_TT # 2
|
||||
wxSTC_INVALID_POSITION = stc.wxSTC_INVALID_POSITION # -1
|
||||
wxSTC_KEY_ADD = stc.wxSTC_KEY_ADD # 310
|
||||
wxSTC_KEY_BACK = stc.wxSTC_KEY_BACK # 8
|
||||
wxSTC_KEY_DELETE = stc.wxSTC_KEY_DELETE # 308
|
||||
wxSTC_KEY_DIVIDE = stc.wxSTC_KEY_DIVIDE # 312
|
||||
wxSTC_KEY_DOWN = stc.wxSTC_KEY_DOWN # 300
|
||||
wxSTC_KEY_END = stc.wxSTC_KEY_END # 305
|
||||
wxSTC_KEY_ESCAPE = stc.wxSTC_KEY_ESCAPE # 7
|
||||
wxSTC_KEY_HOME = stc.wxSTC_KEY_HOME # 304
|
||||
wxSTC_KEY_INSERT = stc.wxSTC_KEY_INSERT # 309
|
||||
wxSTC_KEY_LEFT = stc.wxSTC_KEY_LEFT # 302
|
||||
wxSTC_KEY_NEXT = stc.wxSTC_KEY_NEXT # 307
|
||||
wxSTC_KEY_PRIOR = stc.wxSTC_KEY_PRIOR # 306
|
||||
wxSTC_KEY_RETURN = stc.wxSTC_KEY_RETURN # 13
|
||||
wxSTC_KEY_RIGHT = stc.wxSTC_KEY_RIGHT # 303
|
||||
wxSTC_KEY_SUBTRACT = stc.wxSTC_KEY_SUBTRACT # 311
|
||||
wxSTC_KEY_TAB = stc.wxSTC_KEY_TAB # 9
|
||||
wxSTC_KEY_UP = stc.wxSTC_KEY_UP # 301
|
||||
wxSTC_LASTSTEPINUNDOREDO = stc.wxSTC_LASTSTEPINUNDOREDO # 256
|
||||
wxSTC_LEXER_START = stc.wxSTC_LEXER_START # 4000
|
||||
wxSTC_LEX_ADA = stc.wxSTC_LEX_ADA # 20
|
||||
wxSTC_LEX_ASP = stc.wxSTC_LEX_ASP # 29
|
||||
wxSTC_LEX_AUTOMATIC = stc.wxSTC_LEX_AUTOMATIC # 1000
|
||||
wxSTC_LEX_AVE = stc.wxSTC_LEX_AVE # 19
|
||||
wxSTC_LEX_BAAN = stc.wxSTC_LEX_BAAN # 31
|
||||
wxSTC_LEX_BATCH = stc.wxSTC_LEX_BATCH # 12
|
||||
wxSTC_LEX_BULLANT = stc.wxSTC_LEX_BULLANT # 27
|
||||
wxSTC_LEX_CONF = stc.wxSTC_LEX_CONF # 17
|
||||
wxSTC_LEX_CONTAINER = stc.wxSTC_LEX_CONTAINER # 0
|
||||
wxSTC_LEX_CPP = stc.wxSTC_LEX_CPP # 3
|
||||
wxSTC_LEX_DIFF = stc.wxSTC_LEX_DIFF # 16
|
||||
wxSTC_LEX_EIFFEL = stc.wxSTC_LEX_EIFFEL # 23
|
||||
wxSTC_LEX_EIFFELKW = stc.wxSTC_LEX_EIFFELKW # 24
|
||||
wxSTC_LEX_ERRORLIST = stc.wxSTC_LEX_ERRORLIST # 10
|
||||
wxSTC_LEX_HTML = stc.wxSTC_LEX_HTML # 4
|
||||
wxSTC_LEX_LATEX = stc.wxSTC_LEX_LATEX # 14
|
||||
wxSTC_LEX_LISP = stc.wxSTC_LEX_LISP # 21
|
||||
wxSTC_LEX_LUA = stc.wxSTC_LEX_LUA # 15
|
||||
wxSTC_LEX_MAKEFILE = stc.wxSTC_LEX_MAKEFILE # 11
|
||||
wxSTC_LEX_MATLAB = stc.wxSTC_LEX_MATLAB # 32
|
||||
wxSTC_LEX_NNCRONTAB = stc.wxSTC_LEX_NNCRONTAB # 26
|
||||
wxSTC_LEX_NULL = stc.wxSTC_LEX_NULL # 1
|
||||
wxSTC_LEX_PASCAL = stc.wxSTC_LEX_PASCAL # 18
|
||||
wxSTC_LEX_PERL = stc.wxSTC_LEX_PERL # 6
|
||||
wxSTC_LEX_PHP = stc.wxSTC_LEX_PHP # 30
|
||||
wxSTC_LEX_PROPERTIES = stc.wxSTC_LEX_PROPERTIES # 9
|
||||
wxSTC_LEX_PYTHON = stc.wxSTC_LEX_PYTHON # 2
|
||||
wxSTC_LEX_RUBY = stc.wxSTC_LEX_RUBY # 22
|
||||
wxSTC_LEX_SCRIPTOL = stc.wxSTC_LEX_SCRIPTOL # 33
|
||||
wxSTC_LEX_SQL = stc.wxSTC_LEX_SQL # 7
|
||||
wxSTC_LEX_TCL = stc.wxSTC_LEX_TCL # 25
|
||||
wxSTC_LEX_VB = stc.wxSTC_LEX_VB # 8
|
||||
wxSTC_LEX_VBSCRIPT = stc.wxSTC_LEX_VBSCRIPT # 28
|
||||
wxSTC_LEX_XCODE = stc.wxSTC_LEX_XCODE # 13
|
||||
wxSTC_LEX_XML = stc.wxSTC_LEX_XML # 5
|
||||
wxSTC_LISP_COMMENT = stc.wxSTC_LISP_COMMENT # 1
|
||||
wxSTC_LISP_DEFAULT = stc.wxSTC_LISP_DEFAULT # 0
|
||||
wxSTC_LISP_IDENTIFIER = stc.wxSTC_LISP_IDENTIFIER # 9
|
||||
wxSTC_LISP_KEYWORD = stc.wxSTC_LISP_KEYWORD # 3
|
||||
wxSTC_LISP_NUMBER = stc.wxSTC_LISP_NUMBER # 2
|
||||
wxSTC_LISP_OPERATOR = stc.wxSTC_LISP_OPERATOR # 10
|
||||
wxSTC_LISP_STRING = stc.wxSTC_LISP_STRING # 6
|
||||
wxSTC_LISP_STRINGEOL = stc.wxSTC_LISP_STRINGEOL # 8
|
||||
wxSTC_LUA_CHARACTER = stc.wxSTC_LUA_CHARACTER # 7
|
||||
wxSTC_LUA_COMMENT = stc.wxSTC_LUA_COMMENT # 1
|
||||
wxSTC_LUA_COMMENTDOC = stc.wxSTC_LUA_COMMENTDOC # 3
|
||||
wxSTC_LUA_COMMENTLINE = stc.wxSTC_LUA_COMMENTLINE # 2
|
||||
wxSTC_LUA_DEFAULT = stc.wxSTC_LUA_DEFAULT # 0
|
||||
wxSTC_LUA_IDENTIFIER = stc.wxSTC_LUA_IDENTIFIER # 11
|
||||
wxSTC_LUA_LITERALSTRING = stc.wxSTC_LUA_LITERALSTRING # 8
|
||||
wxSTC_LUA_NUMBER = stc.wxSTC_LUA_NUMBER # 4
|
||||
wxSTC_LUA_OPERATOR = stc.wxSTC_LUA_OPERATOR # 10
|
||||
wxSTC_LUA_PREPROCESSOR = stc.wxSTC_LUA_PREPROCESSOR # 9
|
||||
wxSTC_LUA_STRING = stc.wxSTC_LUA_STRING # 6
|
||||
wxSTC_LUA_STRINGEOL = stc.wxSTC_LUA_STRINGEOL # 12
|
||||
wxSTC_LUA_WORD = stc.wxSTC_LUA_WORD # 5
|
||||
wxSTC_LUA_WORD2 = stc.wxSTC_LUA_WORD2 # 13
|
||||
wxSTC_LUA_WORD3 = stc.wxSTC_LUA_WORD3 # 14
|
||||
wxSTC_LUA_WORD4 = stc.wxSTC_LUA_WORD4 # 15
|
||||
wxSTC_LUA_WORD5 = stc.wxSTC_LUA_WORD5 # 16
|
||||
wxSTC_LUA_WORD6 = stc.wxSTC_LUA_WORD6 # 17
|
||||
wxSTC_L_COMMAND = stc.wxSTC_L_COMMAND # 1
|
||||
wxSTC_L_COMMENT = stc.wxSTC_L_COMMENT # 4
|
||||
wxSTC_L_DEFAULT = stc.wxSTC_L_DEFAULT # 0
|
||||
wxSTC_L_MATH = stc.wxSTC_L_MATH # 3
|
||||
wxSTC_L_TAG = stc.wxSTC_L_TAG # 2
|
||||
wxSTC_MAKE_COMMENT = stc.wxSTC_MAKE_COMMENT # 1
|
||||
wxSTC_MAKE_DEFAULT = stc.wxSTC_MAKE_DEFAULT # 0
|
||||
wxSTC_MAKE_IDENTIFIER = stc.wxSTC_MAKE_IDENTIFIER # 3
|
||||
wxSTC_MAKE_IDEOL = stc.wxSTC_MAKE_IDEOL # 9
|
||||
wxSTC_MAKE_OPERATOR = stc.wxSTC_MAKE_OPERATOR # 4
|
||||
wxSTC_MAKE_PREPROCESSOR = stc.wxSTC_MAKE_PREPROCESSOR # 2
|
||||
wxSTC_MAKE_TARGET = stc.wxSTC_MAKE_TARGET # 5
|
||||
wxSTC_MARGIN_NUMBER = stc.wxSTC_MARGIN_NUMBER # 1
|
||||
wxSTC_MARGIN_SYMBOL = stc.wxSTC_MARGIN_SYMBOL # 0
|
||||
wxSTC_MARKER_MAX = stc.wxSTC_MARKER_MAX # 31
|
||||
wxSTC_MARKNUM_FOLDER = stc.wxSTC_MARKNUM_FOLDER # 30
|
||||
wxSTC_MARKNUM_FOLDEREND = stc.wxSTC_MARKNUM_FOLDEREND # 25
|
||||
wxSTC_MARKNUM_FOLDERMIDTAIL = stc.wxSTC_MARKNUM_FOLDERMIDTAIL # 27
|
||||
wxSTC_MARKNUM_FOLDEROPEN = stc.wxSTC_MARKNUM_FOLDEROPEN # 31
|
||||
wxSTC_MARKNUM_FOLDEROPENMID = stc.wxSTC_MARKNUM_FOLDEROPENMID # 26
|
||||
wxSTC_MARKNUM_FOLDERSUB = stc.wxSTC_MARKNUM_FOLDERSUB # 29
|
||||
wxSTC_MARKNUM_FOLDERTAIL = stc.wxSTC_MARKNUM_FOLDERTAIL # 28
|
||||
wxSTC_MARK_ARROW = stc.wxSTC_MARK_ARROW # 2
|
||||
wxSTC_MARK_ARROWDOWN = stc.wxSTC_MARK_ARROWDOWN # 6
|
||||
wxSTC_MARK_ARROWS = stc.wxSTC_MARK_ARROWS # 24
|
||||
wxSTC_MARK_BACKGROUND = stc.wxSTC_MARK_BACKGROUND # 22
|
||||
wxSTC_MARK_BOXMINUS = stc.wxSTC_MARK_BOXMINUS # 14
|
||||
wxSTC_MARK_BOXMINUSCONNECTED = stc.wxSTC_MARK_BOXMINUSCONNECTED # 15
|
||||
wxSTC_MARK_BOXPLUS = stc.wxSTC_MARK_BOXPLUS # 12
|
||||
wxSTC_MARK_BOXPLUSCONNECTED = stc.wxSTC_MARK_BOXPLUSCONNECTED # 13
|
||||
wxSTC_MARK_CHARACTER = stc.wxSTC_MARK_CHARACTER # 10000
|
||||
wxSTC_MARK_CIRCLE = stc.wxSTC_MARK_CIRCLE # 0
|
||||
wxSTC_MARK_CIRCLEMINUS = stc.wxSTC_MARK_CIRCLEMINUS # 20
|
||||
wxSTC_MARK_CIRCLEMINUSCONNECTED = stc.wxSTC_MARK_CIRCLEMINUSCONNECTED # 21
|
||||
wxSTC_MARK_CIRCLEPLUS = stc.wxSTC_MARK_CIRCLEPLUS # 18
|
||||
wxSTC_MARK_CIRCLEPLUSCONNECTED = stc.wxSTC_MARK_CIRCLEPLUSCONNECTED # 19
|
||||
wxSTC_MARK_DOTDOTDOT = stc.wxSTC_MARK_DOTDOTDOT # 23
|
||||
wxSTC_MARK_EMPTY = stc.wxSTC_MARK_EMPTY # 5
|
||||
wxSTC_MARK_LCORNER = stc.wxSTC_MARK_LCORNER # 10
|
||||
wxSTC_MARK_LCORNERCURVE = stc.wxSTC_MARK_LCORNERCURVE # 16
|
||||
wxSTC_MARK_MINUS = stc.wxSTC_MARK_MINUS # 7
|
||||
wxSTC_MARK_PLUS = stc.wxSTC_MARK_PLUS # 8
|
||||
wxSTC_MARK_ROUNDRECT = stc.wxSTC_MARK_ROUNDRECT # 1
|
||||
wxSTC_MARK_SHORTARROW = stc.wxSTC_MARK_SHORTARROW # 4
|
||||
wxSTC_MARK_SMALLRECT = stc.wxSTC_MARK_SMALLRECT # 3
|
||||
wxSTC_MARK_TCORNER = stc.wxSTC_MARK_TCORNER # 11
|
||||
wxSTC_MARK_TCORNERCURVE = stc.wxSTC_MARK_TCORNERCURVE # 17
|
||||
wxSTC_MARK_VLINE = stc.wxSTC_MARK_VLINE # 9
|
||||
wxSTC_MASK_FOLDERS = stc.wxSTC_MASK_FOLDERS # -33554432
|
||||
wxSTC_MATLAB_COMMAND = stc.wxSTC_MATLAB_COMMAND # 2
|
||||
wxSTC_MATLAB_COMMENT = stc.wxSTC_MATLAB_COMMENT # 1
|
||||
wxSTC_MATLAB_DEFAULT = stc.wxSTC_MATLAB_DEFAULT # 0
|
||||
wxSTC_MATLAB_IDENTIFIER = stc.wxSTC_MATLAB_IDENTIFIER # 7
|
||||
wxSTC_MATLAB_KEYWORD = stc.wxSTC_MATLAB_KEYWORD # 4
|
||||
wxSTC_MATLAB_NUMBER = stc.wxSTC_MATLAB_NUMBER # 3
|
||||
wxSTC_MATLAB_OPERATOR = stc.wxSTC_MATLAB_OPERATOR # 6
|
||||
wxSTC_MATLAB_STRING = stc.wxSTC_MATLAB_STRING # 5
|
||||
wxSTC_MODEVENTMASKALL = stc.wxSTC_MODEVENTMASKALL # 3959
|
||||
wxSTC_MOD_BEFOREDELETE = stc.wxSTC_MOD_BEFOREDELETE # 2048
|
||||
wxSTC_MOD_BEFOREINSERT = stc.wxSTC_MOD_BEFOREINSERT # 1024
|
||||
wxSTC_MOD_CHANGEFOLD = stc.wxSTC_MOD_CHANGEFOLD # 8
|
||||
wxSTC_MOD_CHANGEMARKER = stc.wxSTC_MOD_CHANGEMARKER # 512
|
||||
wxSTC_MOD_CHANGESTYLE = stc.wxSTC_MOD_CHANGESTYLE # 4
|
||||
wxSTC_MOD_DELETETEXT = stc.wxSTC_MOD_DELETETEXT # 2
|
||||
wxSTC_MOD_INSERTTEXT = stc.wxSTC_MOD_INSERTTEXT # 1
|
||||
wxSTC_NNCRONTAB_ASTERISK = stc.wxSTC_NNCRONTAB_ASTERISK # 6
|
||||
wxSTC_NNCRONTAB_COMMENT = stc.wxSTC_NNCRONTAB_COMMENT # 1
|
||||
wxSTC_NNCRONTAB_DEFAULT = stc.wxSTC_NNCRONTAB_DEFAULT # 0
|
||||
wxSTC_NNCRONTAB_ENVIRONMENT = stc.wxSTC_NNCRONTAB_ENVIRONMENT # 9
|
||||
wxSTC_NNCRONTAB_IDENTIFIER = stc.wxSTC_NNCRONTAB_IDENTIFIER # 10
|
||||
wxSTC_NNCRONTAB_KEYWORD = stc.wxSTC_NNCRONTAB_KEYWORD # 4
|
||||
wxSTC_NNCRONTAB_MODIFIER = stc.wxSTC_NNCRONTAB_MODIFIER # 5
|
||||
wxSTC_NNCRONTAB_NUMBER = stc.wxSTC_NNCRONTAB_NUMBER # 7
|
||||
wxSTC_NNCRONTAB_SECTION = stc.wxSTC_NNCRONTAB_SECTION # 3
|
||||
wxSTC_NNCRONTAB_STRING = stc.wxSTC_NNCRONTAB_STRING # 8
|
||||
wxSTC_NNCRONTAB_TASK = stc.wxSTC_NNCRONTAB_TASK # 2
|
||||
wxSTC_OPTIONAL_START = stc.wxSTC_OPTIONAL_START # 3000
|
||||
wxSTC_PERFORMED_REDO = stc.wxSTC_PERFORMED_REDO # 64
|
||||
wxSTC_PERFORMED_UNDO = stc.wxSTC_PERFORMED_UNDO # 32
|
||||
wxSTC_PERFORMED_USER = stc.wxSTC_PERFORMED_USER # 16
|
||||
wxSTC_PL_ARRAY = stc.wxSTC_PL_ARRAY # 13
|
||||
wxSTC_PL_BACKTICKS = stc.wxSTC_PL_BACKTICKS # 20
|
||||
wxSTC_PL_CHARACTER = stc.wxSTC_PL_CHARACTER # 7
|
||||
wxSTC_PL_COMMENTLINE = stc.wxSTC_PL_COMMENTLINE # 2
|
||||
wxSTC_PL_DATASECTION = stc.wxSTC_PL_DATASECTION # 21
|
||||
wxSTC_PL_DEFAULT = stc.wxSTC_PL_DEFAULT # 0
|
||||
wxSTC_PL_ERROR = stc.wxSTC_PL_ERROR # 1
|
||||
wxSTC_PL_HASH = stc.wxSTC_PL_HASH # 14
|
||||
wxSTC_PL_HERE_DELIM = stc.wxSTC_PL_HERE_DELIM # 22
|
||||
wxSTC_PL_HERE_Q = stc.wxSTC_PL_HERE_Q # 23
|
||||
wxSTC_PL_HERE_QQ = stc.wxSTC_PL_HERE_QQ # 24
|
||||
wxSTC_PL_HERE_QX = stc.wxSTC_PL_HERE_QX # 25
|
||||
wxSTC_PL_IDENTIFIER = stc.wxSTC_PL_IDENTIFIER # 11
|
||||
wxSTC_PL_LONGQUOTE = stc.wxSTC_PL_LONGQUOTE # 19
|
||||
wxSTC_PL_NUMBER = stc.wxSTC_PL_NUMBER # 4
|
||||
wxSTC_PL_OPERATOR = stc.wxSTC_PL_OPERATOR # 10
|
||||
wxSTC_PL_POD = stc.wxSTC_PL_POD # 3
|
||||
wxSTC_PL_PREPROCESSOR = stc.wxSTC_PL_PREPROCESSOR # 9
|
||||
wxSTC_PL_PUNCTUATION = stc.wxSTC_PL_PUNCTUATION # 8
|
||||
wxSTC_PL_REGEX = stc.wxSTC_PL_REGEX # 17
|
||||
wxSTC_PL_REGSUBST = stc.wxSTC_PL_REGSUBST # 18
|
||||
wxSTC_PL_SCALAR = stc.wxSTC_PL_SCALAR # 12
|
||||
wxSTC_PL_STRING = stc.wxSTC_PL_STRING # 6
|
||||
wxSTC_PL_STRING_Q = stc.wxSTC_PL_STRING_Q # 26
|
||||
wxSTC_PL_STRING_QQ = stc.wxSTC_PL_STRING_QQ # 27
|
||||
wxSTC_PL_STRING_QR = stc.wxSTC_PL_STRING_QR # 29
|
||||
wxSTC_PL_STRING_QW = stc.wxSTC_PL_STRING_QW # 30
|
||||
wxSTC_PL_STRING_QX = stc.wxSTC_PL_STRING_QX # 28
|
||||
wxSTC_PL_SYMBOLTABLE = stc.wxSTC_PL_SYMBOLTABLE # 15
|
||||
wxSTC_PL_WORD = stc.wxSTC_PL_WORD # 5
|
||||
wxSTC_PRINT_BLACKONWHITE = stc.wxSTC_PRINT_BLACKONWHITE # 2
|
||||
wxSTC_PRINT_COLOURONWHITE = stc.wxSTC_PRINT_COLOURONWHITE # 3
|
||||
wxSTC_PRINT_COLOURONWHITEDEFAULTBG = stc.wxSTC_PRINT_COLOURONWHITEDEFAULTBG # 4
|
||||
wxSTC_PRINT_INVERTLIGHT = stc.wxSTC_PRINT_INVERTLIGHT # 1
|
||||
wxSTC_PRINT_NORMAL = stc.wxSTC_PRINT_NORMAL # 0
|
||||
wxSTC_PROPS_ASSIGNMENT = stc.wxSTC_PROPS_ASSIGNMENT # 3
|
||||
wxSTC_PROPS_COMMENT = stc.wxSTC_PROPS_COMMENT # 1
|
||||
wxSTC_PROPS_DEFAULT = stc.wxSTC_PROPS_DEFAULT # 0
|
||||
wxSTC_PROPS_DEFVAL = stc.wxSTC_PROPS_DEFVAL # 4
|
||||
wxSTC_PROPS_SECTION = stc.wxSTC_PROPS_SECTION # 2
|
||||
wxSTC_P_CHARACTER = stc.wxSTC_P_CHARACTER # 4
|
||||
wxSTC_P_CLASSNAME = stc.wxSTC_P_CLASSNAME # 8
|
||||
wxSTC_P_COMMENTBLOCK = stc.wxSTC_P_COMMENTBLOCK # 12
|
||||
wxSTC_P_COMMENTLINE = stc.wxSTC_P_COMMENTLINE # 1
|
||||
wxSTC_P_DEFAULT = stc.wxSTC_P_DEFAULT # 0
|
||||
wxSTC_P_DEFNAME = stc.wxSTC_P_DEFNAME # 9
|
||||
wxSTC_P_IDENTIFIER = stc.wxSTC_P_IDENTIFIER # 11
|
||||
wxSTC_P_NUMBER = stc.wxSTC_P_NUMBER # 2
|
||||
wxSTC_P_OPERATOR = stc.wxSTC_P_OPERATOR # 10
|
||||
wxSTC_P_STRING = stc.wxSTC_P_STRING # 3
|
||||
wxSTC_P_STRINGEOL = stc.wxSTC_P_STRINGEOL # 13
|
||||
wxSTC_P_TRIPLE = stc.wxSTC_P_TRIPLE # 6
|
||||
wxSTC_P_TRIPLEDOUBLE = stc.wxSTC_P_TRIPLEDOUBLE # 7
|
||||
wxSTC_P_WORD = stc.wxSTC_P_WORD # 5
|
||||
wxSTC_SCMOD_ALT = stc.wxSTC_SCMOD_ALT # 4
|
||||
wxSTC_SCMOD_CTRL = stc.wxSTC_SCMOD_CTRL # 2
|
||||
wxSTC_SCMOD_SHIFT = stc.wxSTC_SCMOD_SHIFT # 1
|
||||
wxSTC_SCRIPTOL_CHARACTER = stc.wxSTC_SCRIPTOL_CHARACTER # 7
|
||||
wxSTC_SCRIPTOL_COMMENT = stc.wxSTC_SCRIPTOL_COMMENT # 1
|
||||
wxSTC_SCRIPTOL_COMMENTBASIC = stc.wxSTC_SCRIPTOL_COMMENTBASIC # 19
|
||||
wxSTC_SCRIPTOL_COMMENTDOC = stc.wxSTC_SCRIPTOL_COMMENTDOC # 3
|
||||
wxSTC_SCRIPTOL_COMMENTDOCKEYWORD = stc.wxSTC_SCRIPTOL_COMMENTDOCKEYWORD # 17
|
||||
wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR = stc.wxSTC_SCRIPTOL_COMMENTDOCKEYWORDERROR # 18
|
||||
wxSTC_SCRIPTOL_COMMENTLINE = stc.wxSTC_SCRIPTOL_COMMENTLINE # 2
|
||||
wxSTC_SCRIPTOL_COMMENTLINEDOC = stc.wxSTC_SCRIPTOL_COMMENTLINEDOC # 15
|
||||
wxSTC_SCRIPTOL_DEFAULT = stc.wxSTC_SCRIPTOL_DEFAULT # 0
|
||||
wxSTC_SCRIPTOL_IDENTIFIER = stc.wxSTC_SCRIPTOL_IDENTIFIER # 11
|
||||
wxSTC_SCRIPTOL_NUMBER = stc.wxSTC_SCRIPTOL_NUMBER # 4
|
||||
wxSTC_SCRIPTOL_OPERATOR = stc.wxSTC_SCRIPTOL_OPERATOR # 10
|
||||
wxSTC_SCRIPTOL_PREPROCESSOR = stc.wxSTC_SCRIPTOL_PREPROCESSOR # 9
|
||||
wxSTC_SCRIPTOL_REGEX = stc.wxSTC_SCRIPTOL_REGEX # 14
|
||||
wxSTC_SCRIPTOL_STRING = stc.wxSTC_SCRIPTOL_STRING # 6
|
||||
wxSTC_SCRIPTOL_STRINGEOL = stc.wxSTC_SCRIPTOL_STRINGEOL # 12
|
||||
wxSTC_SCRIPTOL_UUID = stc.wxSTC_SCRIPTOL_UUID # 8
|
||||
wxSTC_SCRIPTOL_VERBATIM = stc.wxSTC_SCRIPTOL_VERBATIM # 13
|
||||
wxSTC_SCRIPTOL_WORD = stc.wxSTC_SCRIPTOL_WORD # 5
|
||||
wxSTC_SCRIPTOL_WORD2 = stc.wxSTC_SCRIPTOL_WORD2 # 16
|
||||
wxSTC_START = stc.wxSTC_START # 2000
|
||||
wxSTC_STYLE_BRACEBAD = stc.wxSTC_STYLE_BRACEBAD # 35
|
||||
wxSTC_STYLE_BRACELIGHT = stc.wxSTC_STYLE_BRACELIGHT # 34
|
||||
wxSTC_STYLE_CONTROLCHAR = stc.wxSTC_STYLE_CONTROLCHAR # 36
|
||||
wxSTC_STYLE_DEFAULT = stc.wxSTC_STYLE_DEFAULT # 32
|
||||
wxSTC_STYLE_INDENTGUIDE = stc.wxSTC_STYLE_INDENTGUIDE # 37
|
||||
wxSTC_STYLE_LASTPREDEFINED = stc.wxSTC_STYLE_LASTPREDEFINED # 39
|
||||
wxSTC_STYLE_LINENUMBER = stc.wxSTC_STYLE_LINENUMBER # 33
|
||||
wxSTC_STYLE_MAX = stc.wxSTC_STYLE_MAX # 127
|
||||
wxSTC_TIME_FOREVER = stc.wxSTC_TIME_FOREVER # 10000000
|
||||
wxSTC_USE_POPUP = stc.wxSTC_USE_POPUP # 1
|
||||
wxSTC_VISIBLE_SLOP = stc.wxSTC_VISIBLE_SLOP # 1
|
||||
wxSTC_VISIBLE_STRICT = stc.wxSTC_VISIBLE_STRICT # 4
|
||||
wxSTC_WRAP_NONE = stc.wxSTC_WRAP_NONE # 0
|
||||
wxSTC_WRAP_WORD = stc.wxSTC_WRAP_WORD # 1
|
||||
wxSTC_WS_INVISIBLE = stc.wxSTC_WS_INVISIBLE # 0
|
||||
wxSTC_WS_VISIBLEAFTERINDENT = stc.wxSTC_WS_VISIBLEAFTERINDENT # 2
|
||||
wxSTC_WS_VISIBLEALWAYS = stc.wxSTC_WS_VISIBLEALWAYS # 1
|
||||
# End generated constants.
|
1409
wxPython/wxPython/lib/PyCrust/decor/stcDecor.py
Normal file
1409
wxPython/wxPython/lib/PyCrust/decor/stcDecor.py
Normal file
File diff suppressed because it is too large
Load Diff
58
wxPython/wxPython/lib/PyCrust/decor/wxAccelerators.py
Normal file
58
wxPython/wxPython/lib/PyCrust/decor/wxAccelerators.py
Normal file
@@ -0,0 +1,58 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxAcceleratorEntry:
|
||||
""""""
|
||||
|
||||
def GetCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFlags(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetKeyCode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxAcceleratorTable(wxObject):
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
370
wxPython/wxPython/lib/PyCrust/decor/wxApp.py
Normal file
370
wxPython/wxPython/lib/PyCrust/decor/wxApp.py
Normal file
@@ -0,0 +1,370 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxEvtHandler
|
||||
|
||||
|
||||
class wxPyApp(wxEvtHandler):
|
||||
"""Python Application base class.
|
||||
|
||||
It is used to:
|
||||
|
||||
- set and get application-wide properties;
|
||||
|
||||
- implement the windowing system message or event loop;
|
||||
|
||||
- initiate application processing via wxApp.OnInit;
|
||||
|
||||
- allow default processing of events not handled by other objects
|
||||
in the application."""
|
||||
|
||||
def __init__(self):
|
||||
"""Create a wxPyApp instance."""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Dispatch(self):
|
||||
"""Dispatches the next event in the windowing system event
|
||||
queue.
|
||||
|
||||
This can be used for programming event loops."""
|
||||
pass
|
||||
|
||||
def ExitMainLoop(self):
|
||||
"""Call this to explicitly exit the main message (event) loop.
|
||||
|
||||
You should normally exit the main loop (and the application)
|
||||
by deleting the top window, which wxPython does automatically."""
|
||||
pass
|
||||
|
||||
def GetAppName(self):
|
||||
"""Return the application name."""
|
||||
pass
|
||||
|
||||
def GetAssertMode(self):
|
||||
"""Return the current assertion mode."""
|
||||
pass
|
||||
|
||||
def GetAuto3D(self):
|
||||
"""Returns True if 3D control mode is on, False otherwise.
|
||||
Windows only."""
|
||||
pass
|
||||
|
||||
def GetClassName(self):
|
||||
"""Return the class name of the application."""
|
||||
pass
|
||||
|
||||
def GetExitOnFrameDelete(self):
|
||||
"""Returns True if the application will exit when the
|
||||
top-level window is deleted, False otherwise."""
|
||||
pass
|
||||
|
||||
def GetPrintMode(self):
|
||||
"""Deprecated."""
|
||||
pass
|
||||
|
||||
def GetTopWindow(self):
|
||||
"""Return the top window.
|
||||
|
||||
If the top window hasn't been set using wxApp.SetTopWindow,
|
||||
this method will find the first top-level window (frame or
|
||||
dialog) and return that."""
|
||||
pass
|
||||
|
||||
def GetUseBestVisual(self):
|
||||
"""Return True if the application will use the best visual on
|
||||
systems that support different visuals, False otherwise."""
|
||||
pass
|
||||
|
||||
def GetVendorName(self):
|
||||
"""Return the application's vendor name."""
|
||||
pass
|
||||
|
||||
def Initialized(self):
|
||||
"""Return True if the application has been initialized
|
||||
(i.e. if wxApp.OnInit has returned successfully). This can be
|
||||
useful for error message routines to determine which method of
|
||||
output is best for the current state of the program (some
|
||||
windowing systems may not like dialogs to pop up before the
|
||||
main loop has been entered)."""
|
||||
pass
|
||||
|
||||
def MainLoop(self):
|
||||
"""Called by wxWindows on creation of the application.
|
||||
Override this if you wish to provide your own
|
||||
(environment-dependent) main loop.
|
||||
|
||||
Return 0 under X, and the wParam of the WM_QUIT message under
|
||||
Windows."""
|
||||
pass
|
||||
|
||||
def OnAssert(self, file, line, cond, msg):
|
||||
"""Called when an assert failure occurs, i.e. the condition
|
||||
specified in wxASSERT macro evaluated to FALSE. It is only
|
||||
called in debug mode (when __WXDEBUG__ is defined) as asserts
|
||||
are not left in the release code at all.
|
||||
|
||||
The base class version show the default assert failure dialog
|
||||
box proposing to the user to stop the program, continue or
|
||||
ignore all subsequent asserts.
|
||||
|
||||
file is the name of the source file where the assert occured
|
||||
|
||||
line is the line number in this file where the assert occured
|
||||
|
||||
cond is the condition of the failed assert in string form
|
||||
|
||||
msg is the message specified as argument to wxASSERT_MSG or
|
||||
wxFAIL_MSG, will be NULL if just wxASSERT or wxFAIL was used"""
|
||||
pass
|
||||
|
||||
def OnExit(self):
|
||||
"""Provide this member function for any processing which needs
|
||||
to be done as the application is about to exit. OnExit is
|
||||
called after destroying all application windows and controls,
|
||||
but before wxWindows cleanup."""
|
||||
pass
|
||||
|
||||
def OnInit(self):
|
||||
"""This must be provided by the application, and will usually
|
||||
create the application's main window, optionally calling
|
||||
wxApp.SetTopWindow.
|
||||
|
||||
Return True to continue processing, False to exit the
|
||||
application."""
|
||||
pass
|
||||
|
||||
def OnInitGui(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Pending(self):
|
||||
"""Return True if unprocessed events are in the window system
|
||||
event queue."""
|
||||
pass
|
||||
|
||||
def ProcessIdle(self):
|
||||
"""Sends the EVT_IDLE event and is called inside the MainLoop.
|
||||
|
||||
You only need this if you implement your own main loop."""
|
||||
pass
|
||||
|
||||
def SetAppName(self, name):
|
||||
"""Set the name of the application."""
|
||||
pass
|
||||
|
||||
def SetAssertMode(self, mode):
|
||||
"""Lets you control how C++ assertions are processed.
|
||||
|
||||
Valid modes are: wxPYAPP_ASSERT_SUPPRESS,
|
||||
wxPYAPP_ASSERT_EXCEPTION, and wxPYAPP_ASSERT_DIALOG. Using
|
||||
_SUPPRESS will give you behavior like the old final builds and
|
||||
the assert will be ignored, _EXCEPTION is the new default
|
||||
described above, and _DIALOG is like the default in 2.3.3.1
|
||||
and prior hybrid builds. You can also combine _EXCEPTION and
|
||||
_DIALOG if you wish, although I don't know why you would."""
|
||||
pass
|
||||
|
||||
def SetAuto3D(self, auto3D):
|
||||
"""Switches automatic 3D controls on or off. Windows only.
|
||||
|
||||
If auto3D is True, all controls will be created with 3D
|
||||
appearances unless overridden for a control or dialog. The
|
||||
default is True."""
|
||||
pass
|
||||
|
||||
def SetClassName(self, name):
|
||||
"""Set the class name of the application."""
|
||||
pass
|
||||
|
||||
def SetExitOnFrameDelete(self, flag):
|
||||
"""If flag is True (the default), the application will exit
|
||||
when the top-level frame is deleted. If False, the
|
||||
application will continue to run."""
|
||||
pass
|
||||
|
||||
def SetPrintMode(self, mode):
|
||||
"""Deprecated."""
|
||||
pass
|
||||
|
||||
def SetTopWindow(self, window):
|
||||
"""Set the 'top' window.
|
||||
|
||||
You can call this from within wxApp.OnInit to let wxWindows
|
||||
know which is the main window. You don't have to set the top
|
||||
window; it is only a convenience so that (for example) certain
|
||||
dialogs without parents can use a specific window as the top
|
||||
window. If no top window is specified by the application,
|
||||
wxWindows just uses the first frame or dialog in its top-level
|
||||
window list, when it needs to use the top window."""
|
||||
pass
|
||||
|
||||
def SetUseBestVisual(self, flag):
|
||||
"""Allows the programmer to specify whether the application
|
||||
will use the best visual on systems that support several
|
||||
visual on the same display. This is typically the case under
|
||||
Solaris and IRIX, where the default visual is only 8-bit
|
||||
whereas certain applications are supposed to run in TrueColour
|
||||
mode.
|
||||
|
||||
Note that this function has to be called in the constructor of
|
||||
the wxApp instance and won't have any effect when called later
|
||||
on.
|
||||
|
||||
This function currently only has effect under GTK."""
|
||||
pass
|
||||
|
||||
def SetVendorName(self, name):
|
||||
"""Sets the name of application's vendor. The name will be
|
||||
used in registry access."""
|
||||
pass
|
||||
|
||||
def Yield(self, onlyIfNeeded=False):
|
||||
"""Yields control to pending messages in the windowing system.
|
||||
This can be useful, for example, when a time-consuming process
|
||||
writes to a text window. Without an occasional yield, the
|
||||
text window will not be updated properly, and on systems with
|
||||
cooperative multitasking, such as Windows 3.1 other processes
|
||||
will not respond.
|
||||
|
||||
Caution should be exercised, however, since yielding may allow
|
||||
the user to perform actions which are not compatible with the
|
||||
current task. Disabling menu items or whole menus during
|
||||
processing can avoid unwanted reentrance of code: see
|
||||
wx.wxSafeYield for a better function.
|
||||
|
||||
Calling Yield() recursively is normally an error and an assert
|
||||
failure is raised in debug build if such situation is
|
||||
detected. However if the the onlyIfNeeded parameter is True,
|
||||
the method will just silently return False instead."""
|
||||
pass
|
||||
|
||||
|
||||
class wxApp(wxPyApp):
|
||||
"""The main application class.
|
||||
|
||||
Inherit from this class and implement an OnInit method that
|
||||
creates a frame and then calls self.SetTopWindow(frame)."""
|
||||
|
||||
|
||||
## The following implementation was taken from the wx.py source
|
||||
## file. It is included here simply as a reference:
|
||||
|
||||
## _defRedirect = (wxPlatform == '__WXMSW__' or wxPlatform == '__WXMAC__')
|
||||
|
||||
## class wxApp(wxPyApp):
|
||||
## error = 'wxApp.error'
|
||||
## outputWindowClass = wxPyOnDemandOutputWindow
|
||||
|
||||
## def __init__(self, redirect=_defRedirect, filename=None,
|
||||
## useBestVisual=false):
|
||||
## pass
|
||||
## wxPyApp.__init__(self)
|
||||
## self.stdioWin = None
|
||||
## self.saveStdio = (sys.stdout, sys.stderr)
|
||||
|
||||
## # This has to be done before OnInit
|
||||
## self.SetUseBestVisual(useBestVisual)
|
||||
|
||||
## if redirect:
|
||||
## self.RedirectStdio(filename)
|
||||
|
||||
## # this initializes wxWindows and then calls our OnInit
|
||||
## _wxStart(self.OnInit)
|
||||
|
||||
## def __del__(self):
|
||||
## try:
|
||||
## self.RestoreStdio()
|
||||
## except:
|
||||
## pass
|
||||
|
||||
## def SetTopWindow(self, frame):
|
||||
## if self.stdioWin:
|
||||
## self.stdioWin.SetParent(frame)
|
||||
## wxPyApp.SetTopWindow(self, frame)
|
||||
|
||||
## def MainLoop(self):
|
||||
## wxPyApp.MainLoop(self)
|
||||
## self.RestoreStdio()
|
||||
|
||||
## def RedirectStdio(self, filename):
|
||||
## if filename:
|
||||
## sys.stdout = sys.stderr = open(filename, 'a')
|
||||
## else:
|
||||
## self.stdioWin = self.outputWindowClass()
|
||||
## sys.stdout = sys.stderr = self.stdioWin
|
||||
|
||||
## def RestoreStdio(self):
|
||||
## sys.stdout, sys.stderr = self.saveStdio
|
||||
|
||||
|
||||
class wxPyOnDemandOutputWindow:
|
||||
"""Used by wxApp to display stdout and stderr messages if app is
|
||||
created using wxApp(redirect=True). Mostly useful on Windows or
|
||||
Mac where apps aren't always launched from the command line."""
|
||||
pass
|
||||
|
||||
|
||||
class wxPySimpleApp(wxApp):
|
||||
"""Use instead of wxApp for simple apps with a simple frame or
|
||||
dialog, particularly for testing."""
|
||||
|
||||
def __init__(self, flag=0):
|
||||
"""Create a wxPySimpleApp instance.
|
||||
|
||||
flag is the same as wxApp's redirect parameter to redirect stdio."""
|
||||
pass
|
||||
|
||||
def OnInit(self):
|
||||
"""Automatically does a wxInitAllImageHandlers()."""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyWidgetTester(wxApp):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OnInit(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWidget(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSingleInstanceChecker:
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsAnotherRunning(self):
|
||||
""""""
|
||||
pass
|
210
wxPython/wxPython/lib/PyCrust/decor/wxBase.py
Normal file
210
wxPython/wxPython/lib/PyCrust/decor/wxBase.py
Normal file
@@ -0,0 +1,210 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxObject:
|
||||
"""Base class for all other wxPython classes."""
|
||||
|
||||
def __init__(self):
|
||||
"""Create a wxObject instance."""
|
||||
pass
|
||||
|
||||
def Destroy(self):
|
||||
"""Destroy the wxObject instance."""
|
||||
pass
|
||||
|
||||
def GetClassName(self):
|
||||
"""Return the name of the class."""
|
||||
pass
|
||||
|
||||
|
||||
class wxEvtHandler(wxObject):
|
||||
"""Base class that can handle events from the windowing system.
|
||||
|
||||
If the handler is part of a chain, the destructor will unlink
|
||||
itself and restore the previous and next handlers so that they
|
||||
point to each other."""
|
||||
|
||||
def __init__(self):
|
||||
"""Create a wxEvtHandler instance."""
|
||||
pass
|
||||
|
||||
def _setOORInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddPendingEvent(self, event):
|
||||
"""Post an event to be processed later.
|
||||
|
||||
event is an Event instance to add to process queue.
|
||||
|
||||
The difference between sending an event (using the
|
||||
ProcessEvent method) and posting it is that in the first case
|
||||
the event is processed before the function returns, while in
|
||||
the second case, the function returns immediately and the
|
||||
event will be processed sometime later (usually during the
|
||||
next event loop iteration).
|
||||
|
||||
A copy of event is made by the function, so the original can
|
||||
be deleted as soon as function returns (it is common that the
|
||||
original is created on the stack). This requires that the
|
||||
wxEvent::Clone method be implemented by event so that it can
|
||||
be duplicated and stored until it gets processed.
|
||||
|
||||
This is also the method to call for inter-thread
|
||||
communication. It will post events safely between different
|
||||
threads which means that this method is thread-safe by using
|
||||
critical sections where needed. In a multi-threaded program,
|
||||
you often need to inform the main GUI thread about the status
|
||||
of other working threads and such notification should be done
|
||||
using this method.
|
||||
|
||||
This method automatically wakes up idle handling if the
|
||||
underlying window system is currently idle and thus would not
|
||||
send any idle events. (Waking up idle handling is done
|
||||
calling wxWakeUpIdle.)"""
|
||||
pass
|
||||
|
||||
def Connect(self, id, lastId, eventType, func):
|
||||
"""Connects the given function dynamically with the event
|
||||
handler, id and event type. This is an alternative to the use
|
||||
of static event tables.
|
||||
|
||||
id is the identifier (or first of the identifier range) to be
|
||||
associated with the event handler function.
|
||||
|
||||
lastId is the second part of the identifier range to be
|
||||
associated with the event handler function.
|
||||
|
||||
eventType is the event type to be associated with this event
|
||||
handler.
|
||||
|
||||
function is the event handler function.
|
||||
|
||||
userData is data to be associated with the event table entry."""
|
||||
pass
|
||||
|
||||
def Disconnect(self, id, lastId=-1, eventType=wx.wxEVT_NULL):
|
||||
"""Disconnects the given function dynamically from the event
|
||||
handler, using the specified parameters as search criteria and
|
||||
returning True if a matching function has been found and
|
||||
removed. This method can only disconnect functions which have
|
||||
been added using the wxEvtHandler.Connect method. There is no
|
||||
way to disconnect functions connected using the (static) event
|
||||
tables.
|
||||
|
||||
id is the identifier (or first of the identifier range) to be
|
||||
associated with the event handler function.
|
||||
|
||||
lastId is the second part of the identifier range to be
|
||||
associated with the event handler function.
|
||||
|
||||
eventType is the event type to be associated with this event
|
||||
handler.
|
||||
|
||||
function is the event handler function.
|
||||
|
||||
userData is data to be associated with the event table entry."""
|
||||
pass
|
||||
|
||||
def GetEvtHandlerEnabled(self):
|
||||
"""Return True if the event handler is enabled, False
|
||||
otherwise."""
|
||||
pass
|
||||
|
||||
def GetNextHandler(self):
|
||||
"""Return the next handler in the chain."""
|
||||
pass
|
||||
|
||||
def GetPreviousHandler(self):
|
||||
"""Return the previous handler in the chain."""
|
||||
pass
|
||||
|
||||
def ProcessEvent(self, event):
|
||||
"""Processes an event, searching event tables and calling zero
|
||||
or more suitable event handler function(s). Return True if a
|
||||
suitable event handler function was found and executed, and
|
||||
the function did not call wxEvent.Skip().
|
||||
|
||||
event is an Event to process.
|
||||
|
||||
Normally, your application would not call this function: it is
|
||||
called in the wxPython implementation to dispatch incoming
|
||||
user interface events to the framework (and application).
|
||||
|
||||
However, you might need to call it if implementing new
|
||||
functionality (such as a new control) where you define new
|
||||
event types, as opposed to allowing the user to override
|
||||
virtual functions.
|
||||
|
||||
An instance where you might actually override the ProcessEvent
|
||||
function is where you want to direct event processing to event
|
||||
handlers not normally noticed by wxWindows. For example, in
|
||||
the document/view architecture, documents and views are
|
||||
potential event handlers. When an event reaches a frame,
|
||||
ProcessEvent will need to be called on the associated document
|
||||
and view in case event handler functions are associated with
|
||||
these objects. The property classes library (wxProperty) also
|
||||
overrides ProcessEvent for similar reasons.
|
||||
|
||||
The normal order of event table searching is as follows:
|
||||
|
||||
1. If the object is disabled (via a call to
|
||||
wxEvtHandler.SetEvtHandlerEnabled) the function skips to step
|
||||
(6).
|
||||
|
||||
2. If the object is a wxWindow, ProcessEvent is recursively
|
||||
called on the window's wxValidator. If this returns TRUE, the
|
||||
function exits.
|
||||
|
||||
3. SearchEventTable is called for this event handler. If this
|
||||
fails, the base class table is tried, and so on until no more
|
||||
tables exist or an appropriate function was found, in which
|
||||
case the function exits.
|
||||
|
||||
4. The search is applied down the entire chain of event
|
||||
handlers (usually the chain has a length of one). If this
|
||||
succeeds, the function exits.
|
||||
|
||||
5. If the object is a wxWindow and the event is a
|
||||
wxCommandEvent, ProcessEvent is recursively applied to the
|
||||
parent window's event handler. If this returns TRUE, the
|
||||
function exits.
|
||||
|
||||
6. Finally, ProcessEvent is called on the wxApp object.
|
||||
|
||||
See also:
|
||||
|
||||
wxEvtHandler::SearchEventTable"""
|
||||
pass
|
||||
|
||||
def SetEvtHandlerEnabled(self, enabled):
|
||||
"""Enable or disable the event handler.
|
||||
|
||||
You can use this function to avoid having to remove the event
|
||||
handler from the chain, for example when implementing a dialog
|
||||
editor and changing from edit to test mode."""
|
||||
pass
|
||||
|
||||
def SetNextHandler(self, handler):
|
||||
"""Set the pointer to the next handler."""
|
||||
pass
|
||||
|
||||
def SetPreviousHandler(self, handler):
|
||||
"""Set the pointer to the previous handler."""
|
||||
pass
|
||||
|
||||
|
485
wxPython/wxPython/lib/PyCrust/decor/wxClipDragDrop.py
Normal file
485
wxPython/wxPython/lib/PyCrust/decor/wxClipDragDrop.py
Normal file
@@ -0,0 +1,485 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxClipboard(wxObject):
|
||||
""""""
|
||||
|
||||
def AddData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Clear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Close(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Flush(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsOpened(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSupported(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Open(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def UsePrimarySelection(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDataFormat:
|
||||
""""""
|
||||
|
||||
def GetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDataObject:
|
||||
""""""
|
||||
|
||||
def GetAllFormats(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDataHere(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDataSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFormatCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPreferredFormat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSupportedFormat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDataObjectComposite(wxDataObject):
|
||||
""""""
|
||||
|
||||
def Add(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDataObjectSimple(wxDataObject):
|
||||
""""""
|
||||
|
||||
def GetFormat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFormat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyDataObjectSimple(wxDataObjectSimple):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxBitmapDataObject(wxDataObjectSimple):
|
||||
""""""
|
||||
|
||||
def GetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyBitmapDataObject(wxBitmapDataObject):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxCustomDataObject(wxDataObjectSimple):
|
||||
""""""
|
||||
|
||||
def GetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def TakeData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDragImage(wxObject):
|
||||
""""""
|
||||
|
||||
def BeginDrag(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def BeginDrag2(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EndDrag(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetImageRect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Hide(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Move(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RedrawImage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBackingBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Show(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDropSource:
|
||||
""""""
|
||||
|
||||
def DoDragDrop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDataObject(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCursor(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_GiveFeedback(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDropTarget:
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyDropTarget(wxDropTarget):
|
||||
""""""
|
||||
|
||||
def GetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDataObject(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDataObject(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnDragOver(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnDrop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnEnter(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnLeave(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileDataObject(wxDataObjectSimple):
|
||||
""""""
|
||||
|
||||
def GetFilenames(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileDropTarget(wxPyDropTarget):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnDragOver(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnDrop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnEnter(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnLeave(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTextDataObject(wxDataObjectSimple):
|
||||
""""""
|
||||
|
||||
def GetText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTextLength(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyTextDataObject(wxTextDataObject):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTextDropTarget(wxPyDropTarget):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnDragOver(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnDrop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnEnter(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnLeave(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxURLDataObject(wxDataObjectComposite):
|
||||
""""""
|
||||
|
||||
def GetURL(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetURL(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
199
wxPython/wxPython/lib/PyCrust/decor/wxConfig.py
Normal file
199
wxPython/wxPython/lib/PyCrust/decor/wxConfig.py
Normal file
@@ -0,0 +1,199 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxConfigBase:
|
||||
""""""
|
||||
|
||||
def DeleteAll(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteEntry(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteGroup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Exists(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ExpandEnvVars(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Flush(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAppName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEntryType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFirstEntry(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFirstGroup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNextEntry(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNextGroup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNumberOfEntries(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNumberOfGroups(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVendorName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasEntry(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasGroup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsExpandingEnvVars(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsRecordingDefaults(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Read(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReadBool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReadFloat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReadInt(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RenameEntry(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RenameGroup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetAppName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetExpandEnvVars(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRecordDefaults(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVendorName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Write(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def WriteBool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def WriteFloat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def WriteInt(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxConfig(wxConfigBase):
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileConfig(wxConfigBase):
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
1840
wxPython/wxPython/lib/PyCrust/decor/wxControls.py
Normal file
1840
wxPython/wxPython/lib/PyCrust/decor/wxControls.py
Normal file
File diff suppressed because it is too large
Load Diff
485
wxPython/wxPython/lib/PyCrust/decor/wxDataStructures.py
Normal file
485
wxPython/wxPython/lib/PyCrust/decor/wxDataStructures.py
Normal file
@@ -0,0 +1,485 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxPoint:
|
||||
""""""
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __add__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __eq__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __ne__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __nonzero__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __sub__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def asTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPoint2DDouble:
|
||||
""""""
|
||||
|
||||
def GetCrossProduct(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDistance(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDistanceSquare(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDotProduct(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFloor(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRounded(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVectorAngle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVectorLength(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Normalize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPolarCoordinates(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVectorAngle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVectorLength(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __eq__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __iadd__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __idiv__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __imul__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __isub__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __ne__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __neg__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __nonzero__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def asTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxRealPoint:
|
||||
""""""
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __add__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __eq__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __ne__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __nonzero__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __sub__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def asTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxRect:
|
||||
""""""
|
||||
|
||||
def GetBottom(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLeft(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWidth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Inflate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Inside(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBottom(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLeft(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWidth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __add__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __eq__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __ne__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __nonzero__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def asTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSize:
|
||||
""""""
|
||||
|
||||
def GetHeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWidth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWidth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __eq__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __ne__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __nonzero__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setitem__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def asTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
553
wxPython/wxPython/lib/PyCrust/decor/wxDateTime.py
Normal file
553
wxPython/wxPython/lib/PyCrust/decor/wxDateTime.py
Normal file
@@ -0,0 +1,553 @@
|
||||
__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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxDateSpan:
|
||||
""""""
|
||||
|
||||
def Add(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDays(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMonths(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTotalDays(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeeks(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetYears(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Multiply(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Neg(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDays(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMonths(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWeeks(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetYears(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Subtract(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __add__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __mul__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __neg__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __rmul__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __sub__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDateTime:
|
||||
""""""
|
||||
|
||||
def AddDS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddTS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Format(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FormatDate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FormatISODate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FormatISOTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FormatTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDayOfYear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetJDN(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetJulianDayNumber(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLastMonthDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLastWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMJD(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMillisecond(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinute(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetModifiedJulianDayNumber(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMonth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNextWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrevWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRataDie(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSecond(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTicks(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeek(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeekDayInSameWeek(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeekOfMonth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeekOfYear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetYear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetYearDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsBetween(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsDST(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEarlierThan(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEqualTo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEqualUpTo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsLaterThan(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSameDate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSameTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsStrictlyBetween(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsValid(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsWorkDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def MakeGMT(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def MakeTimezone(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ParseDate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ParseDateTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ParseFormat(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ParseRfc822Date(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ParseTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ResetTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHMS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetJDN(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMillisecond(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinute(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMonth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSecond(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTimeT(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToCurrent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToLastMonthDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToLastWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToNextWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToPrevWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToTheWeek(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToWeekDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToWeekDayInSameWeek(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToYearDay(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetYear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Subtract(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SubtractDS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SubtractTS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ToGMT(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ToTimezone(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __add__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __cmp__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __sub__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _wxDateTimePtr__add__DS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _wxDateTimePtr__add__TS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _wxDateTimePtr__sub__DS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _wxDateTimePtr__sub__DT(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _wxDateTimePtr__sub__TS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTimeSpan:
|
||||
""""""
|
||||
|
||||
def Abs(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Add(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Format(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDays(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHours(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMilliseconds(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinutes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSeconds(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeeks(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEqualTo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsLongerThan(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsNegative(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsNull(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsPositive(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsShorterThan(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Multiply(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Neg(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Subtract(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __add__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __cmp__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __mul__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __neg__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __rmul__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __sub__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
57
wxPython/wxPython/lib/PyCrust/decor/wxDecor.py
Normal file
57
wxPython/wxPython/lib/PyCrust/decor/wxDecor.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 = {
|
||||
'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.
|
471
wxPython/wxPython/lib/PyCrust/decor/wxDialogs.py
Normal file
471
wxPython/wxPython/lib/PyCrust/decor/wxDialogs.py
Normal file
@@ -0,0 +1,471 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
from wxFrames import wxFrame
|
||||
import wxParameters as wx
|
||||
from wxWindow import wxTopLevelWindow
|
||||
|
||||
|
||||
class wxDialog(wxTopLevelWindow):
|
||||
""""""
|
||||
|
||||
def Centre(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CreateButtonSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CreateTextSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EndModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetReturnCode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetReturnCode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxColourDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetColourData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxColourData(wxObject):
|
||||
""""""
|
||||
|
||||
def GetChooseFull(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCustomColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetChooseFull(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCustomColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxColourDatabase(wxObject):
|
||||
""""""
|
||||
|
||||
def Append(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDirDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetMessage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMessage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetDirectory(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFilename(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFilenames(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFilterIndex(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMessage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPaths(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWildcard(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDirectory(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFilename(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFilterIndex(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMessage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWildcard(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFindReplaceDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFindReplaceData(wxObject):
|
||||
""""""
|
||||
|
||||
def GetFindString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFlags(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetReplaceString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFindString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFlags(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetReplaceString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFontDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetFontData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFontData(wxObject):
|
||||
""""""
|
||||
|
||||
def EnableEffects(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAllowSymbols(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetChosenFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEnableEffects(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetInitialFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetShowHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetAllowSymbols(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetChosenFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetInitialFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRange(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetShowHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMessageDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
class wxMultiChoiceDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetSelections(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSelections(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxProgressDialog(wxFrame):
|
||||
""""""
|
||||
|
||||
def Resume(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Update(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSingleChoiceDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetSelection(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStringSelection(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSelection(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTextEntryDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetValue(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetValue(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
1466
wxPython/wxPython/lib/PyCrust/decor/wxDrawing.py
Normal file
1466
wxPython/wxPython/lib/PyCrust/decor/wxDrawing.py
Normal file
File diff suppressed because it is too large
Load Diff
25
wxPython/wxPython/lib/PyCrust/decor/wxErrors.py
Normal file
25
wxPython/wxPython/lib/PyCrust/decor/wxErrors.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""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 wxPyAssertionError(AssertionError):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyDeadObjectError(AttributeError):
|
||||
"""Instances of wx objects that are OOR capable will have their
|
||||
__class__ attribute changed to a _wxPyDeadObject class when the
|
||||
C++ object is deleted. Subsequent attempts to access object
|
||||
attributes will raise this error, rather than segfault."""
|
||||
pass
|
794
wxPython/wxPython/lib/PyCrust/decor/wxEventFunctions.py
Normal file
794
wxPython/wxPython/lib/PyCrust/decor/wxEventFunctions.py
Normal file
@@ -0,0 +1,794 @@
|
||||
"""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.
|
||||
|
||||
|
||||
def EVT_ACTIVATE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_ACTIVATE_APP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_BUTTON(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CALCULATE_LAYOUT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CHAR(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CHAR_HOOK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CHECKBOX(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CHECKLISTBOX(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CHILD_FOCUS(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CHOICE(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CLOSE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMBOBOX(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND(win, id, cmd, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_ENTER(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_FIND():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_FIND_CLOSE():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_FIND_NEXT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_FIND_REPLACE():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_FIND_REPLACE_ALL():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_KILL_FOCUS(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_LEFT_CLICK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_LEFT_DCLICK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_RIGHT_CLICK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_RIGHT_DCLICK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_BOTTOM(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_ENDSCROLL(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_LINEUP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_PAGEUP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SCROLL_TOP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_COMMAND_SET_FOCUS(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_CONTEXT_MENU(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_DISPLAY_CHANGED(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_DROP_FILES(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_END_PROCESS(eh, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_END_SESSION(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_ENTER_WINDOW(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_ERASE_BACKGROUND(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_ICONIZE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_IDLE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_INIT_DIALOG(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_JOYSTICK_EVENTS(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_JOY_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_JOY_MOVE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_JOY_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_JOY_ZMOVE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_KEY_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_KEY_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_KILL_FOCUS(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LEAVE_WINDOW(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LEFT_DCLICK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LEFT_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LEFT_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LISTBOX(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LISTBOX_DCLICK(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_BEGIN_DRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_BEGIN_LABEL_EDIT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_BEGIN_RDRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_CACHE_HINT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_COL_BEGIN_DRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_COL_CLICK():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_COL_DRAGGING():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_COL_END_DRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_COL_RIGHT_CLICK():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_DELETE_ALL_ITEMS():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_DELETE_ITEM():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_END_LABEL_EDIT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_GET_INFO():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_INSERT_ITEM():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_ITEM_ACTIVATED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_ITEM_DESELECTED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_ITEM_FOCUSED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_ITEM_MIDDLE_CLICK():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_ITEM_RIGHT_CLICK():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_ITEM_SELECTED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_KEY_DOWN():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_LIST_SET_INFO():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MAXIMIZE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MENU(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MENU_CLOSE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MENU_HIGHLIGHT(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MENU_HIGHLIGHT_ALL(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MENU_OPEN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MENU_RANGE(win, id1, id2, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MIDDLE_DCLICK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MIDDLE_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MIDDLE_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MOTION(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MOUSEWHEEL(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MOUSE_CAPTURE_CHANGED(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MOUSE_EVENTS(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_MOVE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_NAVIGATION_KEY(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_PAINT(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_PALETTE_CHANGED(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_QUERY_END_SESSION(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_QUERY_LAYOUT_INFO():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_QUERY_NEW_PALETTE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_RADIOBOX(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_RADIOBUTTON(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_RIGHT_DCLICK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_RIGHT_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_RIGHT_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SASH_DRAGGED(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_BOTTOM(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_LINEDOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_LINEUP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_PAGEDOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_PAGEUP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_THUMBRELEASE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_THUMBTRACK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLLWIN_TOP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_BOTTOM(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_ENDSCROLL(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_LINEDOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_LINEUP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_PAGEDOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_PAGEUP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_THUMBRELEASE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_THUMBTRACK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SCROLL_TOP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SET_CURSOR(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SET_FOCUS(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SHOW(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SIZE():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SLIDER(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPIN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPINCTRL(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPIN_DOWN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPIN_UP(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPLITTER_DOUBLECLICKED(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SPLITTER_UNSPLIT(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_SYS_COLOUR_CHANGED(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_LEFT_DCLICK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_LEFT_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_LEFT_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_MOVE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_RIGHT_DCLICK(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_RIGHT_DOWN(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TASKBAR_RIGHT_UP(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TEXT(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TEXT_ENTER(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TEXT_MAXLEN(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TEXT_URL(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TIMER(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TOGGLEBUTTON(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TOOL(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TOOL_ENTER(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TOOL_RANGE(win, id, id2, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TOOL_RCLICKED(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_BEGIN_DRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_BEGIN_LABEL_EDIT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_BEGIN_RDRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_DELETE_ITEM():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_END_DRAG():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_END_LABEL_EDIT():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_GET_INFO():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_ACTIVATED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_COLLAPSED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_COLLAPSING():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_EXPANDED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_EXPANDING():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_MIDDLE_CLICK():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_ITEM_RIGHT_CLICK():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_KEY_DOWN():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_SEL_CHANGED():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_SEL_CHANGING():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_TREE_SET_INFO():
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_UPDATE_UI(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_UPDATE_UI_RANGE(win, id, id2, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_VLBOX(win, id, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_WINDOW_CREATE(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EVT_WINDOW_DESTROY(win, func):
|
||||
""""""
|
||||
pass
|
||||
|
1275
wxPython/wxPython/lib/PyCrust/decor/wxEvents.py
Normal file
1275
wxPython/wxPython/lib/PyCrust/decor/wxEvents.py
Normal file
File diff suppressed because it is too large
Load Diff
193
wxPython/wxPython/lib/PyCrust/decor/wxFileSystem.py
Normal file
193
wxPython/wxPython/lib/PyCrust/decor/wxFileSystem.py
Normal file
@@ -0,0 +1,193 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxFSFile(wxObject):
|
||||
""""""
|
||||
|
||||
def GetAnchor(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLocation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMimeType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetModificationTime(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStream(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileSystem(wxObject):
|
||||
""""""
|
||||
|
||||
def ChangePathTo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindFirst(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindNext(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OpenFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxCPPFileSystemHandler(wxObject):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileSystemHandler(wxCPPFileSystemHandler):
|
||||
""""""
|
||||
|
||||
def CanOpen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindFirst(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindNext(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAnchor(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLeftLocation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMimeTypeFromExt(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetProtocol(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRightLocation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OpenFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxInternetFSHandler(wxCPPFileSystemHandler):
|
||||
""""""
|
||||
|
||||
def CanOpen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OpenFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMemoryFSHandler(wxCPPFileSystemHandler):
|
||||
""""""
|
||||
|
||||
def CanOpen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindFirst(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindNext(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OpenFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxZipFSHandler(wxCPPFileSystemHandler):
|
||||
""""""
|
||||
|
||||
def CanOpen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindFirst(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindNext(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OpenFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
315
wxPython/wxPython/lib/PyCrust/decor/wxFrames.py
Normal file
315
wxPython/wxPython/lib/PyCrust/decor/wxFrames.py
Normal file
@@ -0,0 +1,315 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
from wxWindow import wxTopLevelWindow, wxWindow
|
||||
|
||||
|
||||
class wxFrame(wxTopLevelWindow):
|
||||
""""""
|
||||
|
||||
def Command(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CreateStatusBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CreateToolBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DoGiveHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientAreaOrigin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMenuBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStatusBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStatusBarPane(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PopStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ProcessCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PushStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SendSizeEvent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMenuBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStatusBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStatusBarPane(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStatusWidths(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLayoutAlgorithm(wxObject):
|
||||
""""""
|
||||
|
||||
def LayoutFrame(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LayoutMDIFrame(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LayoutWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMDIChildFrame(wxFrame):
|
||||
""""""
|
||||
|
||||
def Activate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Maximize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Restore(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMDIClientWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMDIParentFrame(wxFrame):
|
||||
""""""
|
||||
|
||||
def ActivateNext(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ActivatePrevious(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ArrangeIcons(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Cascade(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetActiveChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Tile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMiniFrame(wxFrame):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSplashScreen(wxFrame):
|
||||
""""""
|
||||
|
||||
def GetSplashStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSplashWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTimeout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSplashScreenWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def GetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxStatusBar(wxWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBorderX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBorderY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFieldRect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFieldsCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PopStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PushStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFieldsCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinHeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStatusText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStatusWidths(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
1272
wxPython/wxPython/lib/PyCrust/decor/wxFunctions.py
Normal file
1272
wxPython/wxPython/lib/PyCrust/decor/wxFunctions.py
Normal file
File diff suppressed because it is too large
Load Diff
127
wxPython/wxPython/lib/PyCrust/decor/wxHelp.py
Normal file
127
wxPython/wxPython/lib/PyCrust/decor/wxHelp.py
Normal file
@@ -0,0 +1,127 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
from wxWindow import wxWindow
|
||||
|
||||
|
||||
class wxPopupWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Position(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPopupTransientWindow(wxPopupWindow):
|
||||
""""""
|
||||
|
||||
def Dismiss(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Popup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTipProvider:
|
||||
""""""
|
||||
|
||||
def GetCurrentTip(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTip(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PreprocessTip(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyTipProvider(wxTipProvider):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTipWindow(wxPopupTransientWindow):
|
||||
""""""
|
||||
|
||||
def Close(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBoundingRect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxToolTip(wxObject):
|
||||
""""""
|
||||
|
||||
def GetTip(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTip(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
142
wxPython/wxPython/lib/PyCrust/decor/wxImageHandlers.py
Normal file
142
wxPython/wxPython/lib/PyCrust/decor/wxImageHandlers.py
Normal file
@@ -0,0 +1,142 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxImageHandler(wxObject):
|
||||
""""""
|
||||
|
||||
def CanRead(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetExtension(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMimeType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetExtension(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMimeType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxBMPHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxGIFHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxICOHandler(wxBMPHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxCURHandler(wxICOHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxANIHandler(wxCURHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxJPEGHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPCXHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPNGHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPNMHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTIFFHandler(wxImageHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
197
wxPython/wxPython/lib/PyCrust/decor/wxJoystick.py
Normal file
197
wxPython/wxPython/lib/PyCrust/decor/wxJoystick.py
Normal file
@@ -0,0 +1,197 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxJoystick(wxObject):
|
||||
""""""
|
||||
|
||||
def GetButtonState(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetManufacturerId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxAxes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxButtons(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMovementThreshold(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNumberAxes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNumberButtons(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNumberJoysticks(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPOVCTSPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPOVPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPollingMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPollingMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetProductId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetProductName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRudderMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRudderMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRudderPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetUMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetUMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetUPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetXMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetXMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetYMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetYMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetZMax(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetZMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetZPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasPOV(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasPOV4Dir(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasPOVCTS(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasRudder(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasU(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasV(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasZ(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsOk(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReleaseCapture(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCapture(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMovementThreshold(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
80
wxPython/wxPython/lib/PyCrust/decor/wxLayoutConstraints.py
Normal file
80
wxPython/wxPython/lib/PyCrust/decor/wxLayoutConstraints.py
Normal file
@@ -0,0 +1,80 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxIndividualLayoutConstraint(wxObject):
|
||||
""""""
|
||||
|
||||
def Above(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Absolute(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AsIs(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Below(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LeftOf(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PercentOf(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RightOf(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SameAs(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Unconstrained(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLayoutConstraints(wxObject):
|
||||
""""""
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
145
wxPython/wxPython/lib/PyCrust/decor/wxLogging.py
Normal file
145
wxPython/wxPython/lib/PyCrust/decor/wxLogging.py
Normal file
@@ -0,0 +1,145 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxLog:
|
||||
""""""
|
||||
|
||||
def Flush(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVerbose(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasPendingMessages(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def TimeStamp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyLog(wxLog):
|
||||
""""""
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLogChain(wxLog):
|
||||
""""""
|
||||
|
||||
def GetOldLog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsPassingMessages(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PassMessages(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLogGui(wxLog):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLogNull:
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLogStderr(wxLog):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLogTextCtrl(wxLog):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLogWindow(wxLog):
|
||||
""""""
|
||||
|
||||
def GetFrame(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOldLog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsPassingMessages(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PassMessages(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Show(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
477
wxPython/wxPython/lib/PyCrust/decor/wxMenus.py
Normal file
477
wxPython/wxPython/lib/PyCrust/decor/wxMenus.py
Normal file
@@ -0,0 +1,477 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject, wxEvtHandler
|
||||
import wxParameters as wx
|
||||
from wxWindow import wxWindow
|
||||
|
||||
|
||||
class wxFileHistory(wxObject):
|
||||
""""""
|
||||
|
||||
def AddFileToHistory(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddFilesToMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddFilesToThisMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHistoryFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxFiles(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNoHistoryFiles(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Load(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveFileFromHistory(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Save(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def UseMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMenu(wxEvtHandler):
|
||||
""""""
|
||||
|
||||
def Append(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AppendCheckItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AppendItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AppendMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AppendRadioItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AppendSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Break(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Check(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Delete(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DestroyId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DestroyItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Enable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindItemById(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEventHandler(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHelpString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetInvokingWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMenuItemCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMenuItems(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetParent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTitle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Insert(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertCheckItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertRadioItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsAttached(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsChecked(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEnabled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Prepend(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependCheckItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependRadioItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Remove(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetEventHandler(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHelpString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetInvokingWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetParent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTitle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def UpdateUI(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMenuBar(wxWindow):
|
||||
""""""
|
||||
|
||||
def Append(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Check(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Enable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnableTop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindItemById(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindMenuItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHelpString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLabelTop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMenuCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Insert(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsChecked(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEnabled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEnabledTop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Remove(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Replace(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHelpString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLabelTop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
class wxMenuItem(wxObject):
|
||||
""""""
|
||||
|
||||
def Check(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Enable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAccel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetKind(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSubMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsCheckable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsChecked(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEnabled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSubMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetAccel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCheckable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSubMenu(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Toggle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
185
wxPython/wxPython/lib/PyCrust/decor/wxMimeTypes.py
Normal file
185
wxPython/wxPython/lib/PyCrust/decor/wxMimeTypes.py
Normal file
@@ -0,0 +1,185 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxFileType:
|
||||
""""""
|
||||
|
||||
def GetAllCommands(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDescription(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetExtensions(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetIcon(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetIconInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMimeType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMimeTypes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOpenCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDefaultIcon(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Unassociate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFileTypeInfo:
|
||||
""""""
|
||||
|
||||
def GetDescription(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetExtensions(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetExtensionsCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetIconFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetIconIndex(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMimeType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOpenCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetShortDesc(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsValid(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetIcon(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetShortDesc(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxMimeTypesManager:
|
||||
""""""
|
||||
|
||||
def AddFallback(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Associate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ClearData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnumAllFileTypes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFileTypeFromExtension(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFileTypeFromMimeType(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Initialize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReadMailcap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReadMimeTypes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Unassociate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
558
wxPython/wxPython/lib/PyCrust/decor/wxMisc.py
Normal file
558
wxPython/wxPython/lib/PyCrust/decor/wxMisc.py
Normal file
@@ -0,0 +1,558 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxArtProvider(wxObject):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxBusyCursor:
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxBusyInfo(wxObject):
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxCaret:
|
||||
""""""
|
||||
|
||||
def GetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPositionTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSizeTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Hide(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsOk(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Move(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def MoveXY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSizeWH(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Show(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxEncodingConverter(wxObject):
|
||||
""""""
|
||||
|
||||
def Convert(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Init(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxDirItemData(wxObject):
|
||||
""""""
|
||||
|
||||
def SetNewDirName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxEffects(wxObject):
|
||||
""""""
|
||||
|
||||
def DrawSunkenEdge(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDarkShadow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFaceColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHighlightColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLightShadow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMediumShadow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Set(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDarkShadow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFaceColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHighlightColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLightShadow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMediumShadow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def TileBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFontEnumerator:
|
||||
""""""
|
||||
|
||||
def EnumerateEncodings(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnumerateFacenames(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEncodings(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFacenames(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFontMapper:
|
||||
""""""
|
||||
|
||||
def CharsetToEncoding(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAltForEncoding(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEncodingAvailable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetConfig(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetConfigPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDialogParent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDialogTitle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLanguageInfo:
|
||||
""""""
|
||||
|
||||
def __getattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __setattr__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxLocale:
|
||||
""""""
|
||||
|
||||
def AddCatalog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCanonicalName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLanguage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLocale(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSysName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Init(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsLoaded(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsOk(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxNativeFontInfo:
|
||||
""""""
|
||||
|
||||
def FromString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FromUserString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEncoding(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFaceName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFamily(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPointSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetUnderlined(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Init(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetEncoding(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFaceName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFamily(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPointSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetUnderlined(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ToString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ToUserString(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyTimer(wxObject):
|
||||
""""""
|
||||
|
||||
def GetInterval(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsOneShot(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsRunning(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetOwner(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Start(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Stop(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxStopWatch:
|
||||
""""""
|
||||
|
||||
def Pause(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Resume(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Start(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Time(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSystemSettings:
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTimer(wxPyTimer):
|
||||
""""""
|
||||
|
||||
def __init__(self, evtHandler=None, id=-1):
|
||||
"""Create a wxTimer instance."""
|
||||
pass
|
||||
|
||||
|
||||
class wxWave(wxObject):
|
||||
""""""
|
||||
|
||||
def IsOk(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Play(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxWindowDisabler:
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
234
wxPython/wxPython/lib/PyCrust/decor/wxPanel.py
Normal file
234
wxPython/wxPython/lib/PyCrust/decor/wxPanel.py
Normal file
@@ -0,0 +1,234 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
from wxWindow import wxWindow
|
||||
|
||||
|
||||
class wxPanel(wxWindow):
|
||||
""""""
|
||||
|
||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxTAB_TRAVERSAL,
|
||||
name=wx.wxPyPanelNameStr):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self, parent, id, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxTAB_TRAVERSAL,
|
||||
name=wx.wxPyPanelNameStr):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InitDialog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyPanel(wxPanel):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_AcceptsFocus(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_AcceptsFocusFromKeyboard(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_AddChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetBestSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetClientSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetVirtualSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoMoveWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoSetClientSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoSetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoSetVirtualSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_GetMaxSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_InitDialog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_RemoveChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_TransferDataFromWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_TransferDataToWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_Validate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxScrolledWindow(wxPanel):
|
||||
""""""
|
||||
|
||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxHSCROLL|wx.wxVSCROLL,
|
||||
name=wx.wxPyPanelNameStr):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxHSCROLL|wx.wxVSCROLL,
|
||||
name=wx.wxPyPanelNameStr):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AdjustScrollbars(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CalcScrolledPosition(self, *args):
|
||||
"""*args can be a point or (x, y) tuple"""
|
||||
pass
|
||||
|
||||
def CalcScrolledPosition1(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CalcScrolledPosition2(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CalcUnscrolledPosition(self, *args):
|
||||
"""*args can be a point or (x, y) tuple"""
|
||||
pass
|
||||
|
||||
def CalcUnscrolledPosition1(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CalcUnscrolledPosition2(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnableScrolling(self, xScrolling, yScrolling):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScaleX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScaleY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScrollPageSize(self, orient):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScrollPixelsPerUnit(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTargetWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetViewStart(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsRetained(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Layout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrepareDC(self, dc):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Scroll(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetScale(self, xs, ys):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetScrollPageSize(self, orient, pageSize):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetScrollRate(self, xstep, ystep):
|
||||
"""Set the x, y scrolling increments."""
|
||||
pass
|
||||
|
||||
def SetScrollbars(self, pixelsPerUnitX, pixelsPerUnitY,
|
||||
noUnitsX, noUnitsY, xPos=0, yPos=0, noRefresh=False):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTargetWindow(self, window):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ViewStart(self):
|
||||
""""""
|
||||
pass
|
||||
|
76
wxPython/wxPython/lib/PyCrust/decor/wxParameters.py
Normal file
76
wxPython/wxPython/lib/PyCrust/decor/wxParameters.py
Normal file
@@ -0,0 +1,76 @@
|
||||
"""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()
|
||||
|
651
wxPython/wxPython/lib/PyCrust/decor/wxPrinting.py
Normal file
651
wxPython/wxPython/lib/PyCrust/decor/wxPrinting.py
Normal file
@@ -0,0 +1,651 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
from wxDialogs import wxDialog
|
||||
from wxFrames import wxFrame
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxPageSetupDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetPageSetupData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPageSetupDialogData(wxObject):
|
||||
""""""
|
||||
|
||||
def EnableHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnableMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnableOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnablePaper(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnablePrinter(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDefaultInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDefaultMinMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEnableHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEnableMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEnableOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEnablePaper(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEnablePrinter(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMarginBottomRight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMarginTopLeft(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinMarginBottomRight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinMarginTopLeft(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPaperId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPaperSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Ok(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDefaultInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDefaultMinMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMarginBottomRight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMarginTopLeft(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinMarginBottomRight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinMarginTopLeft(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPaperId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPaperSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrintData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPrintDialog(wxDialog):
|
||||
""""""
|
||||
|
||||
def GetPrintDC(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintDialogData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowModal(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPrintDialogData(wxObject):
|
||||
""""""
|
||||
|
||||
def EnableHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnablePageNumbers(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnablePrintToFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnableSelection(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAllPages(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCollate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFromPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNoCopies(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintToFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Ok(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCollate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFromPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMaxPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetNoCopies(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrintData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrintToFile(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSetupDialog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPreviewFrame(wxFrame):
|
||||
""""""
|
||||
|
||||
def Initialize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPrintData(wxObject):
|
||||
""""""
|
||||
|
||||
def GetCollate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDuplex(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFilename(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFontMetricPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNoCopies(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPaperId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPaperSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPreviewCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintMode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterOptions(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterScaleX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterScaleY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterTranslateX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrinterTranslateY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetQuality(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Ok(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCollate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDuplex(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFilename(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFontMetricPath(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetNoCopies(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPaperId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPaperSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPreviewCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrintMode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterCommand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterOptions(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterScaleX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterScaleY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterScaling(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterTranslateX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterTranslateY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrinterTranslation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetQuality(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPrintPreview(wxObject):
|
||||
""""""
|
||||
|
||||
def GetCanvas(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCurrentPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFrame(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintDialogData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintoutForPrinting(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetZoom(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Ok(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Print(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCanvas(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCurrentPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFrame(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPrintout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetZoom(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPrinter(wxObject):
|
||||
""""""
|
||||
|
||||
def CreateAbortWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrintDialogData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Print(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrintDialog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReportError(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Setup(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPrintout(wxObject):
|
||||
""""""
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDC(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPPIPrinter(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPPIScreen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPageSizeMM(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPageSizePixels(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsPreview(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_GetPageInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_HasPage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnBeginDocument(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnBeginPrinting(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnEndDocument(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnEndPrinting(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnPreparePrinting(self):
|
||||
""""""
|
||||
pass
|
||||
|
77
wxPython/wxPython/lib/PyCrust/decor/wxProcess.py
Normal file
77
wxPython/wxPython/lib/PyCrust/decor/wxProcess.py
Normal file
@@ -0,0 +1,77 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxEvtHandler
|
||||
|
||||
|
||||
class wxProcess(wxEvtHandler):
|
||||
""""""
|
||||
|
||||
def CloseOutput(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Detach(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetErrorStream(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetInputStream(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOutputStream(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsErrorAvailable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsInputAvailable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsInputOpened(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsRedirected(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Redirect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_OnTerminate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
226
wxPython/wxPython/lib/PyCrust/decor/wxSashSplitter.py
Normal file
226
wxPython/wxPython/lib/PyCrust/decor/wxSashSplitter.py
Normal file
@@ -0,0 +1,226 @@
|
||||
"""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.
|
||||
|
||||
|
||||
import wxParameters as wx
|
||||
from wxWindow import wxWindow
|
||||
|
||||
|
||||
class wxSashWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDefaultBorderSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEdgeMargin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetExtraBorderSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaximumSizeX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaximumSizeY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinimumSizeX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinimumSizeY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSashVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasBorder(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDefaultBorderSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetExtraBorderSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMaximumSizeX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMaximumSizeY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinimumSizeX(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinimumSizeY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSashBorder(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSashVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSashLayoutWindow(wxSashWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAlignment(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetAlignment(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDefaultSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSplitterWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBorderSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinimumPaneSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNeedUpdating(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSashPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSashSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSplitMode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindow1(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindow2(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Initialize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSplit(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReplaceWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBorderSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinimumPaneSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetNeedUpdating(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSashPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSashSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSplitMode(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SizeWindows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SplitHorizontally(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SplitVertically(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Unsplit(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
488
wxPython/wxPython/lib/PyCrust/decor/wxSizers.py
Normal file
488
wxPython/wxPython/lib/PyCrust/decor/wxSizers.py
Normal file
@@ -0,0 +1,488 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxSizer(wxObject):
|
||||
""""""
|
||||
|
||||
def Add(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddMany(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddSpacer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Clear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteWindows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Fit(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FitInside(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMinSizeTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPositionTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSizeTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Hide(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HideSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HideWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Insert(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertSpacer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsShown(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsShownSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsShownWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Layout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Prepend(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependSpacer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Remove(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemovePos(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDimension(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemMinSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemMinSizePos(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemMinSizeSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemMinSizeWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMinSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSizeHints(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVirtualSizeHints(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Show(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowItems(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setOORInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxSizerItem(wxObject):
|
||||
""""""
|
||||
|
||||
def CalcMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteWindows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBorder(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFlag(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOption(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRatio(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetUserData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsShown(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSpacer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBorder(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDimension(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFlag(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetInitSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetOption(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRatio(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRatioSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRatioWH(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Show(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxBoxSizer(wxSizer):
|
||||
""""""
|
||||
|
||||
def CalcMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RecalcSizes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetOrientation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxGridSizer(wxSizer):
|
||||
""""""
|
||||
|
||||
def CalcMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCols(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHGap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVGap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RecalcSizes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCols(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHGap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVGap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxFlexGridSizer(wxGridSizer):
|
||||
""""""
|
||||
|
||||
def AddGrowableCol(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddGrowableRow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CalcMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RecalcSizes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveGrowableCol(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveGrowableRow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxNotebookSizer(wxSizer):
|
||||
""""""
|
||||
|
||||
def CalcMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNotebook(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RecalcSizes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPySizer(wxSizer):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxStaticBoxSizer(wxBoxSizer):
|
||||
""""""
|
||||
|
||||
def CalcMin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStaticBox(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RecalcSizes(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
96
wxPython/wxPython/lib/PyCrust/decor/wxStreams.py
Normal file
96
wxPython/wxPython/lib/PyCrust/decor/wxStreams.py
Normal file
@@ -0,0 +1,96 @@
|
||||
"""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 wxInputStream:
|
||||
""""""
|
||||
|
||||
def CanRead(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Eof(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetC(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LastRead(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Peek(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SeekI(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def TellI(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Ungetch(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def eof(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def flush(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def read(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def readline(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def readlines(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def seek(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def tell(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxOutputStream:
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def write(self):
|
||||
""""""
|
||||
pass
|
26
wxPython/wxPython/lib/PyCrust/decor/wxThreading.py
Normal file
26
wxPython/wxPython/lib/PyCrust/decor/wxThreading.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""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 wxMutexGuiLocker:
|
||||
""""""
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
403
wxPython/wxPython/lib/PyCrust/decor/wxToolBar.py
Normal file
403
wxPython/wxPython/lib/PyCrust/decor/wxToolBar.py
Normal file
@@ -0,0 +1,403 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
from wxControls import wxControl
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxToolBarBase(wxControl):
|
||||
""""""
|
||||
|
||||
def AddCheckLabelTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddCheckTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddControl(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddLabelTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddRadioLabelTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddRadioTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddSimpleTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ClearTools(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteToolByPos(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DoAddTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DoInsertTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnableTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindControl(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindToolForPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxCols(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxRows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolBitmapSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolClientData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolEnabled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolLongHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolPacking(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolSeparation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolShortHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolState(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertControl(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertLabelTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertSimpleTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsVertical(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Realize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMargins(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMarginsXY(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetMaxRowsCols(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRows(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToggle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolBitmapSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolClientData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolLongHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolPacking(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolSeparation(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolShortHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ToggleTool(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxToolBar(wxToolBarBase):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindToolForPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxToolBarSimple(wxToolBarBase):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindToolForPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxToolBarToolBase(wxObject):
|
||||
""""""
|
||||
|
||||
def Attach(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CanBeToggled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Detach(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Enable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBitmap1(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBitmap2(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetControl(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDisabledBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetKind(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLongHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNormalBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetShortHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStyle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolBar(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsButton(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsControl(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEnabled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSeparator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsToggled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBitmap1(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBitmap2(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetClientData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDisabledBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLongHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetNormalBitmap(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetShortHelp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToggle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Toggle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
402
wxPython/wxPython/lib/PyCrust/decor/wxTree.py
Normal file
402
wxPython/wxPython/lib/PyCrust/decor/wxTree.py
Normal file
@@ -0,0 +1,402 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxObject
|
||||
from wxControls import wxControl
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxTreeCtrl(wxControl):
|
||||
""""""
|
||||
|
||||
def AddRoot(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AppendItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AssignImageList(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AssignStateImageList(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Collapse(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CollapseAndReset(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Delete(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteAllItems(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DeleteChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EditLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def EnsureVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Expand(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBoundingRect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetChildrenCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCount(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEditControl(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFirstChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFirstVisibleItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetImageList(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetIndent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemBackgroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemImage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemParent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemSelectedImage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetItemTextColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLastChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNextChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNextSibling(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetNextVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrevSibling(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPrevVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPyData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRootItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSelection(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSelections(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSpacing(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetStateImageList(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HitTest(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InsertItemBefore(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsBold(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsExpanded(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsSelected(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsVisible(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ItemHasChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PrependItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ScrollTo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SelectItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetImageList(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetIndent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemBackgroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemBold(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemHasChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemImage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemSelectedImage(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetItemTextColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPyData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSpacing(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetStateImageList(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SortChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Toggle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Unselect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def UnselectAll(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTreeItemAttr:
|
||||
""""""
|
||||
|
||||
def GetBackgroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTextColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasBackgroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasTextColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBackgroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTextColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTreeItemData(wxObject):
|
||||
""""""
|
||||
|
||||
def GetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetData(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTreeItemId:
|
||||
""""""
|
||||
|
||||
def IsOk(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Ok(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __cmp__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __del__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
50
wxPython/wxPython/lib/PyCrust/decor/wxValidators.py
Normal file
50
wxPython/wxPython/lib/PyCrust/decor/wxValidators.py
Normal file
@@ -0,0 +1,50 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxEvtHandler
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxValidator(wxEvtHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Clone(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWindow(self, window):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyValidator(wxValidator):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self, _class, incref=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
844
wxPython/wxPython/lib/PyCrust/decor/wxWindow.py
Normal file
844
wxPython/wxPython/lib/PyCrust/decor/wxWindow.py
Normal file
@@ -0,0 +1,844 @@
|
||||
"""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.
|
||||
|
||||
|
||||
from wxBase import wxEvtHandler
|
||||
import wxParameters as wx
|
||||
|
||||
|
||||
class wxWindow(wxEvtHandler):
|
||||
""""""
|
||||
|
||||
def __init__(self, parent, id, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=0, name=wx.wxPyPanelNameStr):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AcceptsFocus(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def AddChild(self, child):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CaptureMouse(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Center(self, direction=wx.wxBOTH):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CenterOnParent(self, direction=wx.wxBOTH):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CenterOnScreen(self, direction=wx.wxBOTH):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Centre(self, direction=wx.wxBOTH):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CentreOnParent(self, direction=wx.wxBOTH):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def CentreOnScreen(self, direction=wx.wxBOTH):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Clear(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ClientToScreen(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ClientToScreenXY(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Close(self, force=False):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ConvertDialogPointToPixels(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ConvertDialogSizeToPixels(self, sz):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ConvertPixelPointToDialog(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ConvertPixelSizeToDialog(self, sz):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Create(self, parent, id, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=0, name=wx.wxPyPanelNameStr):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DLG_PNT(self, win, point_or_x, y=None):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DLG_SZE(self, win, size_width, height=None):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Destroy(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DestroyChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def DragAcceptFiles(self, accept):
|
||||
"""Windows only."""
|
||||
pass
|
||||
|
||||
def Enable(self, enable):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindWindowById(self, id):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FindWindowByName(self, name):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Fit(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def FitInside(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Freeze(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAcceleratorTable(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAdjustedBestSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetAutoLayout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBackgroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBestSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBestVirtualSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetBorder(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCaret(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCharHeight(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCharWidth(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetChildren(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientAreaOrigin(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientRect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetClientSizeTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetConstraints(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetContainingSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetCursor(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDefaultItem(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetDropTarget(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetEventHandler(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFont(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetForegroundColour(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetFullTextExtent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetGrandParent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHandle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetHelpText(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetId(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetLabel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetMaxSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetName(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetParent(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetPositionTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetRect(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScrollPos(self, orientation):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScrollRange(self, orientation):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetScrollThumb(self, orientation):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSizeTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetSizer(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTextExtent(self, string):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTitle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetToolTip(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetUpdateRegion(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetValidator(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVirtualSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetVirtualSizeTuple(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetWindowStyleFlag(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasCapture(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HasScrollbar(self, orient):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Hide(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def HitTest(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def InitDialog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsBeingDeleted(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsEnabled(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsExposed(self, x, y, w=0, h=0):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsExposedPoint(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsExposedRect(self, rect):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsRetained(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsShown(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsTopLevel(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Layout(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LineDown(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LineUp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def LoadFromResource(self, parent, resourceName, resourceTable=wx.NULL):
|
||||
"""Only if wxUSE_WX_RESOURCES."""
|
||||
pass
|
||||
|
||||
def Lower(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def MakeModal(self, flag=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Move(self, point, flags=wx.wxSIZE_USE_EXISTING):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def MoveXY(self, x, y, flags=wx.wxSIZE_USE_EXISTING):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def OnPaint(self, event):
|
||||
"""Windows only."""
|
||||
pass
|
||||
|
||||
def PageDown(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PageUp(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PopEventHandler(self, deleteHandler=False):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PopupMenu(self, menu, pos):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PopupMenuXY(self, menu, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def PushEventHandler(self, handler):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Raise(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Refresh(self, eraseBackground=True, rect=wx.NULL):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RefreshRect(self, rect):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ReleaseMouse(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveChild(self, child):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def RemoveEventHandler(self, handler):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Reparent(self, newParent):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ScreenToClient(self, pt):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ScreenToClientXY(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ScrollLines(self, lines):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ScrollPages(self, pages):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ScrollWindow(self, dx, dy, rect=wx.NULL):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetAcceleratorTable(self, accel):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetAutoLayout(self, autoLayout):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetBackgroundColour(self, colour):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCaret(self, caret):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetClientSize(self, size):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetClientSizeWH(self, width, height):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetConstraints(self, constraints):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetContainingSizer(self, sizer):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetCursor(self, cursor):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDefaultItem(self, btn):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDimensions(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetDropTarget(self, target):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetEventHandler(self, handler):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetExtraStyle(self, exStyle):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFocus(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFocusFromKbd(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetFont(self, font):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetForegroundColour(self, colour):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHelpText(self, helpText):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetHelpTextForId(self, text):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetId(self, id):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetLabel(self, label):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetName(self, name):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetPosition(self, pos, flags=wx.wxSIZE_USE_EXISTING):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetRect(self, rect, sizeFlags=wx.wxSIZE_AUTO):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetScrollPos(self, orientation, pos, refresh=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetScrollbar(self, orientation, pos, thumbSize, range, refresh=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSize(self, x, y, width, height, sizeFlags=wx.wxSIZE_AUTO):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSizeHints(self, minW, minH, maxW=-1, maxH=-1, incW=-1, incH=-1):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSizer(self, sizer, deleteOld=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetSizerAndFit(self, sizer, deleteOld=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTitle(self, title):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTmpDefaultItem(self, win):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolTip(self, tooltip):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetToolTipString(self, tip):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetValidator(self, validator):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVirtualSize(self, size):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVirtualSizeHints(self, minW, minH, maxW=-1, maxH=-1):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetVirtualSizeWH(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWindowStyle(self, style):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetWindowStyleFlag(self, style):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Show(self, show=True):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Thaw(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def TransferDataFromWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def TransferDataToWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def UnsetConstraints(self, constraints):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Update(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def UpdateWindowUI(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Validate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def WarpPointer(self, x, y):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxPyWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def _setCallbackInfo(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_AcceptsFocus(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_AcceptsFocusFromKeyboard(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_AddChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetBestSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetClientSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetPosition(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoGetVirtualSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoMoveWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoSetClientSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoSetSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_DoSetVirtualSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_GetMaxSize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_InitDialog(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_RemoveChild(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_TransferDataFromWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_TransferDataToWindow(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def base_Validate(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
||||
class wxTopLevelWindow(wxWindow):
|
||||
""""""
|
||||
|
||||
def Create(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetIcon(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def GetTitle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Iconize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsFullScreen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsIconized(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def IsMaximized(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Maximize(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def Restore(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetIcon(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetIcons(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def SetTitle(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def ShowFullScreen(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
""""""
|
||||
pass
|
||||
|
||||
|
266
wxPython/wxPython/lib/PyCrust/dispatcher.py
Normal file
266
wxPython/wxPython/lib/PyCrust/dispatcher.py
Normal file
@@ -0,0 +1,266 @@
|
||||
"""Provides global signal dispatching services."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
import exceptions
|
||||
import types
|
||||
import weakref
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class DispatcherError(exceptions.Exception):
|
||||
def __init__(self, args=None):
|
||||
self.args = args
|
||||
|
||||
|
||||
class Parameter:
|
||||
"""Used to represent default parameter values."""
|
||||
def __repr__(self):
|
||||
return self.__class__.__name__
|
||||
|
||||
class Any(Parameter): pass
|
||||
Any = Any()
|
||||
|
||||
class Anonymous(Parameter): pass
|
||||
Anonymous = Anonymous()
|
||||
|
||||
|
||||
connections = {}
|
||||
senders = {}
|
||||
_boundMethods = weakref.WeakKeyDictionary()
|
||||
|
||||
|
||||
def connect(receiver, signal=Any, sender=Any, weak=True):
|
||||
"""Connect receiver to sender for signal.
|
||||
|
||||
If sender is Any, receiver will receive signal from any sender.
|
||||
If signal is Any, receiver will receive any signal from sender.
|
||||
If sender is None, receiver will receive signal from Anonymous.
|
||||
If signal is Any and sender is None, receiver will receive any
|
||||
signal from Anonymous.
|
||||
If signal is Any and sender is Any, receiver will receive any
|
||||
signal from any sender.
|
||||
If weak is true, weak references will be used."""
|
||||
if signal is None:
|
||||
raise DispatcherError, 'signal cannot be None'
|
||||
if weak:
|
||||
receiver = safeRef(receiver)
|
||||
senderkey = id(sender)
|
||||
signals = {}
|
||||
if connections.has_key(senderkey):
|
||||
signals = connections[senderkey]
|
||||
else:
|
||||
connections[senderkey] = signals
|
||||
# Keep track of senders for cleanup.
|
||||
if sender not in (None, Any):
|
||||
def remove(object, senderkey=senderkey):
|
||||
_removeSender(senderkey=senderkey)
|
||||
# Skip objects that can not be weakly referenced, which means
|
||||
# they won't be automatically cleaned up, but that's too bad.
|
||||
try:
|
||||
weakSender = weakref.ref(sender, remove)
|
||||
senders[senderkey] = weakSender
|
||||
except:
|
||||
pass
|
||||
receivers = []
|
||||
if signals.has_key(signal):
|
||||
receivers = signals[signal]
|
||||
else:
|
||||
signals[signal] = receivers
|
||||
try:
|
||||
receivers.remove(receiver)
|
||||
except ValueError:
|
||||
pass
|
||||
receivers.append(receiver)
|
||||
|
||||
def disconnect(receiver, signal=Any, sender=Any, weak=True):
|
||||
"""Disconnect receiver from sender for signal.
|
||||
|
||||
Disconnecting is not required. The use of disconnect is the same as for
|
||||
connect, only in reverse. Think of it as undoing a previous connection."""
|
||||
if signal is None:
|
||||
raise DispatcherError, 'signal cannot be None'
|
||||
if weak:
|
||||
receiver = safeRef(receiver)
|
||||
senderkey = id(sender)
|
||||
try:
|
||||
receivers = connections[senderkey][signal]
|
||||
except KeyError:
|
||||
raise DispatcherError, \
|
||||
'No receivers for signal %r from sender %s' % (signal, sender)
|
||||
try:
|
||||
receivers.remove(receiver)
|
||||
except ValueError:
|
||||
raise DispatcherError, \
|
||||
'No connection to receiver %s for signal %r from sender %s' % \
|
||||
(receiver, signal, sender)
|
||||
_cleanupConnections(senderkey, signal)
|
||||
|
||||
def send(signal, sender=Anonymous, **kwds):
|
||||
"""Send signal from sender to all connected receivers.
|
||||
|
||||
Return a list of tuple pairs [(receiver, response), ... ].
|
||||
If sender is not specified, signal is sent anonymously."""
|
||||
senderkey = id(sender)
|
||||
anykey = id(Any)
|
||||
# Get receivers that receive *this* signal from *this* sender.
|
||||
receivers = []
|
||||
try:
|
||||
receivers.extend(connections[senderkey][signal])
|
||||
except KeyError:
|
||||
pass
|
||||
# Add receivers that receive *any* signal from *this* sender.
|
||||
anyreceivers = []
|
||||
try:
|
||||
anyreceivers = connections[senderkey][Any]
|
||||
except KeyError:
|
||||
pass
|
||||
for receiver in anyreceivers:
|
||||
if receivers.count(receiver) == 0:
|
||||
receivers.append(receiver)
|
||||
# Add receivers that receive *this* signal from *any* sender.
|
||||
anyreceivers = []
|
||||
try:
|
||||
anyreceivers = connections[anykey][signal]
|
||||
except KeyError:
|
||||
pass
|
||||
for receiver in anyreceivers:
|
||||
if receivers.count(receiver) == 0:
|
||||
receivers.append(receiver)
|
||||
# Add receivers that receive *any* signal from *any* sender.
|
||||
anyreceivers = []
|
||||
try:
|
||||
anyreceivers = connections[anykey][Any]
|
||||
except KeyError:
|
||||
pass
|
||||
for receiver in anyreceivers:
|
||||
if receivers.count(receiver) == 0:
|
||||
receivers.append(receiver)
|
||||
# Call each receiver with whatever arguments it can accept.
|
||||
# Return a list of tuple pairs [(receiver, response), ... ].
|
||||
responses = []
|
||||
for receiver in receivers:
|
||||
if type(receiver) is weakref.ReferenceType \
|
||||
or isinstance(receiver, BoundMethodWeakref):
|
||||
# Dereference the weak reference.
|
||||
receiver = receiver()
|
||||
if receiver is None:
|
||||
# This receiver is dead, so skip it.
|
||||
continue
|
||||
response = _call(receiver, signal=signal, sender=sender, **kwds)
|
||||
responses += [(receiver, response)]
|
||||
return responses
|
||||
|
||||
def _call(receiver, **kwds):
|
||||
"""Call receiver with only arguments it can accept."""
|
||||
## if type(receiver) is types.InstanceType:
|
||||
if hasattr(receiver, '__call__') and \
|
||||
(hasattr(receiver.__call__, 'im_func') or hasattr(receiver.__call__, 'im_code')):
|
||||
# receiver is a class instance; assume it is callable.
|
||||
# Reassign receiver to the actual method that will be called.
|
||||
receiver = receiver.__call__
|
||||
if hasattr(receiver, 'im_func'):
|
||||
# receiver is a method. Drop the first argument, usually 'self'.
|
||||
fc = receiver.im_func.func_code
|
||||
acceptable = fc.co_varnames[1:fc.co_argcount]
|
||||
elif hasattr(receiver, 'func_code'):
|
||||
# receiver is a function.
|
||||
fc = receiver.func_code
|
||||
acceptable = fc.co_varnames[0:fc.co_argcount]
|
||||
else:
|
||||
raise DispatcherError, 'Unknown receiver %s of type %s' % (receiver, type(receiver))
|
||||
if not (fc.co_flags & 8):
|
||||
# fc does not have a **kwds type parameter, therefore
|
||||
# remove unacceptable arguments.
|
||||
for arg in kwds.keys():
|
||||
if arg not in acceptable:
|
||||
del kwds[arg]
|
||||
return receiver(**kwds)
|
||||
|
||||
|
||||
def safeRef(object):
|
||||
"""Return a *safe* weak reference to a callable object."""
|
||||
if hasattr(object, 'im_self'):
|
||||
if object.im_self is not None:
|
||||
# Turn a bound method into a BoundMethodWeakref instance.
|
||||
# Keep track of these instances for lookup by disconnect().
|
||||
selfkey = object.im_self
|
||||
funckey = object.im_func
|
||||
if not _boundMethods.has_key(selfkey):
|
||||
_boundMethods[selfkey] = weakref.WeakKeyDictionary()
|
||||
if not _boundMethods[selfkey].has_key(funckey):
|
||||
_boundMethods[selfkey][funckey] = \
|
||||
BoundMethodWeakref(boundMethod=object)
|
||||
return _boundMethods[selfkey][funckey]
|
||||
return weakref.ref(object, _removeReceiver)
|
||||
|
||||
|
||||
class BoundMethodWeakref:
|
||||
"""BoundMethodWeakref class."""
|
||||
|
||||
def __init__(self, boundMethod):
|
||||
"""Return a weak-reference-like instance for a bound method."""
|
||||
self.isDead = 0
|
||||
def remove(object, self=self):
|
||||
"""Set self.isDead to true when method or instance is destroyed."""
|
||||
self.isDead = 1
|
||||
_removeReceiver(receiver=self)
|
||||
self.weakSelf = weakref.ref(boundMethod.im_self, remove)
|
||||
self.weakFunc = weakref.ref(boundMethod.im_func, remove)
|
||||
|
||||
def __repr__(self):
|
||||
"""Return the closest representation."""
|
||||
return '<bound method weakref for %s.%s>' % (self.weakSelf, self.weakFunc)
|
||||
|
||||
def __call__(self):
|
||||
"""Return a strong reference to the bound method."""
|
||||
if self.isDead:
|
||||
return None
|
||||
else:
|
||||
object = self.weakSelf()
|
||||
method = self.weakFunc().__name__
|
||||
try: # wxPython hack to handle wxDead objects.
|
||||
return getattr(object, method)
|
||||
except AttributeError:
|
||||
## _removeReceiver(receiver=self)
|
||||
return None
|
||||
|
||||
|
||||
def _removeReceiver(receiver):
|
||||
"""Remove receiver from connections."""
|
||||
for senderkey in connections.keys():
|
||||
for signal in connections[senderkey].keys():
|
||||
receivers = connections[senderkey][signal]
|
||||
try:
|
||||
receivers.remove(receiver)
|
||||
except:
|
||||
pass
|
||||
_cleanupConnections(senderkey, signal)
|
||||
|
||||
def _cleanupConnections(senderkey, signal):
|
||||
"""Delete any empty signals for senderkey. Delete senderkey if empty."""
|
||||
receivers = connections[senderkey][signal]
|
||||
if not receivers:
|
||||
# No more connected receivers. Therefore, remove the signal.
|
||||
signals = connections[senderkey]
|
||||
del signals[signal]
|
||||
if not signals:
|
||||
# No more signal connections. Therefore, remove the sender.
|
||||
_removeSender(senderkey)
|
||||
|
||||
def _removeSender(senderkey):
|
||||
"""Remove senderkey from connections."""
|
||||
del connections[senderkey]
|
||||
# Senderkey will only be in senders dictionary if sender
|
||||
# could be weakly referenced.
|
||||
try:
|
||||
del senders[senderkey]
|
||||
except:
|
||||
pass
|
@@ -1,5 +1,5 @@
|
||||
"""PyCrust Filling is the gui tree control through which a user can navigate
|
||||
the local namespace or any object."""
|
||||
"""PyCrust Filling is the gui tree control through which a user can
|
||||
navigate the local namespace or any object."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
@@ -8,17 +8,31 @@ __revision__ = "$Revision$"[11:-2]
|
||||
from wxPython import wx
|
||||
from wxPython import stc
|
||||
from version import VERSION
|
||||
import dispatcher
|
||||
import inspect
|
||||
import introspect
|
||||
import keyword
|
||||
import sys
|
||||
import types
|
||||
|
||||
True, False = 1, 0
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
COMMONTYPES = [getattr(types, t) for t in dir(types) \
|
||||
if not t.startswith('_') \
|
||||
and t not in ('ClassType', 'InstanceType', 'ModuleType')]
|
||||
|
||||
DOCTYPES = ('BuiltinFunctionType', 'BuiltinMethodType', 'ClassType',
|
||||
'FunctionType', 'GeneratorType', 'InstanceType',
|
||||
'LambdaType', 'MethodType', 'ModuleType',
|
||||
'UnboundMethodType', 'method-wrapper')
|
||||
|
||||
SIMPLETYPES = [getattr(types, t) for t in dir(types) \
|
||||
if not t.startswith('_') and t not in DOCTYPES]
|
||||
|
||||
try:
|
||||
COMMONTYPES.append(type(''.__repr__)) # Method-wrapper in version 2.2.x.
|
||||
except AttributeError:
|
||||
@@ -32,137 +46,172 @@ class FillingTree(wx.wxTreeCtrl):
|
||||
revision = __revision__
|
||||
|
||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxTR_HAS_BUTTONS,
|
||||
rootObject=None, rootLabel=None, rootIsNamespace=0):
|
||||
size=wx.wxDefaultSize, style=wx.wxTR_DEFAULT_STYLE,
|
||||
rootObject=None, rootLabel=None, rootIsNamespace=0,
|
||||
static=False):
|
||||
"""Create a PyCrust FillingTree instance."""
|
||||
wx.wxTreeCtrl.__init__(self, parent, id, pos, size)
|
||||
wx.wxTreeCtrl.__init__(self, parent, id, pos, size, style)
|
||||
self.rootIsNamespace = rootIsNamespace
|
||||
if not rootObject:
|
||||
import __main__
|
||||
rootObject = __main__
|
||||
import __main__
|
||||
if rootObject is None:
|
||||
rootObject = __main__.__dict__
|
||||
self.rootIsNamespace = 1
|
||||
if not rootLabel: rootLabel = 'Ingredients'
|
||||
if rootObject is __main__.__dict__ and rootLabel is None:
|
||||
rootLabel = 'locals()'
|
||||
if not rootLabel:
|
||||
rootLabel = 'Ingredients'
|
||||
rootData = wx.wxTreeItemData(rootObject)
|
||||
self.root = self.AddRoot(rootLabel, -1, -1, rootData)
|
||||
self.SetItemHasChildren(self.root, self.hasChildren(self.root))
|
||||
self.item = self.root = self.AddRoot(rootLabel, -1, -1, rootData)
|
||||
self.SetItemHasChildren(self.root, self.hasChildren(rootObject))
|
||||
wx.EVT_TREE_ITEM_EXPANDING(self, self.GetId(), self.OnItemExpanding)
|
||||
wx.EVT_TREE_ITEM_COLLAPSED(self, self.GetId(), self.OnItemCollapsed)
|
||||
wx.EVT_TREE_SEL_CHANGED(self, self.GetId(), self.OnSelChanged)
|
||||
wx.EVT_TREE_ITEM_ACTIVATED(self, self.GetId(), self.OnItemActivated)
|
||||
if not static:
|
||||
dispatcher.connect(receiver=self.push, signal='Interpreter.push')
|
||||
|
||||
def hasChildren(self, o):
|
||||
"""Return true if object has children."""
|
||||
if self.getChildren(o):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def getChildren(self, o):
|
||||
"""Return a dictionary with the attributes or contents of object."""
|
||||
busy = wx.wxBusyCursor()
|
||||
otype = type(o)
|
||||
if (otype is types.DictType) \
|
||||
or str(otype)[17:23] == 'BTrees' and hasattr(o, 'keys'):
|
||||
return o
|
||||
d = {}
|
||||
if otype is types.ListType:
|
||||
for n in range(len(o)):
|
||||
key = '[' + str(n) + ']'
|
||||
d[key] = o[n]
|
||||
if otype not in COMMONTYPES:
|
||||
for key in introspect.getAttributeNames(o):
|
||||
# Believe it or not, some attributes can disappear, such as
|
||||
# the exc_traceback attribute of the sys module. So this is
|
||||
# nested in a try block.
|
||||
try:
|
||||
d[key] = getattr(o, key)
|
||||
except:
|
||||
pass
|
||||
return d
|
||||
def push(self, command, more):
|
||||
"""Receiver for Interpreter.push signal."""
|
||||
self.display()
|
||||
|
||||
def OnItemExpanding(self, event):
|
||||
"""Add children to the item."""
|
||||
busy = wx.wxBusyCursor()
|
||||
selection = event.GetItem()
|
||||
if self.IsExpanded(selection):
|
||||
item = event.GetItem()
|
||||
if self.IsExpanded(item):
|
||||
return
|
||||
o = self.GetPyData(selection)
|
||||
children = self.getChildren(o)
|
||||
if not children:
|
||||
return
|
||||
list = children.keys()
|
||||
try:
|
||||
list.sort(lambda x, y: cmp(x.lower(), y.lower()))
|
||||
except:
|
||||
pass
|
||||
for item in list:
|
||||
itemtext = str(item)
|
||||
# Show string dictionary items with single quotes, except for
|
||||
# the first level of items, if they represent a namespace.
|
||||
if type(o) is types.DictType \
|
||||
and type(item) is types.StringType \
|
||||
and (selection != self.root \
|
||||
or (selection == self.root and not self.rootIsNamespace)):
|
||||
itemtext = repr(item)
|
||||
child = self.AppendItem(selection, itemtext, -1, -1,
|
||||
wx.wxTreeItemData(children[item]))
|
||||
self.SetItemHasChildren(child, self.hasChildren(children[item]))
|
||||
self.addChildren(item)
|
||||
# self.SelectItem(item)
|
||||
|
||||
def OnItemCollapsed(self, event):
|
||||
"""Remove all children from the item."""
|
||||
busy = wx.wxBusyCursor()
|
||||
item = event.GetItem()
|
||||
self.DeleteChildren(item)
|
||||
# self.CollapseAndReset(item)
|
||||
# self.DeleteChildren(item)
|
||||
# self.SelectItem(item)
|
||||
|
||||
def OnSelChanged(self, event):
|
||||
"""Display information about the item."""
|
||||
busy = wx.wxBusyCursor()
|
||||
self.setText('')
|
||||
self.item = event.GetItem()
|
||||
self.display()
|
||||
|
||||
def OnItemActivated(self, event):
|
||||
"""Launch a DirFrame."""
|
||||
item = event.GetItem()
|
||||
if item == self.root:
|
||||
del busy
|
||||
text = self.getFullName(item)
|
||||
obj = self.GetPyData(item)
|
||||
frame = FillingFrame(parent=self, size=(600, 100), rootObject=obj,
|
||||
rootLabel=text, rootIsNamespace=False)
|
||||
frame.Show()
|
||||
|
||||
def hasChildren(self, obj):
|
||||
"""Return true if object has children."""
|
||||
if self.getChildren(obj):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def getChildren(self, obj):
|
||||
"""Return dictionary with attributes or contents of object."""
|
||||
busy = wx.wxBusyCursor()
|
||||
otype = type(obj)
|
||||
if otype is dict \
|
||||
or str(otype)[17:23] == 'BTrees' and hasattr(obj, 'keys'):
|
||||
return obj
|
||||
d = {}
|
||||
if isinstance(obj, (list, tuple)):
|
||||
for n in range(len(obj)):
|
||||
key = '[' + str(n) + ']'
|
||||
d[key] = obj[n]
|
||||
if otype not in COMMONTYPES:
|
||||
for key in introspect.getAttributeNames(obj):
|
||||
# Believe it or not, some attributes can disappear,
|
||||
# such as the exc_traceback attribute of the sys
|
||||
# module. So this is nested in a try block.
|
||||
try:
|
||||
d[key] = getattr(obj, key)
|
||||
except:
|
||||
pass
|
||||
return d
|
||||
|
||||
def addChildren(self, item):
|
||||
self.DeleteChildren(item)
|
||||
obj = self.GetPyData(item)
|
||||
children = self.getChildren(obj)
|
||||
if not children:
|
||||
return
|
||||
o = self.GetPyData(item)
|
||||
if o is None: # Windows bug fix.
|
||||
del busy
|
||||
keys = children.keys()
|
||||
keys.sort(lambda x, y: cmp(x.lower(), y.lower()))
|
||||
for key in keys:
|
||||
itemtext = str(key)
|
||||
# Show string dictionary items with single quotes, except
|
||||
# for the first level of items, if they represent a
|
||||
# namespace.
|
||||
if type(obj) is types.DictType \
|
||||
and type(key) is types.StringType \
|
||||
and (item != self.root \
|
||||
or (item == self.root and not self.rootIsNamespace)):
|
||||
itemtext = repr(key)
|
||||
child = children[key]
|
||||
data = wx.wxTreeItemData(child)
|
||||
branch = self.AppendItem(parent=item, text=itemtext, data=data)
|
||||
self.SetItemHasChildren(branch, self.hasChildren(child))
|
||||
|
||||
def display(self):
|
||||
item = self.item
|
||||
if self.IsExpanded(item):
|
||||
self.addChildren(item)
|
||||
self.setText('')
|
||||
obj = self.GetPyData(item)
|
||||
if obj is None: # Windows bug fix.
|
||||
return
|
||||
otype = type(o)
|
||||
self.SetItemHasChildren(item, self.hasChildren(obj))
|
||||
otype = type(obj)
|
||||
text = ''
|
||||
text += self.getFullName(item)
|
||||
text += '\n\nType: ' + str(otype)
|
||||
try:
|
||||
value = str(o)
|
||||
value = str(obj)
|
||||
except:
|
||||
value = ''
|
||||
if otype is types.StringType or otype is types.UnicodeType:
|
||||
value = repr(o)
|
||||
value = repr(obj)
|
||||
text += '\n\nValue: ' + value
|
||||
try:
|
||||
text += '\n\nDocstring:\n\n"""\n' + inspect.getdoc(o).strip() + '\n"""'
|
||||
except:
|
||||
pass
|
||||
if otype not in SIMPLETYPES:
|
||||
try:
|
||||
text += '\n\nDocstring:\n\n"""' + \
|
||||
inspect.getdoc(obj).strip() + '"""'
|
||||
except:
|
||||
pass
|
||||
if otype is types.InstanceType:
|
||||
try:
|
||||
text += '\n\nClass Definition:\n\n' + \
|
||||
inspect.getsource(o.__class__)
|
||||
inspect.getsource(obj.__class__)
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
try:
|
||||
text += '\n\nSource Code:\n\n' + \
|
||||
inspect.getsource(o)
|
||||
inspect.getsource(obj)
|
||||
except:
|
||||
pass
|
||||
self.setText(text)
|
||||
del busy
|
||||
|
||||
def getFullName(self, item, partial=''):
|
||||
"""Return a syntactically proper name for item."""
|
||||
parent = self.GetItemParent(item)
|
||||
parento = self.GetPyData(parent)
|
||||
name = self.GetItemText(item)
|
||||
parent = None
|
||||
obj = None
|
||||
if item != self.root:
|
||||
parent = self.GetItemParent(item)
|
||||
obj = self.GetPyData(parent)
|
||||
# Apply dictionary syntax to dictionary items, except the root
|
||||
# and first level children of a namepace.
|
||||
if (type(parento) is types.DictType \
|
||||
or str(type(parento))[17:23] == 'BTrees' \
|
||||
and hasattr(parento, 'keys')) \
|
||||
if (type(obj) is types.DictType \
|
||||
or str(type(obj))[17:23] == 'BTrees' \
|
||||
and hasattr(obj, 'keys')) \
|
||||
and ((item != self.root and parent != self.root) \
|
||||
or (parent == self.root and not self.rootIsNamespace)):
|
||||
name = '[' + name + ']'
|
||||
@@ -182,15 +231,15 @@ class FillingTree(wx.wxTreeCtrl):
|
||||
def setText(self, text):
|
||||
"""Display information about the current selection."""
|
||||
|
||||
# This method will most likely be replaced by the enclosing app
|
||||
# to do something more interesting, like write to a text control.
|
||||
# This method will likely be replaced by the enclosing app to
|
||||
# do something more interesting, like write to a text control.
|
||||
print text
|
||||
|
||||
def setStatusText(self, text):
|
||||
"""Display status information."""
|
||||
|
||||
# This method will most likely be replaced by the enclosing app
|
||||
# to do something more interesting, like write to a status bar.
|
||||
# This method will likely be replaced by the enclosing app to
|
||||
# do something more interesting, like write to a status bar.
|
||||
print text
|
||||
|
||||
|
||||
@@ -204,12 +253,6 @@ if wx.wxPlatform == '__WXMSW__':
|
||||
'lnsize' : 9,
|
||||
'backcol': '#FFFFFF',
|
||||
}
|
||||
# Versions of wxPython prior to 2.3.2 had a sizing bug on Win platform.
|
||||
# The font was 2 points too large. So we need to reduce the font size.
|
||||
if ((wx.wxMAJOR_VERSION, wx.wxMINOR_VERSION) == (2, 3) and wx.wxRELEASE_NUMBER < 2) \
|
||||
or (wx.wxMAJOR_VERSION <= 2 and wx.wxMINOR_VERSION <= 2):
|
||||
faces['size'] -= 2
|
||||
faces['lnsize'] -= 2
|
||||
else: # GTK
|
||||
faces = { 'times' : 'Times',
|
||||
'mono' : 'Courier',
|
||||
@@ -228,11 +271,32 @@ class FillingText(stc.wxStyledTextCtrl):
|
||||
revision = __revision__
|
||||
|
||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN):
|
||||
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN,
|
||||
static=False):
|
||||
"""Create a PyCrust FillingText instance."""
|
||||
stc.wxStyledTextCtrl.__init__(self, parent, id, pos, size, style)
|
||||
# Configure various defaults and user preferences.
|
||||
self.config()
|
||||
dispatcher.connect(receiver=self.fontsizer, signal='FontIncrease')
|
||||
dispatcher.connect(receiver=self.fontsizer, signal='FontDecrease')
|
||||
dispatcher.connect(receiver=self.fontsizer, signal='FontDefault')
|
||||
if not static:
|
||||
dispatcher.connect(receiver=self.push, signal='Interpreter.push')
|
||||
|
||||
def push(self, command, more):
|
||||
"""Receiver for Interpreter.push signal."""
|
||||
self.Refresh()
|
||||
|
||||
def fontsizer(self, signal):
|
||||
"""Receiver for Font* signals."""
|
||||
size = self.GetZoom()
|
||||
if signal == 'FontIncrease':
|
||||
size += 1
|
||||
elif signal == 'FontDecrease':
|
||||
size -= 1
|
||||
elif signal == 'FontDefault':
|
||||
size = 0
|
||||
self.SetZoom(size)
|
||||
|
||||
def config(self):
|
||||
"""Configure shell based on user preferences."""
|
||||
@@ -255,31 +319,50 @@ class FillingText(stc.wxStyledTextCtrl):
|
||||
"""Configure font size, typeface and color for lexer."""
|
||||
|
||||
# Default style
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_DEFAULT, "face:%(mono)s,size:%(size)d" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_DEFAULT,
|
||||
"face:%(mono)s,size:%(size)d" % faces)
|
||||
|
||||
self.StyleClearAll()
|
||||
|
||||
# Built in styles
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_LINENUMBER, "back:#C0C0C0,face:%(mono)s,size:%(lnsize)d" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_CONTROLCHAR, "face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACELIGHT, "fore:#0000FF,back:#FFFF88")
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACEBAD, "fore:#FF0000,back:#FFFF88")
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_LINENUMBER,
|
||||
"back:#C0C0C0,face:%(mono)s,size:%(lnsize)d" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_CONTROLCHAR,
|
||||
"face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACELIGHT,
|
||||
"fore:#0000FF,back:#FFFF88")
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACEBAD,
|
||||
"fore:#FF0000,back:#FFFF88")
|
||||
|
||||
# Python styles
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFAULT, "face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTLINE, "fore:#007F00,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_NUMBER, "")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRING, "fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_CHARACTER, "fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_WORD, "fore:#00007F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLE, "fore:#7F0000")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLEDOUBLE, "fore:#000033,back:#FFFFE8")
|
||||
self.StyleSetSpec(stc.wxSTC_P_CLASSNAME, "fore:#0000FF,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFNAME, "fore:#007F7F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_OPERATOR, "")
|
||||
self.StyleSetSpec(stc.wxSTC_P_IDENTIFIER, "")
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTBLOCK, "fore:#7F7F7F")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFAULT,
|
||||
"face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTLINE,
|
||||
"fore:#007F00,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_NUMBER,
|
||||
"")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRING,
|
||||
"fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_CHARACTER,
|
||||
"fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_WORD,
|
||||
"fore:#00007F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLE,
|
||||
"fore:#7F0000")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLEDOUBLE,
|
||||
"fore:#000033,back:#FFFFE8")
|
||||
self.StyleSetSpec(stc.wxSTC_P_CLASSNAME,
|
||||
"fore:#0000FF,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFNAME,
|
||||
"fore:#007F7F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_OPERATOR,
|
||||
"")
|
||||
self.StyleSetSpec(stc.wxSTC_P_IDENTIFIER,
|
||||
"")
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTBLOCK,
|
||||
"fore:#7F7F7F")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRINGEOL,
|
||||
"fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces)
|
||||
|
||||
def SetText(self, *args, **kwds):
|
||||
self.SetReadOnly(0)
|
||||
@@ -294,20 +377,23 @@ class Filling(wx.wxSplitterWindow):
|
||||
revision = __revision__
|
||||
|
||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxSP_3D, name='Filling Window',
|
||||
rootObject=None, rootLabel=None, rootIsNamespace=0):
|
||||
size=wx.wxDefaultSize, style=wx.wxSP_3D,
|
||||
name='Filling Window', rootObject=None,
|
||||
rootLabel=None, rootIsNamespace=0, static=False):
|
||||
"""Create a PyCrust Filling instance."""
|
||||
wx.wxSplitterWindow.__init__(self, parent, id, pos, size, style, name)
|
||||
self.fillingTree = FillingTree(parent=self, rootObject=rootObject,
|
||||
rootLabel=rootLabel,
|
||||
rootIsNamespace=rootIsNamespace)
|
||||
self.fillingText = FillingText(parent=self)
|
||||
self.SplitVertically(self.fillingTree, self.fillingText, 200)
|
||||
self.tree = FillingTree(parent=self, rootObject=rootObject,
|
||||
rootLabel=rootLabel,
|
||||
rootIsNamespace=rootIsNamespace,
|
||||
static=static)
|
||||
self.text = FillingText(parent=self, static=static)
|
||||
self.SplitVertically(self.tree, self.text, 200)
|
||||
self.SetMinimumPaneSize(1)
|
||||
# Override the filling so that descriptions go to fillingText.
|
||||
self.fillingTree.setText = self.fillingText.SetText
|
||||
# Select the root item.
|
||||
self.fillingTree.SelectItem(self.fillingTree.root)
|
||||
# Override the filling so that descriptions go to FillingText.
|
||||
self.tree.setText = self.text.SetText
|
||||
# Display the root item.
|
||||
## self.tree.SelectItem(self.tree.root)
|
||||
self.tree.display()
|
||||
|
||||
|
||||
class FillingFrame(wx.wxFrame):
|
||||
@@ -319,19 +405,20 @@ class FillingFrame(wx.wxFrame):
|
||||
def __init__(self, parent=None, id=-1, title='PyFilling',
|
||||
pos=wx.wxDefaultPosition, size=wx.wxDefaultSize,
|
||||
style=wx.wxDEFAULT_FRAME_STYLE, rootObject=None,
|
||||
rootLabel=None, rootIsNamespace=0):
|
||||
rootLabel=None, rootIsNamespace=0, static=False):
|
||||
"""Create a PyCrust FillingFrame instance."""
|
||||
wx.wxFrame.__init__(self, parent, id, title, pos, size, style)
|
||||
intro = 'Welcome To PyFilling - The Tastiest Namespace Inspector'
|
||||
intro = 'PyFilling - The Tastiest Namespace Inspector'
|
||||
self.CreateStatusBar()
|
||||
self.SetStatusText(intro)
|
||||
import images
|
||||
self.SetIcon(images.getPyCrustIcon())
|
||||
self.filling = Filling(parent=self, rootObject=rootObject,
|
||||
rootLabel=rootLabel,
|
||||
rootIsNamespace=rootIsNamespace)
|
||||
# Override the filling so that status messages go to the status bar.
|
||||
self.filling.fillingTree.setStatusText = self.SetStatusText
|
||||
rootIsNamespace=rootIsNamespace,
|
||||
static=static)
|
||||
# Override so that status messages go to the status bar.
|
||||
self.filling.tree.setStatusText = self.SetStatusText
|
||||
|
||||
|
||||
class App(wx.wxApp):
|
||||
|
@@ -7,8 +7,15 @@ __revision__ = "$Revision$"[11:-2]
|
||||
import os
|
||||
import sys
|
||||
from code import InteractiveInterpreter
|
||||
import dispatcher
|
||||
import introspect
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class Interpreter(InteractiveInterpreter):
|
||||
"""PyCrust Interpreter based on code.InteractiveInterpreter."""
|
||||
@@ -26,8 +33,8 @@ class Interpreter(InteractiveInterpreter):
|
||||
import __builtin__
|
||||
__builtin__.raw_input = rawin
|
||||
del __builtin__
|
||||
copyright = \
|
||||
'Type "help", "copyright", "credits" or "license" for more information.'
|
||||
copyright = 'Type "help", "copyright", "credits" or "license"'
|
||||
copyright += ' for more information.'
|
||||
self.introText = 'Python %s on %s%s%s' % \
|
||||
(sys.version, sys.platform, os.linesep, copyright)
|
||||
try:
|
||||
@@ -47,10 +54,11 @@ class Interpreter(InteractiveInterpreter):
|
||||
"""Send command to the interpreter to be executed.
|
||||
|
||||
Because this may be called recursively, we append a new list
|
||||
onto the commandBuffer list and then append commands into that.
|
||||
If the passed in command is part of a multi-line command we keep
|
||||
appending the pieces to the last list in commandBuffer until we
|
||||
have a complete command. If not, we delete that last list."""
|
||||
onto the commandBuffer list and then append commands into
|
||||
that. If the passed in command is part of a multi-line
|
||||
command we keep appending the pieces to the last list in
|
||||
commandBuffer until we have a complete command. If not, we
|
||||
delete that last list."""
|
||||
command = str(command) # In case the command is unicode.
|
||||
if not self.more:
|
||||
try: del self.commandBuffer[-1]
|
||||
@@ -58,17 +66,20 @@ class Interpreter(InteractiveInterpreter):
|
||||
if not self.more: self.commandBuffer.append([])
|
||||
self.commandBuffer[-1].append(command)
|
||||
source = '\n'.join(self.commandBuffer[-1])
|
||||
self.more = self.runsource(source)
|
||||
return self.more
|
||||
more = self.more = self.runsource(source)
|
||||
dispatcher.send(signal='Interpreter.push', sender=self,
|
||||
command=command, more=more, source=source)
|
||||
return more
|
||||
|
||||
def runsource(self, source):
|
||||
"""Compile and run source code in the interpreter."""
|
||||
stdin, stdout, stderr = sys.stdin, sys.stdout, sys.stderr
|
||||
sys.stdin, sys.stdout, sys.stderr = self.stdin, self.stdout, self.stderr
|
||||
sys.stdin, sys.stdout, sys.stderr = \
|
||||
self.stdin, self.stdout, self.stderr
|
||||
more = InteractiveInterpreter.runsource(self, source)
|
||||
# If sys.std* is still what we set it to, then restore it.
|
||||
# But, if the executed source changed sys.std*, assume it
|
||||
# was meant to be changed and leave it. Power to the people.
|
||||
# But, if the executed source changed sys.std*, assume it was
|
||||
# meant to be changed and leave it. Power to the people.
|
||||
if sys.stdin == self.stdin:
|
||||
sys.stdin = stdin
|
||||
if sys.stdout == self.stdout:
|
||||
@@ -86,14 +97,17 @@ class Interpreter(InteractiveInterpreter):
|
||||
|
||||
The list of options will be based on the locals namespace."""
|
||||
stdin, stdout, stderr = sys.stdin, sys.stdout, sys.stderr
|
||||
sys.stdin, sys.stdout, sys.stderr = self.stdin, self.stdout, self.stderr
|
||||
return introspect.getAutoCompleteList(command, self.locals, *args, **kwds)
|
||||
sys.stdin, sys.stdout, sys.stderr = \
|
||||
self.stdin, self.stdout, self.stderr
|
||||
l = introspect.getAutoCompleteList(command, self.locals,
|
||||
*args, **kwds)
|
||||
sys.stdin, sys.stdout, sys.stderr = stdin, stdout, stderr
|
||||
return l
|
||||
|
||||
def getCallTip(self, command='', *args, **kwds):
|
||||
"""Return call tip text for a command.
|
||||
|
||||
The call tip information will be based on the locals namespace."""
|
||||
Call tip information will be based on the locals namespace."""
|
||||
return introspect.getCallTip(command, self.locals, *args, **kwds)
|
||||
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
"""Provides a variety of introspective-type support functions for things
|
||||
like call tips and command auto completion."""
|
||||
"""Provides a variety of introspective-type support functions for
|
||||
things like call tips and command auto completion."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
@@ -9,10 +9,15 @@ from __future__ import nested_scopes
|
||||
|
||||
import cStringIO
|
||||
import inspect
|
||||
import string
|
||||
import tokenize
|
||||
import types
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
def getAutoCompleteList(command='', locals=None, includeMagic=1,
|
||||
includeSingle=1, includeDouble=1):
|
||||
"""Return list of auto-completion options for command.
|
||||
@@ -33,13 +38,14 @@ def getAutoCompleteList(command='', locals=None, includeMagic=1,
|
||||
includeSingle, includeDouble)
|
||||
return attributes
|
||||
|
||||
def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1):
|
||||
"""Return list of unique attributes, including inherited, for an object."""
|
||||
def getAttributeNames(object, includeMagic=1, includeSingle=1,
|
||||
includeDouble=1):
|
||||
"""Return list of unique attributes, including inherited, for object."""
|
||||
attributes = []
|
||||
dict = {}
|
||||
if not hasattrAlwaysReturnsTrue(object):
|
||||
# Add some attributes that don't always get picked up.
|
||||
# If they don't apply, they'll get filtered out at the end.
|
||||
# Add some attributes that don't always get picked up. If
|
||||
# they don't apply, they'll get filtered out at the end.
|
||||
attributes += ['__bases__', '__class__', '__dict__', '__name__',
|
||||
'func_closure', 'func_code', 'func_defaults',
|
||||
'func_dict', 'func_doc', 'func_globals', 'func_name']
|
||||
@@ -69,19 +75,20 @@ def hasattrAlwaysReturnsTrue(object):
|
||||
return hasattr(object, 'bogu5_123_aTTri8ute')
|
||||
|
||||
def getAllAttributeNames(object):
|
||||
"""Return mapping of all attributes, including inherited, for an object.
|
||||
"""Return dict of all attributes, including inherited, for an object.
|
||||
|
||||
Recursively walk through a class and all base classes.
|
||||
"""
|
||||
attrdict = {} # (object, technique, count): [list of attributes]
|
||||
# !!!
|
||||
# !!! Do Not use hasattr() as a test anywhere in this function,
|
||||
# !!! because it is unreliable with remote objects - xmlrpc, soap, etc.
|
||||
# !!! They always return true for hasattr().
|
||||
# Do Not use hasattr() as a test anywhere in this function,
|
||||
# because it is unreliable with remote objects: xmlrpc, soap, etc.
|
||||
# They always return true for hasattr().
|
||||
# !!!
|
||||
try:
|
||||
# Yes, this can fail if object is an instance of a class with
|
||||
# __str__ (or __repr__) having a bug or raising an exception. :-(
|
||||
# Yes, this can fail if object is an instance of a class with
|
||||
# __str__ (or __repr__) having a bug or raising an
|
||||
# exception. :-(
|
||||
key = str(object)
|
||||
except:
|
||||
key = 'anonymous'
|
||||
@@ -106,7 +113,8 @@ def getAllAttributeNames(object):
|
||||
pass
|
||||
else:
|
||||
if klass is object:
|
||||
# Break a circular reference. This happens with extension classes.
|
||||
# Break a circular reference. This happens with extension
|
||||
# classes.
|
||||
pass
|
||||
else:
|
||||
attrdict.update(getAllAttributeNames(klass))
|
||||
@@ -156,7 +164,7 @@ def getCallTip(command='', locals=None):
|
||||
if dropSelf:
|
||||
# The first parameter to a method is a reference to an
|
||||
# instance, usually coded as "self", and is usually passed
|
||||
# automatically by Python and therefore we want to drop it.
|
||||
# automatically by Python; therefore we want to drop it.
|
||||
temp = argspec.split(',')
|
||||
if len(temp) == 1: # No other arguments.
|
||||
argspec = '()'
|
||||
@@ -171,10 +179,15 @@ def getCallTip(command='', locals=None):
|
||||
# "Return call tip text for a command."
|
||||
# tip3 is the rest of the docstring, like:
|
||||
# "The call tip information will be based on ... <snip>
|
||||
firstline = doc.split('\n')[0].lstrip()
|
||||
if tip1 == firstline:
|
||||
tip1 = ''
|
||||
else:
|
||||
tip1 += '\n\n'
|
||||
docpieces = doc.split('\n\n')
|
||||
tip2 = docpieces[0]
|
||||
tip3 = '\n\n'.join(docpieces[1:])
|
||||
tip = '%s\n\n%s\n\n%s' % (tip1, tip2, tip3)
|
||||
tip = '%s%s\n\n%s' % (tip1, tip2, tip3)
|
||||
else:
|
||||
tip = tip1
|
||||
calltip = (name, argspec[1:-1], tip.strip())
|
||||
@@ -183,10 +196,24 @@ def getCallTip(command='', locals=None):
|
||||
def getRoot(command, terminator=None):
|
||||
"""Return the rightmost root portion of an arbitrary Python command.
|
||||
|
||||
Return only the root portion that can be eval()'d without side effects.
|
||||
The command would normally terminate with a "(" or ".". The terminator
|
||||
and anything after the terminator will be dropped."""
|
||||
Return only the root portion that can be eval()'d without side
|
||||
effects. The command would normally terminate with a '(' or
|
||||
'.'. The terminator and anything after the terminator will be
|
||||
dropped."""
|
||||
command = rtrimTerminus(command, terminator)
|
||||
tokens = getTokens(command)
|
||||
if not tokens:
|
||||
return ''
|
||||
if tokens[-1][0] is tokenize.ENDMARKER:
|
||||
# Remove the end marker.
|
||||
del tokens[-1]
|
||||
if terminator == '.' and \
|
||||
(tokens[-1][1] <> '.' or tokens[-1][0] is not tokenize.OP):
|
||||
# Trap decimals in numbers, versus the dot operator.
|
||||
return ''
|
||||
else:
|
||||
# Strip off the terminator.
|
||||
command = command[:-1]
|
||||
command = command.rstrip()
|
||||
tokens = getTokens(command)
|
||||
tokens.reverse()
|
||||
@@ -221,8 +248,9 @@ def getRoot(command, terminator=None):
|
||||
# Remember, we're working backwords.
|
||||
# So prefix += tokenstring would be wrong.
|
||||
if prefix in emptyTypes and tokenstring in ('[({'):
|
||||
# We've already got an empty type identified so now we are in
|
||||
# a nested situation and we can break out with what we've got.
|
||||
# We've already got an empty type identified so now we
|
||||
# are in a nested situation and we can break out with
|
||||
# what we've got.
|
||||
break
|
||||
else:
|
||||
prefix = tokenstring + prefix
|
||||
@@ -240,7 +268,7 @@ def getRoot(command, terminator=None):
|
||||
|
||||
def getTokens(command):
|
||||
"""Return list of token tuples for command."""
|
||||
command = str(command) # In case the command is unicode, which won't work.
|
||||
command = str(command) # In case the command is unicode, which fails.
|
||||
f = cStringIO.StringIO(command)
|
||||
# tokens is a list of token tuples, each looking like:
|
||||
# (type, string, (srow, scol), (erow, ecol), line)
|
||||
@@ -259,17 +287,17 @@ def getTokens(command):
|
||||
tokens.append(args)
|
||||
tokenize.tokenize_loop(f.readline, eater)
|
||||
except tokenize.TokenError:
|
||||
# This is due to a premature EOF, which we expect since
|
||||
# we are feeding in fragments of Python code.
|
||||
# This is due to a premature EOF, which we expect since we are
|
||||
# feeding in fragments of Python code.
|
||||
pass
|
||||
return tokens
|
||||
|
||||
def rtrimTerminus(command, terminator=None):
|
||||
"""Return command minus the final terminator and anything that follows."""
|
||||
"""Return command minus anything that fillows the final terminator."""
|
||||
if terminator:
|
||||
pieces = command.split(terminator)
|
||||
if len(pieces) > 1:
|
||||
command = terminator.join(pieces[:-1])
|
||||
command = terminator.join(pieces[:-1]) + terminator
|
||||
return command
|
||||
|
||||
def getBaseObject(object):
|
||||
@@ -278,12 +306,14 @@ def getBaseObject(object):
|
||||
# Builtin functions don't have an argspec that we can get.
|
||||
dropSelf = 0
|
||||
elif inspect.ismethod(object):
|
||||
# Get the function from the object otherwise inspect.getargspec()
|
||||
# complains that the object isn't a Python function.
|
||||
# Get the function from the object otherwise
|
||||
# inspect.getargspec() complains that the object isn't a
|
||||
# Python function.
|
||||
try:
|
||||
if object.im_self is None:
|
||||
# This is an unbound method so we do not drop self from the
|
||||
# argspec, since an instance must be passed as the first arg.
|
||||
# This is an unbound method so we do not drop self
|
||||
# from the argspec, since an instance must be passed
|
||||
# as the first arg.
|
||||
dropSelf = 0
|
||||
else:
|
||||
dropSelf = 1
|
||||
@@ -319,6 +349,3 @@ def getConstructor(object):
|
||||
if constructor is not None:
|
||||
return constructor
|
||||
return None
|
||||
|
||||
|
||||
|
||||
|
@@ -4,66 +4,73 @@ __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
class PseudoKeyword:
|
||||
"""A callable class that calls a method passed as a parameter.
|
||||
|
||||
|
||||
Good for creating a pseudo keyword in the python runtime
|
||||
environment. The keyword is really an object that has a repr()
|
||||
that calls itself which calls the method that was passed in the
|
||||
init of the object. All this just to avoid having to type in the
|
||||
closing parens on a method. So, for example:
|
||||
|
||||
|
||||
>>> quit = PseudoKeyword(SomeObject.someMethod)
|
||||
>>> quit
|
||||
|
||||
|
||||
SomeObject.someMethod gets executed as if it had been called
|
||||
directly and the user didn't have to type the parens, like
|
||||
"quit()". This technique is most applicable for pseudo keywords
|
||||
'quit()'. This technique is most applicable for pseudo keywords
|
||||
like quit, exit and help.
|
||||
|
||||
If SomeObject.someMethod can take parameters, they can still be
|
||||
passed by using the keyword in the traditional way with parens.
|
||||
"""
|
||||
|
||||
If SomeObject.someMethod can take parameters, they can still be
|
||||
passed by using the keyword in the traditional way with parens."""
|
||||
|
||||
def __init__(self, method):
|
||||
"""Create a callable object that executes method when called."""
|
||||
|
||||
|
||||
if callable(method):
|
||||
self.method = method
|
||||
else:
|
||||
raise ValueError, 'method must be callable'
|
||||
|
||||
|
||||
def __call__(self, *args, **kwds):
|
||||
self.method(*args, **kwds)
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
self()
|
||||
return ''
|
||||
|
||||
|
||||
class PseudoFile:
|
||||
|
||||
|
||||
def __init__(self):
|
||||
"""Create a file-like object."""
|
||||
pass
|
||||
|
||||
|
||||
def readline(self):
|
||||
pass
|
||||
|
||||
def write(self, s):
|
||||
pass
|
||||
|
||||
|
||||
def writelines(self, l):
|
||||
map(self.write, l)
|
||||
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
||||
def isatty(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
class PseudoFileIn(PseudoFile):
|
||||
|
||||
|
||||
def __init__(self, readline, readlines=None):
|
||||
if callable(readline):
|
||||
self.readline = readline
|
||||
@@ -71,23 +78,23 @@ class PseudoFileIn(PseudoFile):
|
||||
raise ValueError, 'readline must be callable'
|
||||
if callable(readlines):
|
||||
self.readlines = readlines
|
||||
|
||||
|
||||
def isatty(self):
|
||||
return 1
|
||||
|
||||
|
||||
class PseudoFileOut(PseudoFile):
|
||||
|
||||
|
||||
def __init__(self, write):
|
||||
if callable(write):
|
||||
self.write = write
|
||||
else:
|
||||
raise ValueError, 'write must be callable'
|
||||
|
||||
|
||||
def isatty(self):
|
||||
return 1
|
||||
|
||||
|
||||
|
||||
|
||||
class PseudoFileErr(PseudoFile):
|
||||
|
||||
def __init__(self, write):
|
||||
@@ -95,9 +102,6 @@ class PseudoFileErr(PseudoFile):
|
||||
self.write = write
|
||||
else:
|
||||
raise ValueError, 'write must be callable'
|
||||
|
||||
|
||||
def isatty(self):
|
||||
return 1
|
||||
|
||||
|
||||
|
||||
|
@@ -1,7 +1,9 @@
|
||||
"""The PyCrust Shell is an interactive text control in which a user types in
|
||||
commands to be sent to the interpreter. This particular shell is based on
|
||||
wxPython's wxStyledTextCtrl. The latest files are always available at the
|
||||
SourceForge project page at http://sourceforge.net/projects/pycrust/.
|
||||
"""The PyCrust Shell is an interactive text control in which a user
|
||||
types in commands to be sent to the interpreter. This particular shell
|
||||
is based on wxPython's wxStyledTextCtrl. The latest files are always
|
||||
available at the SourceForge project page at
|
||||
http://sourceforge.net/projects/pycrust/.
|
||||
|
||||
Sponsored by Orbtech - Your source for Python programming expertise."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
@@ -17,18 +19,22 @@ from pseudo import PseudoFileOut
|
||||
from pseudo import PseudoFileErr
|
||||
from shellmenu import ShellMenu
|
||||
from version import VERSION
|
||||
import dispatcher
|
||||
|
||||
try:
|
||||
from deco.wxpy import wx
|
||||
import decor
|
||||
except ImportError:
|
||||
from wxPython import wx
|
||||
from wxPython import stc
|
||||
else:
|
||||
from decor.decorate import wx
|
||||
from decor.decorate import stc
|
||||
|
||||
try:
|
||||
from deco.wxpy import stc
|
||||
except ImportError:
|
||||
from wxPython import stc
|
||||
|
||||
True, False = 1, 0
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
sys.ps3 = '<-- ' # Input prompt.
|
||||
|
||||
@@ -68,8 +74,9 @@ class ShellFrame(wx.wxFrame, ShellMenu):
|
||||
InterpClass=None, *args, **kwds):
|
||||
"""Create a PyCrust ShellFrame instance."""
|
||||
wx.wxFrame.__init__(self, parent, id, title, pos, size, style)
|
||||
intro = 'Welcome To PyCrust %s - The Flakiest Python Shell' % VERSION
|
||||
intro += '\nSponsored by Orbtech - Your source for Python programming expertise.'
|
||||
intro = 'PyCrust %s - The Flakiest Python Shell' % VERSION
|
||||
intro += '\nSponsored by Orbtech - ' + \
|
||||
'Your source for Python programming expertise.'
|
||||
self.CreateStatusBar()
|
||||
self.SetStatusText(intro.replace('\n', ', '))
|
||||
import images
|
||||
@@ -95,8 +102,8 @@ class ShellFrame(wx.wxFrame, ShellMenu):
|
||||
class ShellFacade:
|
||||
"""Simplified interface to all shell-related functionality.
|
||||
|
||||
This is a semi-transparent facade, in that all attributes of other are
|
||||
still accessible, even though only some are visible to the user."""
|
||||
This is a semi-transparent facade, in that all attributes of other
|
||||
are accessible, even though only some are visible to the user."""
|
||||
|
||||
name = 'PyCrust Shell Interface'
|
||||
revision = __revision__
|
||||
@@ -141,7 +148,11 @@ Alt+N Retrieve Next History item.
|
||||
Shift+Up Arrow Insert Previous History item.
|
||||
Shift+Down Arrow Insert Next History item.
|
||||
F8 Command-completion of History item.
|
||||
(Type a few characters of a previous command and then press F8.)
|
||||
(Type a few characters of a previous command and press F8.)
|
||||
Ctrl+Enter Insert new line into multiline command.
|
||||
Ctrl+] Increase font size.
|
||||
Ctrl+[ Decrease font size.
|
||||
Ctrl+= Default font size.
|
||||
"""
|
||||
|
||||
def help(self):
|
||||
@@ -158,7 +169,7 @@ F8 Command-completion of History item.
|
||||
if self.__dict__.has_key(name):
|
||||
self.__dict__[name] = value
|
||||
elif hasattr(self.other, name):
|
||||
return setattr(self.other, name, value)
|
||||
setattr(self.other, name, value)
|
||||
else:
|
||||
raise AttributeError, name
|
||||
|
||||
@@ -182,10 +193,12 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
revision = __revision__
|
||||
|
||||
def __init__(self, parent, id=-1, pos=wx.wxDefaultPosition,
|
||||
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN, introText='',
|
||||
locals=None, InterpClass=None, *args, **kwds):
|
||||
size=wx.wxDefaultSize, style=wx.wxCLIP_CHILDREN,
|
||||
introText='', locals=None, InterpClass=None, *args, **kwds):
|
||||
"""Create a PyCrust Shell instance."""
|
||||
stc.wxStyledTextCtrl.__init__(self, parent, id, pos, size, style)
|
||||
if locals is None:
|
||||
locals = {}
|
||||
# Grab these so they can be restored by self.redirect* methods.
|
||||
self.stdin = sys.stdin
|
||||
self.stdout = sys.stdout
|
||||
@@ -197,20 +210,12 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
from interpreter import Interpreter
|
||||
else:
|
||||
Interpreter = InterpClass
|
||||
# Create default locals so we have something interesting.
|
||||
shellLocals = {'__name__': 'PyCrust-Shell',
|
||||
'__doc__': 'PyCrust-Shell, The PyCrust Python Shell.',
|
||||
'__version__': VERSION,
|
||||
}
|
||||
# Add the dictionary that was passed in.
|
||||
if locals:
|
||||
shellLocals.update(locals)
|
||||
# Create a replacement for stdin.
|
||||
self.reader = PseudoFileIn(self.readline, self.readlines)
|
||||
self.reader.input = ''
|
||||
self.reader.isreading = 0
|
||||
# Set up the interpreter.
|
||||
self.interp = Interpreter(locals=shellLocals,
|
||||
self.interp = Interpreter(locals=locals,
|
||||
rawin=self.raw_input,
|
||||
stdin=self.reader,
|
||||
stdout=PseudoFileOut(self.writeOut),
|
||||
@@ -223,12 +228,13 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
self.promptPosEnd = 0
|
||||
# Keep track of multi-line commands.
|
||||
self.more = 0
|
||||
# Create the command history. Commands are added into the front of
|
||||
# the list (ie. at index 0) as they are entered. self.historyIndex
|
||||
# is the current position in the history; it gets incremented as you
|
||||
# retrieve the previous command, decremented as you retrieve the
|
||||
# next, and reset when you hit Enter. self.historyIndex == -1 means
|
||||
# you're on the current command, not in the history.
|
||||
# Create the command history. Commands are added into the
|
||||
# front of the list (ie. at index 0) as they are entered.
|
||||
# self.historyIndex is the current position in the history; it
|
||||
# gets incremented as you retrieve the previous command,
|
||||
# decremented as you retrieve the next, and reset when you hit
|
||||
# Enter. self.historyIndex == -1 means you're on the current
|
||||
# command, not in the history.
|
||||
self.history = []
|
||||
self.historyIndex = -1
|
||||
# Assign handlers for keyboard events.
|
||||
@@ -239,21 +245,31 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
# Assign handler for idle time.
|
||||
self.waiting = False
|
||||
wx.EVT_IDLE(self, self.OnIdle)
|
||||
dispatcher.connect(receiver=self.fontsizer, signal='FontIncrease')
|
||||
dispatcher.connect(receiver=self.fontsizer, signal='FontDecrease')
|
||||
dispatcher.connect(receiver=self.fontsizer, signal='FontDefault')
|
||||
# Configure various defaults and user preferences.
|
||||
self.config()
|
||||
# Display the introductory banner information.
|
||||
try: self.showIntro(introText)
|
||||
except: pass
|
||||
self.showIntro(introText)
|
||||
# Assign some pseudo keywords to the interpreter's namespace.
|
||||
try: self.setBuiltinKeywords()
|
||||
except: pass
|
||||
self.setBuiltinKeywords()
|
||||
# Add 'shell' to the interpreter's local namespace.
|
||||
try: self.setLocalShell()
|
||||
except: pass
|
||||
self.setLocalShell()
|
||||
# Do this last so the user has complete control over their
|
||||
# environment. They can override anything they want.
|
||||
try: self.execStartupScript(self.interp.startupScript)
|
||||
except: pass
|
||||
# environment. They can override anything they want.
|
||||
self.execStartupScript(self.interp.startupScript)
|
||||
|
||||
def fontsizer(self, signal):
|
||||
"""Receiver for Font* signals."""
|
||||
size = self.GetZoom()
|
||||
if signal == 'FontIncrease':
|
||||
size += 1
|
||||
elif signal == 'FontDecrease':
|
||||
size -= 1
|
||||
elif signal == 'FontDefault':
|
||||
size = 0
|
||||
self.SetZoom(size)
|
||||
|
||||
def destroy(self):
|
||||
del self.interp
|
||||
@@ -278,6 +294,8 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
self.autoCompleteIncludeDouble = 1
|
||||
self.autoCompleteCaseInsensitive = 1
|
||||
self.AutoCompSetIgnoreCase(self.autoCompleteCaseInsensitive)
|
||||
self.AutoCompSetAutoHide(False)
|
||||
self.AutoCompStops(' .,;:([)]}\'"\\<>%^&+-=*/|`')
|
||||
# Do we want to automatically pop up command argument help?
|
||||
self.autoCallTip = 1
|
||||
self.CallTipSetBackground(wx.wxColour(255, 255, 232))
|
||||
@@ -290,7 +308,8 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
def showIntro(self, text=''):
|
||||
"""Display introductory text in the shell."""
|
||||
if text:
|
||||
if not text.endswith(os.linesep): text += os.linesep
|
||||
if not text.endswith(os.linesep):
|
||||
text += os.linesep
|
||||
self.write(text)
|
||||
try:
|
||||
self.write(self.interp.introText)
|
||||
@@ -301,7 +320,7 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
def setBuiltinKeywords(self):
|
||||
"""Create pseudo keywords as part of builtins.
|
||||
|
||||
This simply sets "close", "exit" and "quit" to a helpful string.
|
||||
This sets `close`, `exit` and `quit` to a helpful string.
|
||||
"""
|
||||
import __builtin__
|
||||
__builtin__.close = __builtin__.exit = __builtin__.quit = \
|
||||
@@ -312,10 +331,10 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
|
||||
# XXX Good enough for now but later we want to send a close event.
|
||||
|
||||
# In the close event handler we can make sure they want to quit.
|
||||
# Other applications, like PythonCard, may choose to hide rather than
|
||||
# quit so we should just post the event and let the surrounding app
|
||||
# decide what it wants to do.
|
||||
# In the close event handler we can make sure they want to
|
||||
# quit. Other applications, like PythonCard, may choose to
|
||||
# hide rather than quit so we should just post the event and
|
||||
# let the surrounding app decide what it wants to do.
|
||||
self.write('Click on the close button to leave the application.')
|
||||
|
||||
def setLocalShell(self):
|
||||
@@ -325,9 +344,8 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
def execStartupScript(self, startupScript):
|
||||
"""Execute the user's PYTHONSTARTUP script if they have one."""
|
||||
if startupScript and os.path.isfile(startupScript):
|
||||
startupText = 'Startup script executed: ' + startupScript
|
||||
self.push('print %s;execfile(%s)' % \
|
||||
(`startupText`, `startupScript`))
|
||||
text = 'Startup script executed: ' + startupScript
|
||||
self.push('print %r; execfile(%r)' % (text, startupScript))
|
||||
else:
|
||||
self.push('')
|
||||
|
||||
@@ -335,42 +353,64 @@ class Shell(stc.wxStyledTextCtrl):
|
||||
"""Configure font size, typeface and color for lexer."""
|
||||
|
||||
# Default style
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_DEFAULT, "face:%(mono)s,size:%(size)d,back:%(backcol)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_DEFAULT,
|
||||
"face:%(mono)s,size:%(size)d,back:%(backcol)s" % \
|
||||
faces)
|
||||
|
||||
self.StyleClearAll()
|
||||
|
||||
# Built in styles
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_LINENUMBER, "back:#C0C0C0,face:%(mono)s,size:%(lnsize)d" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_CONTROLCHAR, "face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACELIGHT, "fore:#0000FF,back:#FFFF88")
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACEBAD, "fore:#FF0000,back:#FFFF88")
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_LINENUMBER,
|
||||
"back:#C0C0C0,face:%(mono)s,size:%(lnsize)d" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_CONTROLCHAR,
|
||||
"face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACELIGHT,
|
||||
"fore:#0000FF,back:#FFFF88")
|
||||
self.StyleSetSpec(stc.wxSTC_STYLE_BRACEBAD,
|
||||
"fore:#FF0000,back:#FFFF88")
|
||||
|
||||
# Python styles
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFAULT, "face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTLINE, "fore:#007F00,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_NUMBER, "")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRING, "fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_CHARACTER, "fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_WORD, "fore:#00007F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLE, "fore:#7F0000")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLEDOUBLE, "fore:#000033,back:#FFFFE8")
|
||||
self.StyleSetSpec(stc.wxSTC_P_CLASSNAME, "fore:#0000FF,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFNAME, "fore:#007F7F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_OPERATOR, "")
|
||||
self.StyleSetSpec(stc.wxSTC_P_IDENTIFIER, "")
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTBLOCK, "fore:#7F7F7F")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFAULT,
|
||||
"face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTLINE,
|
||||
"fore:#007F00,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_NUMBER,
|
||||
"")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRING,
|
||||
"fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_CHARACTER,
|
||||
"fore:#7F007F,face:%(mono)s" % faces)
|
||||
self.StyleSetSpec(stc.wxSTC_P_WORD,
|
||||
"fore:#00007F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLE,
|
||||
"fore:#7F0000")
|
||||
self.StyleSetSpec(stc.wxSTC_P_TRIPLEDOUBLE,
|
||||
"fore:#000033,back:#FFFFE8")
|
||||
self.StyleSetSpec(stc.wxSTC_P_CLASSNAME,
|
||||
"fore:#0000FF,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_DEFNAME,
|
||||
"fore:#007F7F,bold")
|
||||
self.StyleSetSpec(stc.wxSTC_P_OPERATOR,
|
||||
"")
|
||||
self.StyleSetSpec(stc.wxSTC_P_IDENTIFIER,
|
||||
"")
|
||||
self.StyleSetSpec(stc.wxSTC_P_COMMENTBLOCK,
|
||||
"fore:#7F7F7F")
|
||||
self.StyleSetSpec(stc.wxSTC_P_STRINGEOL,
|
||||
"fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces)
|
||||
|
||||
def about(self):
|
||||
"""Display information about PyCrust."""
|
||||
text = """
|
||||
Author: %r
|
||||
PyCrust Version: %s
|
||||
Shell Revision: %s
|
||||
Interpreter Revision: %s
|
||||
Python Version: %s
|
||||
wxPython Version: %s
|
||||
Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
sys.version.split()[0], wx.__version__, sys.platform)
|
||||
Platform: %s""" % \
|
||||
(__author__, VERSION, self.revision, self.interp.revision,
|
||||
sys.version.split()[0], wx.__version__, sys.platform)
|
||||
self.write(text.strip())
|
||||
|
||||
def OnIdle(self, event):
|
||||
@@ -389,10 +429,6 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
caretPos = self.GetCurrentPos()
|
||||
if caretPos > 0:
|
||||
charBefore = self.GetCharAt(caretPos - 1)
|
||||
#*** Patch to fix bug in wxSTC for wxPython < 2.3.3.
|
||||
if charBefore < 0:
|
||||
charBefore = 32 # Mimic a space.
|
||||
#***
|
||||
styleBefore = self.GetStyleAt(caretPos - 1)
|
||||
|
||||
# Check before.
|
||||
@@ -403,10 +439,6 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
# Check after.
|
||||
if braceAtCaret < 0:
|
||||
charAfter = self.GetCharAt(caretPos)
|
||||
#*** Patch to fix bug in wxSTC for wxPython < 2.3.3.
|
||||
if charAfter < 0:
|
||||
charAfter = 32 # Mimic a space.
|
||||
#***
|
||||
styleAfter = self.GetStyleAt(caretPos)
|
||||
if charAfter and chr(charAfter) in '[]{}()' \
|
||||
and styleAfter == stc.wxSTC_P_OPERATOR:
|
||||
@@ -423,10 +455,11 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
def OnChar(self, event):
|
||||
"""Keypress event handler.
|
||||
|
||||
Only receives an event if OnKeyDown calls event.Skip() for
|
||||
the corresponding event."""
|
||||
Only receives an event if OnKeyDown calls event.Skip() for the
|
||||
corresponding event."""
|
||||
|
||||
# Prevent modification of previously submitted commands/responses.
|
||||
# Prevent modification of previously submitted
|
||||
# commands/responses.
|
||||
if not self.CanEdit():
|
||||
return
|
||||
key = event.KeyCode()
|
||||
@@ -437,8 +470,8 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
pass
|
||||
elif key in self.autoCompleteKeys:
|
||||
# Usually the dot (period) key activates auto completion.
|
||||
# Get the command between the prompt and the cursor.
|
||||
# Add the autocomplete character to the end of the command.
|
||||
# Get the command between the prompt and the cursor. Add
|
||||
# the autocomplete character to the end of the command.
|
||||
if self.AutoCompActive():
|
||||
self.AutoCompCancel()
|
||||
command = self.GetTextRange(stoppos, currpos) + chr(key)
|
||||
@@ -446,12 +479,12 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
if self.autoComplete:
|
||||
self.autoCompleteShow(command)
|
||||
elif key == ord('('):
|
||||
# The left paren activates a call tip and cancels
|
||||
# an active auto completion.
|
||||
# The left paren activates a call tip and cancels an
|
||||
# active auto completion.
|
||||
if self.AutoCompActive():
|
||||
self.AutoCompCancel()
|
||||
# Get the command between the prompt and the cursor.
|
||||
# Add the '(' to the end of the command.
|
||||
# Get the command between the prompt and the cursor. Add
|
||||
# the '(' to the end of the command.
|
||||
self.ReplaceSelection('')
|
||||
command = self.GetTextRange(stoppos, currpos) + '('
|
||||
self.write('(')
|
||||
@@ -469,14 +502,16 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
if self.AutoCompActive():
|
||||
event.Skip()
|
||||
return
|
||||
# Prevent modification of previously submitted commands/responses.
|
||||
# Prevent modification of previously submitted
|
||||
# commands/responses.
|
||||
controlDown = event.ControlDown()
|
||||
altDown = event.AltDown()
|
||||
shiftDown = event.ShiftDown()
|
||||
currpos = self.GetCurrentPos()
|
||||
endpos = self.GetTextLength()
|
||||
selecting = self.GetSelectionStart() != self.GetSelectionEnd()
|
||||
# Return (Enter) is used to submit a command to the interpreter.
|
||||
# Return (Enter) is used to submit a command to the
|
||||
# interpreter.
|
||||
if not controlDown and key == wx.WXK_RETURN:
|
||||
if self.CallTipActive():
|
||||
self.CallTipCancel()
|
||||
@@ -498,6 +533,15 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
event.Skip()
|
||||
else:
|
||||
self.clearCommand()
|
||||
# Increase font size.
|
||||
elif controlDown and key in (ord(']'),):
|
||||
dispatcher.send(signal='FontIncrease')
|
||||
# Decrease font size.
|
||||
elif controlDown and key in (ord('['),):
|
||||
dispatcher.send(signal='FontDecrease')
|
||||
# Default font size.
|
||||
elif controlDown and key in (ord('='),):
|
||||
dispatcher.send(signal='FontDefault')
|
||||
# Cut to the clipboard.
|
||||
elif (controlDown and key in (ord('X'), ord('x'))) \
|
||||
or (shiftDown and key == wx.WXK_DELETE):
|
||||
@@ -510,6 +554,10 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
elif controlDown and shiftDown \
|
||||
and key in (ord('C'), ord('c'), wx.WXK_INSERT):
|
||||
self.CopyWithPrompts()
|
||||
# Copy to the clipboard, including prefixed prompts.
|
||||
elif altDown and not controlDown \
|
||||
and key in (ord('C'), ord('c'), wx.WXK_INSERT):
|
||||
self.CopyWithPromptsPrefixed()
|
||||
# Home needs to be aware of the prompt.
|
||||
elif key == wx.WXK_HOME:
|
||||
home = self.promptPosEnd
|
||||
@@ -521,28 +569,26 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
else:
|
||||
event.Skip()
|
||||
#
|
||||
# The following handlers modify text, so we need to see if there
|
||||
# is a selection that includes text prior to the prompt.
|
||||
# The following handlers modify text, so we need to see if
|
||||
# there is a selection that includes text prior to the prompt.
|
||||
#
|
||||
# Don't modify a selection with text prior to the prompt.
|
||||
elif selecting and key not in NAVKEYS and not self.CanEdit():
|
||||
pass
|
||||
# Paste from the clipboard.
|
||||
elif (controlDown and not shiftDown \
|
||||
and key in (ord('V'), ord('v'))) \
|
||||
or (shiftDown and not controlDown and key == wx.WXK_INSERT):
|
||||
elif (controlDown and not shiftDown and key in (ord('V'), ord('v'))) \
|
||||
or (shiftDown and not controlDown and key == wx.WXK_INSERT):
|
||||
self.Paste()
|
||||
# Paste from the clipboard, run commands.
|
||||
elif controlDown and shiftDown \
|
||||
and key in (ord('V'), ord('v')):
|
||||
elif controlDown and shiftDown and key in (ord('V'), ord('v')):
|
||||
self.PasteAndRun()
|
||||
# Replace with the previous command from the history buffer.
|
||||
elif (controlDown and key == wx.WXK_UP) \
|
||||
or (altDown and key in (ord('P'), ord('p'))):
|
||||
or (altDown and key in (ord('P'), ord('p'))):
|
||||
self.OnHistoryReplace(step=+1)
|
||||
# Replace with the next command from the history buffer.
|
||||
elif (controlDown and key == wx.WXK_DOWN) \
|
||||
or (altDown and key in (ord('N'), ord('n'))):
|
||||
or (altDown and key in (ord('N'), ord('n'))):
|
||||
self.OnHistoryReplace(step=-1)
|
||||
# Insert the previous command from the history buffer.
|
||||
elif (shiftDown and key == wx.WXK_UP) and self.CanEdit():
|
||||
@@ -596,13 +642,14 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
|
||||
def replaceFromHistory(self, step):
|
||||
"""Replace selection with command from the history buffer."""
|
||||
ps2 = str(sys.ps2)
|
||||
self.ReplaceSelection('')
|
||||
newindex = self.historyIndex + step
|
||||
if -1 <= newindex <= len(self.history):
|
||||
self.historyIndex = newindex
|
||||
if 0 <= newindex <= len(self.history)-1:
|
||||
command = self.history[self.historyIndex]
|
||||
command = command.replace('\n', os.linesep + sys.ps2)
|
||||
command = command.replace('\n', os.linesep + ps2)
|
||||
self.ReplaceSelection(command)
|
||||
|
||||
def OnHistoryInsert(self, step):
|
||||
@@ -626,8 +673,8 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
searchText = searchText[:-numCharsAfterCursor]
|
||||
if not searchText:
|
||||
return
|
||||
# Search upwards from the current history position and loop back
|
||||
# to the beginning if we don't find anything.
|
||||
# Search upwards from the current history position and loop
|
||||
# back to the beginning if we don't find anything.
|
||||
if (self.historyIndex <= -1) \
|
||||
or (self.historyIndex >= len(self.history)-2):
|
||||
searchOrder = range(len(self.history))
|
||||
@@ -637,7 +684,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
for i in searchOrder:
|
||||
command = self.history[i]
|
||||
if command[:len(searchText)] == searchText:
|
||||
# Replace the current selection with the one we've found.
|
||||
# Replace the current selection with the one we found.
|
||||
self.ReplaceSelection(command[len(searchText):])
|
||||
endpos = self.GetCurrentPos()
|
||||
self.SetSelection(endpos, startpos)
|
||||
@@ -648,8 +695,8 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
def setStatusText(self, text):
|
||||
"""Display status information."""
|
||||
|
||||
# This method will most likely be replaced by the enclosing app
|
||||
# to do something more interesting, like write to a status bar.
|
||||
# This method will likely be replaced by the enclosing app to
|
||||
# do something more interesting, like write to a status bar.
|
||||
print text
|
||||
|
||||
def insertLineBreak(self):
|
||||
@@ -662,24 +709,27 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
def processLine(self):
|
||||
"""Process the line of text at which the user hit Enter."""
|
||||
|
||||
# The user hit ENTER and we need to decide what to do. They could be
|
||||
# sitting on any line in the shell.
|
||||
# The user hit ENTER and we need to decide what to do. They
|
||||
# could be sitting on any line in the shell.
|
||||
|
||||
thepos = self.GetCurrentPos()
|
||||
startpos = self.promptPosEnd
|
||||
endpos = self.GetTextLength()
|
||||
# If they hit RETURN inside the current command, execute the command.
|
||||
ps2 = str(sys.ps2)
|
||||
# If they hit RETURN inside the current command, execute the
|
||||
# command.
|
||||
if self.CanEdit():
|
||||
self.SetCurrentPos(endpos)
|
||||
self.interp.more = 0
|
||||
command = self.GetTextRange(startpos, endpos)
|
||||
lines = command.split(os.linesep + sys.ps2)
|
||||
lines = command.split(os.linesep + ps2)
|
||||
lines = [line.rstrip() for line in lines]
|
||||
command = '\n'.join(lines)
|
||||
if self.reader.isreading:
|
||||
if not command:
|
||||
# Match the behavior of the standard Python shell when
|
||||
# the user hits return without entering a value.
|
||||
# Match the behavior of the standard Python shell
|
||||
# when the user hits return without entering a
|
||||
# value.
|
||||
command = '\n'
|
||||
self.reader.input = command
|
||||
self.write(os.linesep)
|
||||
@@ -701,8 +751,8 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
"""Extract a multi-line command from the editor.
|
||||
|
||||
The command may not necessarily be valid Python syntax."""
|
||||
# XXX Need to extract real prompts here. Need to keep track of the
|
||||
# prompt every time a command is issued.
|
||||
# XXX Need to extract real prompts here. Need to keep track of
|
||||
# the prompt every time a command is issued.
|
||||
ps1 = str(sys.ps1)
|
||||
ps1size = len(ps1)
|
||||
ps2 = str(sys.ps2)
|
||||
@@ -725,9 +775,9 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
self.GotoLine(line)
|
||||
stoppos = self.GetCurrentPos()
|
||||
command = self.GetTextRange(startpos, stoppos)
|
||||
command = command.replace(os.linesep + sys.ps2, '\n')
|
||||
command = command.replace(os.linesep + ps2, '\n')
|
||||
command = command.rstrip()
|
||||
command = command.replace('\n', os.linesep + sys.ps2)
|
||||
command = command.replace('\n', os.linesep + ps2)
|
||||
else:
|
||||
command = ''
|
||||
if rstrip:
|
||||
@@ -740,7 +790,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
The command may not necessarily be valid Python syntax."""
|
||||
if not text:
|
||||
text = self.GetCurLine()[0]
|
||||
# Strip the prompt off the front of text leaving just the command.
|
||||
# Strip the prompt off the front leaving just the command.
|
||||
command = self.lstripPrompt(text)
|
||||
if command == text:
|
||||
command = '' # Real commands have prompts.
|
||||
@@ -803,7 +853,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
return text
|
||||
|
||||
def prompt(self):
|
||||
"""Display appropriate prompt for the context, either ps1, ps2 or ps3.
|
||||
"""Display proper prompt for the context: ps1, ps2 or ps3.
|
||||
|
||||
If this is a continuation line, autoindent as necessary."""
|
||||
isreading = self.reader.isreading
|
||||
@@ -884,7 +934,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
self.ClearAll()
|
||||
|
||||
def run(self, command, prompt=1, verbose=1):
|
||||
"""Execute command within the shell as if it was typed in directly.
|
||||
"""Execute command as if it was typed in directly.
|
||||
>>> shell.run('print "this"')
|
||||
>>> print "this"
|
||||
this
|
||||
@@ -899,12 +949,14 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
self.push(command)
|
||||
|
||||
def runfile(self, filename):
|
||||
"""Execute all commands in file as if they were typed into the shell."""
|
||||
"""Execute all commands in file as if they were typed into the
|
||||
shell."""
|
||||
file = open(filename)
|
||||
try:
|
||||
self.prompt()
|
||||
for command in file.readlines():
|
||||
if command[:6] == 'shell.': # Run shell methods silently.
|
||||
if command[:6] == 'shell.':
|
||||
# Run shell methods silently.
|
||||
self.run(command, prompt=0, verbose=0)
|
||||
else:
|
||||
self.run(command, prompt=0, verbose=1)
|
||||
@@ -923,8 +975,9 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
self.AutoCompShow(offset, options)
|
||||
|
||||
def autoCallTipShow(self, command):
|
||||
"""Display argument spec and docstring in a popup bubble thingie."""
|
||||
if self.CallTipActive: self.CallTipCancel()
|
||||
"""Display argument spec and docstring in a popup window."""
|
||||
if self.CallTipActive():
|
||||
self.CallTipCancel()
|
||||
(name, argspec, tip) = self.interp.getCallTip(command)
|
||||
if argspec:
|
||||
startpos = self.GetCurrentPos()
|
||||
@@ -935,7 +988,8 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
curpos = self.GetCurrentPos()
|
||||
tippos = curpos - (len(name) + 1)
|
||||
fallback = curpos - self.GetColumn(curpos)
|
||||
# In case there isn't enough room, only go back to the fallback.
|
||||
# In case there isn't enough room, only go back to the
|
||||
# fallback.
|
||||
tippos = max(tippos, fallback)
|
||||
self.CallTipShow(tippos, tip)
|
||||
|
||||
@@ -971,8 +1025,8 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
def CanCut(self):
|
||||
"""Return true if text is selected and can be cut."""
|
||||
if self.GetSelectionStart() != self.GetSelectionEnd() \
|
||||
and self.GetSelectionStart() >= self.promptPosEnd \
|
||||
and self.GetSelectionEnd() >= self.promptPosEnd:
|
||||
and self.GetSelectionStart() >= self.promptPosEnd \
|
||||
and self.GetSelectionEnd() >= self.promptPosEnd:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
@@ -992,7 +1046,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
"""Return true if editing should succeed."""
|
||||
if self.GetSelectionStart() != self.GetSelectionEnd():
|
||||
if self.GetSelectionStart() >= self.promptPosEnd \
|
||||
and self.GetSelectionEnd() >= self.promptPosEnd:
|
||||
and self.GetSelectionEnd() >= self.promptPosEnd:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
@@ -1002,37 +1056,54 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
def Cut(self):
|
||||
"""Remove selection and place it on the clipboard."""
|
||||
if self.CanCut() and self.CanCopy():
|
||||
if self.AutoCompActive(): self.AutoCompCancel()
|
||||
if self.CallTipActive: self.CallTipCancel()
|
||||
if self.AutoCompActive():
|
||||
self.AutoCompCancel()
|
||||
if self.CallTipActive():
|
||||
self.CallTipCancel()
|
||||
self.Copy()
|
||||
self.ReplaceSelection('')
|
||||
|
||||
def Copy(self):
|
||||
"""Copy selection and place it on the clipboard."""
|
||||
if self.CanCopy():
|
||||
ps1 = str(sys.ps1)
|
||||
ps2 = str(sys.ps2)
|
||||
command = self.GetSelectedText()
|
||||
command = command.replace(os.linesep + sys.ps2, os.linesep)
|
||||
command = command.replace(os.linesep + sys.ps1, os.linesep)
|
||||
command = command.replace(os.linesep + ps2, os.linesep)
|
||||
command = command.replace(os.linesep + ps1, os.linesep)
|
||||
command = self.lstripPrompt(text=command)
|
||||
data = wx.wxTextDataObject(command)
|
||||
if wx.wxTheClipboard.Open():
|
||||
wx.wxTheClipboard.UsePrimarySelection(False)
|
||||
wx.wxTheClipboard.SetData(data)
|
||||
wx.wxTheClipboard.Close()
|
||||
self._clip(data)
|
||||
|
||||
def CopyWithPrompts(self):
|
||||
"""Copy selection, including prompts, and place it on the clipboard."""
|
||||
if self.CanCopy():
|
||||
command = self.GetSelectedText()
|
||||
data = wx.wxTextDataObject(command)
|
||||
if wx.wxTheClipboard.Open():
|
||||
wx.wxTheClipboard.UsePrimarySelection(False)
|
||||
wx.wxTheClipboard.SetData(data)
|
||||
wx.wxTheClipboard.Close()
|
||||
self._clip(data)
|
||||
|
||||
def CopyWithPromptsPrefixed(self):
|
||||
"""Copy selection, including prompts prefixed with four
|
||||
spaces, and place it on the clipboard."""
|
||||
if self.CanCopy():
|
||||
command = self.GetSelectedText()
|
||||
spaces = ' ' * 4
|
||||
command = spaces + command.replace(os.linesep,
|
||||
os.linesep + spaces)
|
||||
data = wx.wxTextDataObject(command)
|
||||
self._clip(data)
|
||||
|
||||
def _clip(self, data):
|
||||
if wx.wxTheClipboard.Open():
|
||||
wx.wxTheClipboard.UsePrimarySelection(False)
|
||||
wx.wxTheClipboard.SetData(data)
|
||||
wx.wxTheClipboard.Flush()
|
||||
wx.wxTheClipboard.Close()
|
||||
|
||||
def Paste(self):
|
||||
"""Replace selection with clipboard contents."""
|
||||
if self.CanPaste() and wx.wxTheClipboard.Open():
|
||||
ps2 = str(sys.ps2)
|
||||
if wx.wxTheClipboard.IsSupported(wx.wxDataFormat(wx.wxDF_TEXT)):
|
||||
data = wx.wxTextDataObject()
|
||||
if wx.wxTheClipboard.GetData(data):
|
||||
@@ -1041,15 +1112,17 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
command = command.rstrip()
|
||||
command = self.fixLineEndings(command)
|
||||
command = self.lstripPrompt(text=command)
|
||||
command = command.replace(os.linesep + sys.ps2, '\n')
|
||||
command = command.replace(os.linesep + ps2, '\n')
|
||||
command = command.replace(os.linesep, '\n')
|
||||
command = command.replace('\n', os.linesep + sys.ps2)
|
||||
command = command.replace('\n', os.linesep + ps2)
|
||||
self.write(command)
|
||||
wx.wxTheClipboard.Close()
|
||||
|
||||
def PasteAndRun(self):
|
||||
"""Replace selection with clipboard contents, run commands."""
|
||||
if wx.wxTheClipboard.Open():
|
||||
ps1 = str(sys.ps1)
|
||||
ps2 = str(sys.ps2)
|
||||
if wx.wxTheClipboard.IsSupported(wx.wxDataFormat(wx.wxDF_TEXT)):
|
||||
data = wx.wxTextDataObject()
|
||||
if wx.wxTheClipboard.GetData(data):
|
||||
@@ -1059,16 +1132,21 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
self.SetSelection(startpos, endpos)
|
||||
self.ReplaceSelection('')
|
||||
text = data.GetText()
|
||||
text = text.strip()
|
||||
text = text.lstrip()
|
||||
text = self.fixLineEndings(text)
|
||||
text = self.lstripPrompt(text=text)
|
||||
text = text.replace(os.linesep + sys.ps1, '\n')
|
||||
text = text.replace(os.linesep + sys.ps2, '\n')
|
||||
text = self.lstripPrompt(text)
|
||||
text = text.replace(os.linesep + ps1, '\n')
|
||||
text = text.replace(os.linesep + ps2, '\n')
|
||||
text = text.replace(os.linesep, '\n')
|
||||
lines = text.split('\n')
|
||||
commands = []
|
||||
command = ''
|
||||
for line in lines:
|
||||
if line.strip() == ps2.strip():
|
||||
# If we are pasting from something like a
|
||||
# web page that drops the trailing space
|
||||
# from the ps2 prompt of a blank line.
|
||||
line = ''
|
||||
if line.strip() != '' and line.lstrip() == line:
|
||||
# New command.
|
||||
if command:
|
||||
@@ -1082,7 +1160,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
command += line
|
||||
commands.append(command)
|
||||
for command in commands:
|
||||
command = command.replace('\n', os.linesep + sys.ps2)
|
||||
command = command.replace('\n', os.linesep + ps2)
|
||||
self.write(command)
|
||||
self.processLine()
|
||||
wx.wxTheClipboard.Close()
|
||||
@@ -1097,7 +1175,7 @@ Platform: %s""" % (VERSION, self.revision, self.interp.revision,
|
||||
def zoom(self, points=0):
|
||||
"""Set the zoom level.
|
||||
|
||||
This number of points is added to the size of all fonts.
|
||||
It may be positive to magnify or negative to reduce."""
|
||||
This number of points is added to the size of all fonts. It
|
||||
may be positive to magnify or negative to reduce."""
|
||||
self.SetZoom(points)
|
||||
|
||||
|
@@ -8,19 +8,22 @@ from wxPython import wx
|
||||
import sys
|
||||
from version import VERSION
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
True, False = 1, 0
|
||||
|
||||
ID_AUTOCOMP = wx.NewId()
|
||||
ID_AUTOCOMP_SHOW = wx.NewId()
|
||||
ID_AUTOCOMP_INCLUDE_MAGIC = wx.NewId()
|
||||
ID_AUTOCOMP_INCLUDE_SINGLE = wx.NewId()
|
||||
ID_AUTOCOMP_INCLUDE_DOUBLE = wx.NewId()
|
||||
ID_CALLTIPS = wx.NewId()
|
||||
ID_CALLTIPS_SHOW = wx.NewId()
|
||||
ID_COPY_PLUS = wx.NewId()
|
||||
ID_PASTE_PLUS = wx.NewId()
|
||||
ID_WRAP = wx.NewId()
|
||||
ID_AUTOCOMP = wx.wxNewId()
|
||||
ID_AUTOCOMP_SHOW = wx.wxNewId()
|
||||
ID_AUTOCOMP_INCLUDE_MAGIC = wx.wxNewId()
|
||||
ID_AUTOCOMP_INCLUDE_SINGLE = wx.wxNewId()
|
||||
ID_AUTOCOMP_INCLUDE_DOUBLE = wx.wxNewId()
|
||||
ID_CALLTIPS = wx.wxNewId()
|
||||
ID_CALLTIPS_SHOW = wx.wxNewId()
|
||||
ID_COPY_PLUS = wx.wxNewId()
|
||||
ID_PASTE_PLUS = wx.wxNewId()
|
||||
ID_WRAP = wx.wxNewId()
|
||||
|
||||
|
||||
class ShellMenu:
|
||||
@@ -32,38 +35,47 @@ class ShellMenu:
|
||||
m.Append(wx.wxID_EXIT, 'E&xit', 'Exit PyCrust')
|
||||
|
||||
m = self.editMenu = wx.wxMenu()
|
||||
m.Append(wx.wxID_UNDO, '&Undo \tCtrl+Z', 'Undo the last action')
|
||||
m.Append(wx.wxID_REDO, '&Redo \tCtrl+Y', 'Redo the last undone action')
|
||||
m.Append(wx.wxID_UNDO, '&Undo \tCtrl+Z',
|
||||
'Undo the last action')
|
||||
m.Append(wx.wxID_REDO, '&Redo \tCtrl+Y',
|
||||
'Redo the last undone action')
|
||||
m.AppendSeparator()
|
||||
m.Append(wx.wxID_CUT, 'Cu&t \tCtrl+X', 'Cut the selection')
|
||||
m.Append(wx.wxID_COPY, '&Copy \tCtrl+C', 'Copy the selection - removing prompts')
|
||||
m.Append(ID_COPY_PLUS, 'Cop&y Plus \tCtrl+Shift+C', 'Copy the selection - retaining prompts')
|
||||
m.Append(wx.wxID_CUT, 'Cu&t \tCtrl+X',
|
||||
'Cut the selection')
|
||||
m.Append(wx.wxID_COPY, '&Copy \tCtrl+C',
|
||||
'Copy the selection - removing prompts')
|
||||
m.Append(ID_COPY_PLUS, 'Cop&y Plus \tCtrl+Shift+C',
|
||||
'Copy the selection - retaining prompts')
|
||||
m.Append(wx.wxID_PASTE, '&Paste \tCtrl+V', 'Paste')
|
||||
m.Append(ID_PASTE_PLUS, 'Past&e Plus \tCtrl+Shift+V', 'Paste and run commands')
|
||||
m.Append(ID_PASTE_PLUS, 'Past&e Plus \tCtrl+Shift+V',
|
||||
'Paste and run commands')
|
||||
m.AppendSeparator()
|
||||
m.Append(wx.wxID_CLEAR, 'Cle&ar', 'Delete the selection')
|
||||
m.Append(wx.wxID_SELECTALL, 'Select A&ll \tCtrl+A', 'Select all text')
|
||||
m.Append(wx.wxID_CLEAR, 'Cle&ar',
|
||||
'Delete the selection')
|
||||
m.Append(wx.wxID_SELECTALL, 'Select A&ll \tCtrl+A',
|
||||
'Select all text')
|
||||
|
||||
m = self.autocompMenu = wx.wxMenu()
|
||||
m.Append(ID_AUTOCOMP_SHOW, 'Show Auto Completion',
|
||||
m.Append(ID_AUTOCOMP_SHOW, 'Show Auto Completion',
|
||||
'Show auto completion during dot syntax', 1)
|
||||
m.Append(ID_AUTOCOMP_INCLUDE_MAGIC, 'Include Magic Attributes',
|
||||
'Include attributes visible to __getattr__ and __setattr__', 1)
|
||||
m.Append(ID_AUTOCOMP_INCLUDE_SINGLE, 'Include Single Underscores',
|
||||
m.Append(ID_AUTOCOMP_INCLUDE_MAGIC, 'Include Magic Attributes',
|
||||
'Include attributes visible to __getattr__ and __setattr__',
|
||||
1)
|
||||
m.Append(ID_AUTOCOMP_INCLUDE_SINGLE, 'Include Single Underscores',
|
||||
'Include attibutes prefixed by a single underscore', 1)
|
||||
m.Append(ID_AUTOCOMP_INCLUDE_DOUBLE, 'Include Double Underscores',
|
||||
m.Append(ID_AUTOCOMP_INCLUDE_DOUBLE, 'Include Double Underscores',
|
||||
'Include attibutes prefixed by a double underscore', 1)
|
||||
|
||||
m = self.calltipsMenu = wx.wxMenu()
|
||||
m.Append(ID_CALLTIPS_SHOW, 'Show Call Tips',
|
||||
m.Append(ID_CALLTIPS_SHOW, 'Show Call Tips',
|
||||
'Show call tips with argument specifications', 1)
|
||||
|
||||
m = self.optionsMenu = wx.wxMenu()
|
||||
m.AppendMenu(ID_AUTOCOMP, '&Auto Completion', self.autocompMenu,
|
||||
m.AppendMenu(ID_AUTOCOMP, '&Auto Completion', self.autocompMenu,
|
||||
'Auto Completion Options')
|
||||
m.AppendMenu(ID_CALLTIPS, '&Call Tips', self.calltipsMenu,
|
||||
m.AppendMenu(ID_CALLTIPS, '&Call Tips', self.calltipsMenu,
|
||||
'Call Tip Options')
|
||||
m.Append(ID_WRAP, '&Wrap Lines',
|
||||
m.Append(ID_WRAP, '&Wrap Lines',
|
||||
'Wrap lines at right edge', 1)
|
||||
|
||||
m = self.helpMenu = wx.wxMenu()
|
||||
@@ -88,15 +100,15 @@ class ShellMenu:
|
||||
wx.EVT_MENU(self, wx.wxID_CLEAR, self.OnClear)
|
||||
wx.EVT_MENU(self, wx.wxID_SELECTALL, self.OnSelectAll)
|
||||
wx.EVT_MENU(self, wx.wxID_ABOUT, self.OnAbout)
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_SHOW,
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_SHOW,
|
||||
self.OnAutoCompleteShow)
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_INCLUDE_MAGIC,
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_INCLUDE_MAGIC,
|
||||
self.OnAutoCompleteIncludeMagic)
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_INCLUDE_SINGLE,
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_INCLUDE_SINGLE,
|
||||
self.OnAutoCompleteIncludeSingle)
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_INCLUDE_DOUBLE,
|
||||
wx.EVT_MENU(self, ID_AUTOCOMP_INCLUDE_DOUBLE,
|
||||
self.OnAutoCompleteIncludeDouble)
|
||||
wx.EVT_MENU(self, ID_CALLTIPS_SHOW,
|
||||
wx.EVT_MENU(self, ID_CALLTIPS_SHOW,
|
||||
self.OnCallTipsShow)
|
||||
wx.EVT_MENU(self, ID_WRAP, self.OnWrap)
|
||||
|
||||
@@ -157,7 +169,8 @@ class ShellMenu:
|
||||
'Python Version: %s\n' % sys.version.split()[0] + \
|
||||
'wxPython Version: %s\n' % wx.__version__ + \
|
||||
'Platform: %s\n' % sys.platform
|
||||
dialog = wx.wxMessageDialog(self, text, title, wx.wxOK | wx.wxICON_INFORMATION)
|
||||
dialog = wx.wxMessageDialog(self, text, title,
|
||||
wx.wxOK | wx.wxICON_INFORMATION)
|
||||
dialog.ShowModal()
|
||||
dialog.Destroy()
|
||||
|
||||
|
@@ -1,10 +1,11 @@
|
||||
"""Provides an object representing the current "version" or "release" of
|
||||
PyCrust as a whole. Individual classes, such as the shell, filling and
|
||||
interpreter, each have a revision property based on the CVS Revision."""
|
||||
"""Provides an object representing the current 'version' or 'release'
|
||||
of PyCrust as a whole. Individual classes, such as the shell, filling
|
||||
and interpreter, each have a revision property based on the CVS
|
||||
Revision."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
VERSION = '0.8.1'
|
||||
VERSION = '0.9a'
|
||||
|
||||
|
56
wxPython/wxPython/lib/PyCrust/wrap.py
Normal file
56
wxPython/wxPython/lib/PyCrust/wrap.py
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
"""Wrap is a command line utility that runs a wxPython program with
|
||||
additional runtime-tools, such as PyCrust."""
|
||||
|
||||
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
||||
__cvsid__ = "$Id$"
|
||||
__revision__ = "$Revision$"[11:-2]
|
||||
|
||||
import os
|
||||
import sys
|
||||
from wxPython import wx
|
||||
from crust import CrustFrame as Frame
|
||||
|
||||
try:
|
||||
True
|
||||
except NameError:
|
||||
True = 1==1
|
||||
False = 1==0
|
||||
|
||||
|
||||
def wrap(app):
|
||||
wx.wxInitAllImageHandlers()
|
||||
frame = Frame()
|
||||
frame.SetSize((750, 525))
|
||||
frame.Show(True)
|
||||
frame.shell.interp.locals['app'] = app
|
||||
app.MainLoop()
|
||||
|
||||
|
||||
def main(argv):
|
||||
if len(argv) < 2:
|
||||
print "Please specify a module name."
|
||||
raise SystemExit
|
||||
name = argv[1]
|
||||
if name[-3:] == '.py':
|
||||
name = name[:-3]
|
||||
module = __import__(name)
|
||||
# Find the App class.
|
||||
App = None
|
||||
d = module.__dict__
|
||||
for item in d.keys():
|
||||
try:
|
||||
if issubclass(d[item], wx.wxApp):
|
||||
App = d[item]
|
||||
except (NameError, TypeError):
|
||||
pass
|
||||
if App is None:
|
||||
print "No App class found."
|
||||
raise SystemExit
|
||||
app = App()
|
||||
wrap(app)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.insert(0, os.curdir)
|
||||
main(sys.argv)
|
Reference in New Issue
Block a user