James Wettenhall
f5aca9d312
Destroying each FloatCanvas instance before tearDown avoids exceptions like
...
this:
wx/lib/floatcanvas/FCObjects.py, line 746, in _Draw
dc.DrawLines(Points)
TypeError: DC.DrawLines(): argument 1 has unexpected type 'numpy.ndarray'
There's a lot of code duplication between test methods in this class.
It might be better to replace each "fccanvas" with "self.fccanvas", and then
do the common tearDown stuff like "self.fccanvas.Destroy()" in one place.
However, this commit aims to make minimal changes, hencing avoiding replacing
all instances of "fccanvas" with "self.fccanvas"
2017-03-23 22:01:06 +11:00
James Wettenhall
79bd87a0e4
Skipping this test, because when the ToasterBox instance (tb) goes out of
...
scope, the following exception is raised:
RuntimeError: super-class __init__() of type ToasterBox was never called
2017-03-23 22:00:30 +11:00
James Wettenhall
15eca0a399
Monkey-patching RibbonGallery's Layout method avoids this exception:
...
wx\lib\agw\ribbon\gallery.py, line 745, in Layout
for item in self._items[indx:]:
UnboundLocalError: local variable 'indx' referenced before assignment
Monkey-patching RibbonGallery's OnPaint method avoids this exception:
wx\lib\agw\ribbon\gallery.py, line 587, in OnPaint
dc.SetClippingRegion(self._client_rect)
AttributeError: 'RibbonGallery' object has no attribute '_client_rect'
2017-03-23 21:59:09 +11:00
James Wettenhall
ff677ea1d5
Monkey-patch self.frame's PushEventHandler and PopEventHandler methods,
...
because they don't behave well without a MainLoop.
2017-03-23 21:57:54 +11:00
James Wettenhall
220b97f9e7
Explicitly calling ShowModal and Destroy avoids having WidgetTestCase's
...
tlw.Close(force=True) trigger an exception because the dialog's EVT_CLOSE
handler is trying to call EndModal on a dialog which isn't modal.
2017-03-23 21:55:22 +11:00
James Wettenhall
b678971bf4
Destroying date picker earlier avoids "R6025 - pure virtual function call".
2017-03-23 21:54:17 +11:00
Robin Dunn
5fec8821e7
Merge pull request #256 from RobinD42/fix-issue249
...
Don't auto set mustHaveApp for all staticmethods of classes with the flag
2017-03-22 09:45:12 -07:00
Robin Dunn
ad24b4ff79
Merge pull request #255 from wettenhj/VCForPython27
...
Adding support for Microsoft Visual C++ Compiler for Python 2.7
2017-03-21 19:24:23 -07:00
Robin Dunn
875c9677ac
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 19:21:07 -07:00
James Wettenhall
96dc809236
Adding support for Microsoft Visual C++ Compiler for Python 2.7
2017-03-22 08:40:05 +11:00
Robin Dunn
088ba0ccdf
Merge pull request #254 from RobinD42/DLLs-for-Py36
...
MSVC DLLs for Py36 builds
2017-03-20 19:50:52 -07:00
Robin Dunn
14211ef913
Merge pull request #252 from RobinD42/fix-issue251
...
Need to transfer ownership on the Prepend methods too.
2017-03-20 19:50:37 -07:00
Robin Dunn
20f7f2dadd
fix comment about the PYVER and the vcredist files
2017-03-20 16:39:58 -07:00
Robin Dunn
b1b759a17d
Include the MSVC CRT DLLs for Python 3.6 builds too
2017-03-20 16:39:36 -07:00
Robin Dunn
632dcaba79
Need to transfer ownership on the Prepend methods too.
2017-03-20 16:35:21 -07:00
Robin Dunn
4fc5f9ed10
Merge pull request #239 from RobinD42/propgrid-more-fixes
...
Lots of propgrid fixes
2017-03-14 19:50:08 -07:00
Robin Dunn
a2d01de343
A few more iteritems —> items
2017-03-13 20:14:04 -07:00
Robin Dunn
3d0fb1927e
Remove the MappedType for wxPGAttributeStorage
2017-03-13 19:59:54 -07:00
Robin Dunn
775d6da37a
We can’t use the default SIP machinery got GetAttributes because wxPGAttributeStorage doesn’t have a copy-ctor and the default copy ctor won’t IncRef the variant values and so crashes happen. Just do the conversion directly here instead.
2017-03-13 19:48:58 -07:00
Robin Dunn
479d5b9db6
typos
2017-03-13 19:44:48 -07:00
Robin Dunn
539f9d1f82
Rename Properties and Items methods so the same-named properties don’t cause a build warning
2017-03-13 15:47:42 -07:00
Robin Dunn
76df4153bb
propgrid demo tweaks
2017-03-11 20:25:25 -08:00
Robin Dunn
93005e5427
Add variant converters for wxColourPropertyValue
2017-03-11 20:14:51 -08:00
Robin Dunn
094ab1f710
Just convert wxPGAttributeStorage to a dictionary
2017-03-11 20:13:39 -08:00
Robin Dunn
c688fb0362
Port some Python code tweaks and extensions from Classic in propgrid
2017-03-11 19:05:13 -08:00
Robin Dunn
2b942551d9
Merge branch 'master' into propgrid-more-fixes
2017-03-09 09:52:47 -08:00
Robin Dunn
e3fbb9f1b8
Merge pull request #246 from RobinD42/fix-gtk2-cairo
...
convert the context pointer to the proper type for cairocffi
2017-03-07 19:32:45 -08:00
Robin Dunn
e83e3c7d5f
convert the context pointer to the proper type for cairocffi
2017-03-07 19:19:44 -08:00
Robin Dunn
a92cef7bab
Merge pull request #240 from radarhere/master
...
Fixed typos
2017-02-27 08:26:09 -08:00
Andrew Murray
2cfe4ad989
Fixed typos
2017-02-26 14:15:49 +11:00
Robin Dunn
97d138914c
Use super()
2017-02-24 16:50:20 -08:00
Robin Dunn
8fcc3e3a5d
minor demo tweaks
2017-02-24 16:09:47 -08:00
Robin Dunn
12c03571d2
Check for None/NULL before the other types.
2017-02-24 16:09:07 -08:00
Robin Dunn
918a70f5a4
Add mapped type for wxPGVariant and switch all wxVariant in propgrid to this type. This allows the variant types only available in propgrid to be used the same as the core variant types.
2017-02-24 14:32:40 -08:00
Robin Dunn
19930c9bbd
Add support for more variant data types available in core.
2017-02-24 14:10:04 -08:00
Robin Dunn
2b7ae84149
Allow None to be used with wxVariant
2017-02-22 13:32:59 -08:00
Robin Dunn
265b7499eb
Remove the auto-convert from wxArrayString to wxPGChoices
2017-02-21 17:29:07 -08:00
Robin Dunn
6908368174
More ease of use fixes for wxPGPropArgCls
2017-02-21 17:28:16 -08:00
Robin Dunn
e692b9f335
Fix the wxMultiChoiceProperty ctor taking a wxArrayString to make it easier and more compatible with Classic.
2017-02-21 17:26:58 -08:00
Robin Dunn
ece44c3a20
more little demo fixes
2017-02-21 17:25:07 -08:00
Robin Dunn
f5c5f3365a
Minor demo tweaks
2017-02-21 12:46:28 -08:00
Robin Dunn
04cabce398
Add autoconvert code from wxArrayString to wxPGChoices
2017-02-21 12:46:11 -08:00
Robin Dunn
0d23d74d72
Add code to auto convert from string or wxPGProperty to wxPGPropArgCls
2017-02-21 12:45:10 -08:00
Robin Dunn
0fecb90eb1
Give wxPGChoices some sequence special methods
2017-02-21 12:43:10 -08:00
Robin Dunn
536e0e154a
Transfer editor object ownership
2017-02-21 12:41:46 -08:00
Robin Dunn
e8ab2bfa0e
Transfer ownership of the property objects to the propgrid
2017-02-20 20:50:39 -08:00
Robin Dunn
1d95aef5e8
Update wxWidgets
2017-02-20 19:38:09 -08:00
Robin Dunn
afce6de5e2
Begin porting the propgrid sample
2017-02-20 19:31:04 -08:00
Robin Dunn
38029c973c
Add some deprecated items for things in Classic that are no longer needed, and also some custom helpers, etc.
2017-02-20 19:30:30 -08:00
Robin Dunn
df3c93b7dc
Add missing propgrid event related items.
2017-02-20 13:30:45 -08:00