Robin Dunn
537133ebf7
Add stub OSXIsGUIApplication for non-mac platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-29 08:25:32 +00:00
Robin Dunn
1240a709b8
minor refactor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-06 04:40:49 +00:00
Robin Dunn
0b84f453ce
- Fix Py Events to clone properly from derived classes by implementing some Python magic in an overridden Clone() method.
...
- Update unittests accordingly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-04 04:46:16 +00:00
Robin Dunn
44d2706d76
TextCrtl events are now in textctrl.py
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-30 20:09:14 +00:00
Robin Dunn
5a958ff03b
Small tweak and tests to allow using objects supporting only the old buffer interface to be used as buffer sources.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-27 02:49:08 +00:00
Robin Dunn
98ffccc725
Switch to new shortened wxEventType names.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-26 07:04:50 +00:00
Robin Dunn
bdd04888a6
Move the rest of the EVT_TEXT binders to the textctrl module.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-20 21:17:08 +00:00
Robin Dunn
636315e20e
Fix deprecated decorator.
...
Don't pass empty **kw to callables, it can confuse the arg parser in some cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 00:06:18 +00:00
Robin Dunn
312ea3deb0
The newevent module still needs to use PyEvent and PyCommandEvent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-02 03:57:18 +00:00
Robin Dunn
3bc802fa93
Switch to using atexit for calling the cleanup function when Python terminates.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-31 02:51:07 +00:00
Robin Dunn
35fd2e16bf
Update copyright year
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Robin Dunn
e93e1676d5
Remove the self-reference to the wx package from the wx package namespace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-18 23:01:54 +00:00
Robin Dunn
84c453ef2c
Add missing increment of the pixel iterator for the wx.BitmapBufferFormat_RGBA format
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:28:56 +00:00
Robin Dunn
8c9583fdca
little comment fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:21:49 +00:00
Robin Dunn
db9351e83a
Use PyObject_RichCompareBool instead of PyObject_Cmp, for Python3 compatibility and because it's a better API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:43:48 +00:00
Robin Dunn
aacc033a6d
Add the rest of the dataview classes, lots of unittests and supporting helpers and MappedTypes.
...
Update existing dataview and variant classes and MappedTypes to add missing features and such needed for Classic compatibility and full coverage of the API.
Add some samples ported from the Classic demo so the DVC and related classes can be seen in action.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:22:20 +00:00
Robin Dunn
8c0fb1c8f6
Move the wxVariant helpers to the API so they can be reused elsewhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:20:26 +00:00
Robin Dunn
26f513301e
Expand the number of value types supported by the wxVariant mapped type, including plain PyObjects
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:19:35 +00:00
Robin Dunn
68ce1c5a02
Add wxPyWrappedPtr_TypeCheck API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:19:10 +00:00
Robin Dunn
e38c8527e0
Move wx.PyEvent and wx.PyCommandEvent to etg objects so the doc builder will see them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-03 01:22:55 +00:00
Robin Dunn
06b02a6277
Add wx.stc.StyledTextCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:14 +00:00
Robin Dunn
0ba81ceb62
typo fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-23 17:19:56 +00:00
Kevin Ollivier
d3f7f0065f
Add support for namespaced object names
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-23 01:38:28 +00:00
Robin Dunn
42df9e17fa
Port the add-on wx.DC.DrawXXXList methods from Classic
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-21 04:36:31 +00:00
Robin Dunn
68f17a6f16
Ensure we have the GIL before calling PyCapsule_Import
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:53 +00:00
Robin Dunn
6098d5d07e
Add an #error if wx was built with wxString using utf-8 internally so I won't forget to come back and fix it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-02 05:39:18 +00:00
Robin Dunn
94f80b0ed6
Add a MappedType for wxFileName to convert to/from strings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-02 05:39:12 +00:00
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