Scott Talbert
d8c8e9e4c7
Implement wrapping for wx.ThreadEvent
...
Fixes #2338 .
2023-02-04 20:41:53 -05:00
Scott Talbert
46f1c1759f
Update wxWidgets to 3.1.7
2022-06-08 14:44:47 -07:00
Scott Talbert
aa1ef7bd75
Update ETG scripts to support wxWidgets 3.1.6 functionality
...
Fixes #2136 .
2022-05-02 22:33:58 -04:00
Robin Dunn
9627bb8035
Merge branch 'master' into update-wx
2021-12-13 21:40:18 -08:00
Scott Talbert
b143cff821
Fix unbinding of events in FIFO order
...
When binding events to multiple methods and then unbinding them later,
in the same order they were bound, the wrong method would get unbound.
For example:
self.btn.Bind(wx.EVT_BUTTON, self.onButton1)
self.btn.Bind(wx.EVT_BUTTON, self.onButton1)
followed by:
self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton2)
self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton1)
works, but the reverse fails:
self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton1)
self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton2)
The reason is that the wxPython Disconnect() method called the wxWidgets
Disconnect() method with the userData parameter set to NULL. In this
case, wxWidgets performs no filtering based on the userData parameter
and this could result in the wrong handler getting disconnected.
Fix this by setting the userData to a known value before calling
wxWidgets Disconnect() method so that it will disconnect the correct
handler.
This commit also adds a test that verifies the fix.
Fixes #2027 .
2021-11-17 19:28:54 -05:00
Robin Dunn
af2c2b63c6
Add wx.FullScreenEvent
2021-07-24 16:01:37 -07:00
Robin Dunn
9e42750b59
Fix typo
2020-03-13 16:10:10 -07:00
Robin Dunn
9f2cc54b48
Update copyright years
2020-03-10 11:41:39 -07:00
Robin Dunn
3761507882
wxObjectDataPtr, wxGridCell*Ptr, and other changes needed for updated wxWidgets
2020-03-05 09:48:09 -08:00
Robin Dunn
daf5aa9ce3
No longer any need to explicitly ignore some macros
2020-01-22 15:49:03 -08:00
Robin Dunn
fbc014b189
Ignore GetEventUserData, because it is used internally by wxPython
2020-01-22 11:27:29 -08:00
jensgoe
4e49216913
added setters for public wx.KeyEvent attributes
...
(cherry picked from commit 526ad4f931 )
2019-12-18 18:14:34 -08:00
Robin Dunn
3bce916e34
Update wxWidgets, add wxDPIChangedEvent, adapt to some propgrid api changes
2019-09-04 14:18:12 -07:00
Robin Dunn
38ebb70786
Merge pull request #1143 from RobinD42/fix-issue1140
...
Added missing setters for the wheel-related properties in wx.MouseEvent
(cherry picked from commit c3cbf2e68a )
2019-01-15 16:03:04 -08:00
Robin Dunn
b77c88a280
Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
...
(cherry picked from commit 4c56c39e52 )
2018-06-17 22:04:22 -07:00
Robin Dunn
38624123f5
Since they're now raising DeprecationWarnings in 4.0.2 we can drop some method compatibility wrappers here.
2018-02-20 08:50:30 -08:00
Robin Dunn
87d7edab83
Lots of changes needed to get things building again after switching to wxWidgets master
2018-02-09 15:15:01 -08:00
Robin Dunn
f1a24d4978
Add classes that have been added to existing interface headers
2018-02-09 15:03:58 -08:00
Robin Dunn
50a6410c87
Add deprecation wrappers for methods that have vanished from wxWidgets due to the 2.8 compatibility flag being turned off.
2018-02-09 14:30:49 -08:00
Metallicow
c76384d458
Trim trailing whitespace *.py files
2018-01-16 08:47:07 -06:00
Robin Dunn
0ffd220385
Fix our wxEvtHandler::Disconnect replacement
...
* Fix C++ compare of the handler functor
* Use PyObject_RichCompare to check for matching python handlers
2017-11-21 18:34:59 -08:00
Robin Dunn
99c7e500b1
Fix the [G|S]etClientData methods in wx.CommandEvent
...
to be tweaked the same way they are in wx.ClientDataContainer, and add a ClientData property for each class. Update the unittests accordingly.
2017-04-24 10:19:35 -07:00
Robin Dunn
4e38994944
Update copyright in etg
2017-02-13 16:14:55 -08:00
Metallicow
ebc8d0d971
trim trailing space etg directory
2016-11-10 12:08:36 -06:00
Robin Dunn
695412a701
KeyEvent.GetUnicodeKey should return an integer, not a str/unicode object.
2015-04-15 09:53:40 -07:00
Robin Dunn
a8c5b53ed5
typos
2015-03-07 14:29:39 -08:00
Robin Dunn
4d5810d5c1
Add wxEvtHandler::TryBefore and TryAfter
2015-03-05 15:16:54 -08:00
Robin Dunn
7d377443b6
Ignore both CallAfters
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-21 16:35:55 +00:00
Robin Dunn
53d5fec413
fix assert in Bind to allow None for the handler.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-10 01:05:51 +00:00
Robin Dunn
8d32e67489
Interface change: long --> wxCoord in GetPosition.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:16 +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
Andrea Gavana
66840744d2
Phoenix: few corrections to the overviews; Added some more contributed snippets; Fixed some more converted snippets; Added the correct interlink references in the etg files; better handling of the Doxygen stuff.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-05 20:44:52 +00:00
Andrea Gavana
6157b2bc35
Phoenix: sizers_overview.rst expanded; added a bunch of "contributed" snippets on various classes/methods; many fixes on strange doxygen layouts and XML hierarchies; fixed many cross-references between classes/methods/functions in the etg files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-04 20:58:27 +00:00
Robin Dunn
6b1738de26
Use the new raise syntax
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-09 04:40:07 +00:00
Robin Dunn
fa4a4d71fa
Undo the event_base hack from yesterday
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-30 18:24:07 +00:00
Robin Dunn
466ae77f29
Ensure we get the declarations from both event_base.h and event.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-29 22:52:32 +00:00
Robin Dunn
429507f2ad
Add a few more compatibility wrappers, and deprecate them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:37 +00:00
Robin Dunn
a19d50f27e
Ignore the C++ version of CallAfter. We have our own.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-23 17:20:21 +00:00
Robin Dunn
9d79e123fa
Tweak the deprecation warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 05:02:43 +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
5c50397ce6
Clarify the Bind docstring a little bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-07 04:34:24 +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
5490349f39
Regardless of the command-line flag there are a few methods that should always release the GIL, those that are expected to block or to take a long time. Add the annotations now in case I ever decide to change the default again.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-23 03:20:08 +00:00
Robin Dunn
d5a4e871ce
Fix typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-16 01:25:27 +00:00
Robin Dunn
2cbfe087a8
* Add Scrollbar.
...
* Reorder modules a bit in _core to try to keep declarations before the place where they are used.
* Reorder classes within some etg scripts for same reason.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-31 02:37:22 +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
5452fdab46
Minor tweaks and fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-19 20:58:03 +00:00
Robin Dunn
1f4d1451f2
Use a template for the C array holder class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-21 08:01:35 +00:00
Robin Dunn
a87c196def
Instead of passing sipIsErr into custom functions made for CppMethodDefs and etc. just check PyErr_Occurred after the function returns and then set sipIsErr there.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 04:58:46 +00:00