Robin Dunn
6f734595e1
Add some more TODO's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-20 01:47:20 +00:00
Robin Dunn
18718acb0d
Fix to allow dialog-only applications to exit normally
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-14 21:40:27 +00:00
Robin Dunn
83704465e0
Add missing EVT_TEXT_ENTER
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-14 21:37:22 +00:00
Robin Dunn
fd198720e9
move sys import
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-12 23:59:44 +00:00
Robin Dunn
b82340b969
Move the cleanup code to where there is a _core available in the namespace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-12 09:19:22 +00:00
Kevin Ollivier
fdee10e8d2
Do cleanup on Python shutdown.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 17:35:06 +00:00
Robin Dunn
aebd862d14
Provide hints for deprecated items about what should be used instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:17 +00:00
Robin Dunn
9c7a4c3f99
Fix gtk-related compiler errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-30 22:32:21 +00:00
Robin Dunn
1270aa0e5f
report the name of the deprecated class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-23 00:44:23 +00:00
Robin Dunn
bbbe85b554
Refactor the various PyObject user-data classes to share a common templated base class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-30 23:33:53 +00:00
Robin Dunn
71da9bea83
Don't do a #ifdef inside a macro expansion, MSVC doesn't like it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-30 06:37:38 +00:00
Robin Dunn
787cfb858e
Add and use the wxPyThreadBlocker class.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-30 03:24:34 +00:00
Robin Dunn
b41df0b779
Many, many (many!) changes needed to build and run the Phoenix extension modules with Python 3. Where possible changes were made such that the code works with both Python 2.7 and 3.2 without conditionals. In general the following types of changes were made:
...
* Changed imports to use either absolute or explicit relative imports. Implicit relative imports are no longer allowed.
* Changes to accomodate standard library classes or modues moving to other locations, or being removed entirely.
* Changes related to print becoming a function, execfile being removed, u'' no longer allowed, and other syntax related issues.
* Working around C APIs that have changed or simply vanished. (PyInt, PyString, PyBytes, etc.)
* Dealing with text file objects using strings vs binary file objects using bytes, auto-encoding, and etc.
* Replacing the use of PyCObject with PyCapsule and dealing with an apparent bug where PyCapsule objects can't be imported from submodules within a package.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-24 23:28:02 +00:00
Robin Dunn
48d5c078f0
Add wx.adv.Joystick
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-22 00:17:14 +00:00
Robin Dunn
3d3aaae524
Tweak some comments
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-17 02:49:13 +00:00
Robin Dunn
470cc7cea8
Import __version__ differently so WingIDE's source analysis works again.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-10 22:39:29 +00:00
Robin Dunn
cb5e679b6d
Add a convenience function to the API for creating a writable buffer object from a pointer and size.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-10 22:39:08 +00:00
Robin Dunn
18098181e3
Add buffer related methods and helpers for wxBitmap
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 04:05:08 +00:00
Robin Dunn
df774efcd0
It's okay for the buffer size to be larger than the expected size, only raise an error if the buffer is smaller
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 04:04:58 +00:00
Robin Dunn
c2e5a59a8f
* Add a new wxPyBuffer class and MappedType to help facilitate checking input and getting the pointer and size of Python Buffer compatible objects.
...
* Use wxPyBuffer with wx.Image
* Return bytearrays from GetData and GetAlpha
* Return memoryviews from GetDataBuffer and GetAlphaBuffer
* Add some notes about these changes to the migration guide
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 04:04:53 +00:00
Robin Dunn
259869c431
Add include guards
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-28 04:04:42 +00:00
Robin Dunn
8fecc2b5f9
* Rename the wrappers for the C++ wxPlatformInfo to wx.PlatformInformation.
...
* Restore the wx.PlatformInfo tuple like it exists in Classic.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-24 00:15:33 +00:00
Robin Dunn
0cdfa23a88
Add picker classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-12 05:36:48 +00:00
Robin Dunn
9ddc80004b
Add context help classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-07 04:17:13 +00:00
Robin Dunn
78a4c2a580
Reword a comment a bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-07 04:17:05 +00:00
Robin Dunn
103842d100
Tweaks and cleanups
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-31 04:41:55 +00:00
Robin Dunn
547ad2938e
* Switch wxTreeItemData to be a %MappedType instead of something that the programmer has to deal with.
...
* Make [G|S]etItemData be the same as the [G|S]etItemPyData methods in Classic, and make the latter be deprecated aliases.
* Adjust unittests and add one for GetSelections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-29 16:59:30 +00:00
Robin Dunn
95c5c5f50e
Add treectrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-29 16:59:21 +00:00
Robin Dunn
3bee9be6f8
Fix typo and do a little cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-26 19:21:52 +00:00
Robin Dunn
b627541615
Ensure that the API pointer has been initialized after the CObject has been created
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-23 03:19:45 +00:00
Robin Dunn
ba27e28401
A little reorganization and cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-22 20:30:28 +00:00
Robin Dunn
c99efff700
ignore the const string warning for all gcc, not just on Mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-22 04:15:07 +00:00
Robin Dunn
74c3bb39d1
Set up and export the API structure of function pointers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-22 04:15:02 +00:00
Robin Dunn
3ce4dd7927
Rename wxpy_utils to wxpy_api
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-22 04:14:55 +00:00
Robin Dunn
a2ee1312c9
Move the Apple SIZEOF hacks to the wxpy_utils header file.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-17 02:56:17 +00:00
Robin Dunn
18956e8e2e
refactor some of the utils and array code to fix a compile errors from pervious changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-15 05:06:20 +00:00
Robin Dunn
f525cad436
Acquire the GIL for INCREF's where needed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-14 20:56:04 +00:00
Robin Dunn
2bee644ef6
Change the test function to have a leading underscore so it isn't quite as visible.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 21:53:27 +00:00
Robin Dunn
be09c0e1f8
Add longlong and datetime
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-02 21:53:10 +00:00
Kevin Ollivier
88031d7ae6
Add pre-initialization code, which on Windows will initialize the activation context, giving us proper themed drawing.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 02:44:44 +00:00
Robin Dunn
7075e44664
explicitly import __version__ into the wx namespace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-09 05:54:11 +00:00
Robin Dunn
497e10bd43
Add wrappers for the NameStr globals and a few other tweaks to get the code in core.pi to be valid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-04 05:57:19 +00:00
Robin Dunn
bc9927c7d9
It looks like this file was accidentally undeleted as part of the Sphinx commit.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-02 22:07:57 +00:00
Andrea Gavana
ca4746f13c
- Initial commit of the Python scripts to ReSTify the XML documentation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-30 19:17:09 +00:00
Robin Dunn
289f118d09
Move more Python code to extractor objects.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-22 18:46:45 +00:00
Robin Dunn
2460ebef3c
Move event related PyMethods and PyClasses out of the external code block and into extractor objects so the generators know their details.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-22 17:43:47 +00:00
Robin Dunn
9912e33123
* Add PyFunctionDef and PyClassDef extractor classes, which can be used for defining pure python functions and classes instead of just including them as blocks of text. This way the meta-data is preserved so it can be used by generators such as the sphinx generator.
...
* Implement wx.CallAfter and wx.CallLater this way for the initial test cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-15 02:36:01 +00:00
Robin Dunn
3ab334932e
renamed wx.PyAssertionError
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 01:00:44 +00:00
Robin Dunn
82c372cdce
Remove the old (commented out) dead object code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 23:35:54 +00:00
Robin Dunn
211bec4441
Some cleanup and fixes for const-ness related things
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 01:05:50 +00:00