unawarez
a7b3401ed5
support Wayland GTK backend in Window.GetHandle
...
This adds support for getting a Wayland `wl_surface` from
`Window.GetHandle`. The behavior of the function is now to return either
an X11 window ID or Wayland `wl_surface` if running a GTK build on those
backends, return 0 on any other GTK backend, or else return the C++
`GetHandle` result unmodified. This is the simplest fix for the Wayland
issue without worrying about breaking existing user code, as this
function already failed for any non-X11 GTK build. Returning 0 on
non-X11/Wayland GTK platforms sidesteps the issue of making sure e.g.
GTK Mac GetHandle returns the same type as native Cocoa Mac GetHandle.
2024-06-20 13:29:28 -05:00
Jorge Moraleda
a1c9554bbf
Update wxWidgets to v3.2.5. Add support for new, MSW-only Accessibility related methods.
2024-05-17 21:32:22 -04:00
Robin Dunn
92f8cd2d55
Fix lots of misspelled words
2020-07-14 11:38:32 -07:00
Robin Dunn
9f2cc54b48
Update copyright years
2020-03-10 11:41:39 -07:00
Robin Dunn
e3b7cadbdc
Fully split GetTextExtent and GetFullTextExtent
2019-12-11 14:02:04 -08:00
Robin Dunn
0378328d45
Merge pull request #1201 from RobinD42/fix-issue1198
...
Fix access to members of transient wx.VisualAttributes
(cherry picked from commit d6324a0578 )
2019-04-13 16:25:55 -07:00
Robin Dunn
2f540a91e6
Merge pull request #1034 from RobinD42/fix-issue958-291-wxAccessible
...
Add wxAccessible and a tool to generate C++ stubs
(cherry picked from commit 3a9f37f2aa )
2018-10-10 19:40:59 -07:00
Metallicow
c76384d458
Trim trailing whitespace *.py files
2018-01-16 08:47:07 -06:00
Robin Dunn
09f48f5d21
fix typo
2017-08-29 13:35:07 -07:00
Robin Dunn
6980ef2aac
Transfer ownership of wx.EvtHandler when needed.
2017-07-28 19:56:27 -07:00
Robin Dunn
fe75c9acb2
In DLG_UNIT if the input parameter was not a Point or Size then convert the return value to a tuple
2017-07-21 22:17:40 -07:00
Robin Dunn
637db6c4bf
Change uses of FindWindowById to just FindWindow.
...
Also, clarify default value for parent arg in FindWindow* staticmethods.
2017-04-10 11:05:36 -07:00
Robin Dunn
4ef2ce2bd5
Revert auto-propagating the mustHaveAppFlag from classes to their static methods, if any, and explicitly set the flag on only those static methods that need it instead.
2017-03-21 15:55:10 -07:00
Robin Dunn
4e38994944
Update copyright in etg
2017-02-13 16:14:55 -08:00
Robin Dunn
5f04f3b082
Add more mustHaveApp flags
2017-01-23 20:41:07 -08:00
Metallicow
ebc8d0d971
trim trailing space etg directory
2016-11-10 12:08:36 -06:00
Robin Dunn
5b0fa09164
Add a deprecated alias for SetSizeHints for backwards compatibility
2016-09-23 16:02:25 -07:00
Robin Dunn
97108a8813
Add (deprecated) GetSizeTuple to wx.Window
2016-08-26 11:29:01 -07:00
Robin Dunn
8a0571207b
Add DLG_UNIT helper, with deprecated wrappers for DLG_SZE and DLG_PNT.
...
Update the demo.
2016-08-02 11:02:54 -07:00
Scott Talbert
e8a416fab7
Add int* overloads for ClientToScreen/ScreenToClient overloads and add tests
...
These are non-ambiguous and there is existing code using them.
2016-04-16 21:06:08 -04:00
Robin Dunn
2078c55af7
Use a MappedType for wxIntPtr and wxUIntPtr too.
2016-03-09 20:29:12 -08:00
Scott Talbert
a57bec2e71
Add support for building with GTK3
2016-02-29 20:22:58 -05:00
Robin Dunn
1a75ede097
Add DoEraseBackground from Classic, but leave it commented out for now
2015-02-04 14:18:00 -08:00
Robin Dunn
468a7fe603
Fix docs for GetClientSize by copying the doc elements from the
...
ignored overload. Fixes #16280 (trac)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-28 22:21:51 +00:00
Robin Dunn
68368c6ad2
Fix some compilation errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 20:20:17 +00:00
Robin Dunn
3a5ce237de
Fix wx.FindWindowAtPointer wrapper to return the point parameter in addition to the window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-07 05:22:27 +00:00
Robin Dunn
d108a412d0
Add DestroyLater
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-22 06:20:26 +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
5ab8e42542
Ensure that functions that return our wxList wrappers are not creating a copy of the list, but rather using the one given to them. This is really only needed for those that are const methods, but I did it for all in case the C++ signature is changed to const.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-29 02:33:43 +00:00
Robin Dunn
24307717fc
Add missing FindWindowBy* functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-29 02:33:30 +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
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
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
2bd3ad68b6
Move the ConvertToSubClas code to a tool function so it can be reused elsewhere.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-10 22:39:18 +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
Kevin Ollivier
3604252554
Add a couple more deprecated methods from Classic.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-01 02:43:45 +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
9497ff98b9
SIP handles raising an eception for dead objects for us. Add a __nonzero__ and some tests to go along with it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 23:34:10 +00:00
Robin Dunn
ef5d0980e2
The deprecation of SetSizeWH is already handled, no need to do it again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 01:07:06 +00:00
Robin Dunn
6c16e963f2
a little cleanup and window handle methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 04:39:32 +00:00
Robin Dunn
5ffc5d8681
Ensure that custom C++ implementations that create a new instance for the return value are marked as Factories.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-21 07:59:10 +00:00
Robin Dunn
e2f4f745f0
little tweaks and fixes for linux
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-11 00:41:10 +00:00
Robin Dunn
8feaa2414c
Instead of renaming the SetRect and SetClientRect methods, just add some python wrappers.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:01:51 +00:00
Robin Dunn
e44dd28fd4
* Replacing method code with .setCppCode is now not SIP-specific. The generated code creates a new function to place the code in, like CppMethodDef does, so the given code can use 'self' and return values instead of using special SIP variables.
...
* added setCppCode_sip for when SIP-specific stuff is needed.
* Adding the 'const' on to const methods had somehow been forgotten, fix that.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 04:06:16 +00:00
Robin Dunn
91a404fd22
FIx the %Extract used in the wxListWrapper and wxArrayWrapper templates to include the module name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:40:55 +00:00
Robin Dunn
40c6a0d468
* Add generation of docstrings
...
* addPyMethod can now take a deprecated=True arg
* Deprecate some python methods
* Deprecate PyEvtHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-17 19:46:26 +00:00
Kevin Ollivier
fdb9319c3e
Adding several new classes, some transfer annotations, and a start on a dataview model (compiles but is still a work in progress).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-16 05:15:38 +00:00
Robin Dunn
d949d1dad1
* Update version number
...
* Since they are almost always needed for window classes, move the calls to
removeVirtuals and addWindowVirtuals into the fixWindowClass and
fixTopLevelWindowClass functions.
* Add wxWithImages to the interface headers and create wrappers for it and use
it as a base of wxBoockCtrlBase.
* Add a new wx.deprecated() function that can handle properties and classes in
addition to callables. It issues a custom warning, wxPyDeprecationWarning
since the stock DeprecationWarning is filtered out by default in Python 2.7.
* Deprecate PyWindow and similar aliases
* Deprecate wx.Window.SetDimensions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-11 00:33:10 +00:00
Robin Dunn
04f10c5868
Update Phoenix copyright statements to 2011
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 01:52:23 +00:00