Commit Graph

15 Commits

Author SHA1 Message Date
Jeremy Drake
31e6c8ed34 WXMSW: use HandleToLong/LongToHandle functions.
On Clang++, casting from a pointer to an integer of a smaller size is
considered an error.  In cases where Windows HANDLEs are converted
to/from longs, use the Windows-provided conversion functions
HandleToLong and LongToHandle.

In a couple of cases, a pointer is being cast to long in a __hash__
function.  These don't seem Windows-specific so it is not safe to assume
the Windows conversion functions are present.  In those cases, fall back
to the (ugly) double-casting that the Windows functions contain.
2021-06-14 11:43:29 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
229870f9c9 Add a __bool__ for every __nonzero__ that doesn't already have one 2018-10-12 23:58:16 -07: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
2113333bbe Move all the EVT_ instantiations to the module object,
so they are found at the right scope in the *.pyi files.
2017-11-17 22:38:57 -08:00
Robin Dunn
4012e27c14 Fix __eq__ and __ne__ for comparing TreeListItem with None 2017-11-17 14:45:01 -08:00
Robin Dunn
05626ef850 Give dataview.TreeListItem hash and equality operators.
Remove non equality operators from DataViewItem, as there is no implicit ordering of the items that makes sense
2017-04-14 21:28:54 -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
0246266507 Just move treelist to the dataview module. That makes a little more sense.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-08 02:00:11 +00:00
Robin Dunn
16adf8aa20 Have wx._adv import wx._dataview so the TreeListCtrl wrappers know about the DataViewCtrl type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-08 02:00:00 +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
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
f41acfcf92 NO_IMAGE --> -1 in default arg values since the class is still being defined at the time the arg is seen.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:31:55 +00:00
Robin Dunn
41aef0d14e Add wx.adv.TreeListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-07 04:34:53 +00:00