Commit Graph

628 Commits

Author SHA1 Message Date
Robin Dunn
1da103f7f4 Add missing wx.adv.EVT_CALENDAR_WEEK_CLICKED 2018-06-04 21:06:50 -07:00
Robin Dunn
63841e478d Add a wx.GraphicsContext.Create overload for wx.AutoBufferedPaintDC,
and let the C++ compiler sort out whether it is really a wxPaintDC or a wxBufferedPaintDC.
2018-05-31 16:21:12 -07:00
Robin Dunn
a1433c1834 Conditionalize the use of the old buffer protocol APIs 2018-05-07 11:05:47 -07:00
Robin Dunn
16c63c4723 Merge branch 'wxPy-4.0.x' into add_numdlg 2018-05-01 19:58:34 -07:00
Robin Dunn
5fb62f4c8b Change wx.TextCompleterSimple.GetCompletions to send the list of strings as a return value, rather than a parameter that gets filled. 2018-05-01 19:27:55 -07:00
Scott Talbert
49af2f9fbf Add missing wx.NumberEntryDialog 2018-05-01 20:02:17 -04:00
Robin Dunn
d54f43a7f6 Copy MethodDefs for Start and GetNext from base class 2018-04-30 21:11:05 -07:00
Scott Talbert
b0d5e2d875 Fix subclassing of wx.TextCompleter and wx.TextCompleterSimple
Closes https://github.com/wxWidgets/Phoenix/issues/827
2018-04-27 20:40:47 -04:00
Robin Dunn
a8d8c7ed90 Merge pull request #791 from ExplodingCabbage/fix-intctrl-none-handling
Fix setting IntCtrl to None wrongly raising
2018-03-21 19:40:55 -07:00
Mesalu
43c223d3d2 Add iterability to sizer classes and corresponding unittest 2018-02-08 21:19:45 -08:00
Robin Dunn
8c4dffb091 Add virtual dtor for DC classes 2018-01-29 14:11:00 -08:00
Robin Dunn
d330ad1b40 Add context manager methods to wx.DC 2018-01-29 12:23:57 -08:00
Metallicow
99834ab3ec ⁉️ Trim trailing whitespace misc files
All these files seem like legit trailing whitespace that can be removed.
2018-01-16 09:37:04 -06:00
Metallicow
c76384d458 Trim trailing whitespace *.py files 2018-01-16 08:47:07 -06:00
Robin Dunn
40e8eb07de Add converting to datetime to PyGetDate methods 2018-01-11 11:00:33 -08:00
Robin Dunn
deb21aa2ed Merge branch 'master' into port-gizmos 2017-12-06 13:15:14 -08: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
03d1e1559c Add MappedType for wxMessageDialog::ButtonLabel,
so MessageDialog methods can take either string or stock IDs.
2017-11-18 19:26:42 -08:00
Robin Dunn
36f1e55a3a Merge branch 'master' into port-gizmos 2017-11-07 17:57:05 -08:00
Robin Dunn
326d707717 Fix comparing DataViewItem with None 2017-11-07 15:42:25 -08:00
Robin Dunn
52711eee4f Merge branch 'master' into port-gizmos 2017-11-03 16:52:37 -07:00
Robin Dunn
666761337b Update SIP to 4.19.4 2017-11-02 21:39:05 -07:00
Robin Dunn
e6c16cf455 Support 2-phase create, add unittests 2017-10-30 12:42:38 -07:00
Robin Dunn
b2c06479cb Add test checking that wx.GetLocale exists 2017-10-18 09:33:07 -07:00
Robin Dunn
66b4a7966d Enable wxArray wrappers to return copy from __getitem__.
This solves problems where an array that is the return value of some method call is indexed immediately and a reference to the array is not held, which could result in garbage values for the indexed item. Currently this is turned on for just GridCellCoordsArray, but others can be switched in the future if needed.
2017-10-12 14:33:15 -07:00
Robin Dunn
4ce9c2b46f Various other propgrid related tweaks 2017-09-14 19:57:26 -07:00
Robin Dunn
90be887af6 Reorder the SetPropertyValue overloads and constrain the bool and double overloads.
This avoids choosing the int overload for anything that can be implicitly converted to an integer.
2017-09-14 19:56:09 -07:00
Robin Dunn
b55cfa073a Add wx.Simplbook 2017-09-05 21:32:29 -07:00
Scott Talbert
af936b17ad Fix test_grid42 failure
Fixes:
____________________________ grid_Tests.test_grid42 ____________________________
self = <unittests.test_grid.grid_Tests testMethod=test_grid42>

    def test_grid42(self):
        # old names
