Commit Graph

16 Commits

Author SHA1 Message Date
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
Mesalu
b1b91dface Update test_window.py
Add checks to ensure correct type is returned per input.
2017-07-13 11:18:49 -07:00
Metallicow
9568103974 Trim trailing space unittests directory 2016-12-05 16:19:11 -06: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
Robin Dunn
86357cc0a1 Merge branch 'remove-six'
# Conflicts:
#	unittests/test_string.py
#	unittests/test_wxdatetime.py
2016-06-30 20:14:58 -07:00
Robin Dunn
ed4756b902 Remove wx.lib.six and use the stock six module instead,
and add it as an installation dependency.
2016-06-30 20:07:57 -07:00
Robin Dunn
bb01dc0d7f Use absolute import of wtc in the unittest modules, instead of depending on them being run as __main__ and getting the folder on the sys.path by default. 2016-06-30 16:49:19 -07:00
Robin Dunn
83b3ddedfd Merge pull request #67 from swt2c/add_window_coord_overloads
Add int* overloads for ClientToScreen/ScreenToClient overloads and ad…
2016-05-09 21:55:30 -07:00
Robin Dunn
4f38ee259d Remove imp_unittest 2016-05-07 19:16:28 -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
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
Robin Dunn
295d3f6442 * Upgrade to the newest six module (1.2.0) and call it six instead of wx2to3.
* Tweak six a little, adding its license text since we'll only be distributing the module, fix the name of the dummy moves module, and add a PY33 constant since the change in memoryview affects our code.

* Update all modules already using the old wx2to3

* Tweak lots of unit tests and other modules to work with Python 3.3 (still a few more that will need some work.)

* Try to deal with memoryview changes in Py3.3, without much luck...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-16 01:15:41 +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
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
a548f7224d unittest updates and new test modules
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-15 16:16:21 +00:00