>       wx.grid.Grid.GridSelectCells
E       AttributeError: type object 'Grid' has no attribute 'GridSelectCells'

unittests/test_grid.py:319: AttributeError
2017-08-31 22:06:18 -04:00
Robin Dunn
4ef6bc8603 Merge pull request #489 from RobinD42/fix-issue480
Turn "public" back on after emitting some private methods
2017-08-30 00:23:43 -05:00
Robin Dunn
1be80aca7c Add missing DeleteAllColumns 2017-08-29 18:29:27 -07:00
Robin Dunn
b037c4e7cb Turn "public" back on after emitting some private methods 2017-08-29 16:23:49 -07:00
Robin Dunn
98ad3b69af Ignore the GetVirtualSize in wxScrolled, and inherit it from wx.Window instead. 2017-08-23 08:54:24 -05:00
Robin Dunn
69072e270b Monkey-patch SetItemData to check that the data value is not too bit or too small 2017-08-15 21:18:47 -07:00
Robin Dunn
526d216e6c Fixed copy/paste error in wx.BusyInfo.__exit__ 2017-07-31 10:31:52 -07:00
Robin Dunn
172bd50d41 Merge pull request #438 from RobinD42/fix-issue426
Give DLG_UNIT some "elegance" ;-)
2017-07-22 00:25:12 -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
0d1b7dcdf3 Add missing HtmlCell.FindCellByPos 2017-07-21 21:53:26 -07:00
Mesalu
b1b91dface Update test_window.py
Add checks to ensure correct type is returned per input.
2017-07-13 11:18:49 -07:00
Robin Dunn
bb403e185f update unittest 2017-06-30 10:20:19 -07:00
Robin Dunn
e9e58ed35f Merge pull request #411 from mesalu/WIP_add_imghandlers
Add ImageHandler derivations to Phoenix
2017-06-28 19:21:35 -07:00
Samuel Dunn
f1bc13a841 Ensure wx.Config related enums are present for SIP
Also adds unittests to ensure they remain present in Phoenix.
2017-06-26 17:28:50 -07:00
Samuel Dunn
1347d5c6be Use intended bitmap type in test 2017-06-24 10:53:23 -07:00
Samuel Dunn
18584dc645 Add tests for standard wxImageHandler derivations 2017-06-24 10:47:53 -07:00
Robin Dunn
ae60e1b064 Restore the renames done in Classic for the wxGridSelectionModes enum 2017-06-12 13:27:30 -07:00
Robin Dunn
0bce9c082d Update wx.TreeItemId tests 2017-06-03 10:51:21 -07:00
Robin Dunn
c2a905e27b Add wrappers for wxPrintData::[GS]etPaperSize 2017-05-31 19:06:14 -07:00
Robin Dunn
c2439a6646 Add a simple test for ShowPage and IsRunning 2017-05-24 10:54:49 -07:00
Robin Dunn
a1bafc04df Make TreeItemId hashable using the internal ID for the hash value,
so IDs pointing to the same item will compare as equal and have the same hash values. This enables TreeItemIDs to be dictionary keys in Py3.
2017-05-18 08:19:08 -07:00
Robin Dunn
44d2b5d309 Add a missing constant and enum for wx.grid 2017-04-27 09:35:48 -07:00