Commit Graph

5 Commits

Author SHA1 Message Date
PChemGuy
af3721f167 Explicit NumPy.float64 to int typecasting in FCObjects.py
I cannot tell whether the original code worked before, but this explicit typecasting is necessary now.
The issue occurs, for example if attempting to execute "PieChart.py" or  "ScaledBitmap2Demo.py" in "samples\floatcanvas". Without typecasting, type errors are thrown, such as "TypeError: Image.Scale(): argument 1 has unexpected type 'numpy.float64'".
Apparently, this problem might be due to recent updates in Python and NumPy.
2022-08-20 21:43:22 +03:00
Per A. Brodtkorb
fc1823315b Fixes issue # 1554:
Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
2020-03-23 11:53:36 +01:00
Robin Dunn
73f0622bf6 Additional ribbonbar_demo tweaks and cleanup. 2016-08-23 14:29:32 -07:00
Scott Talbert
a3b10d5d63 Fix crash in ribbonbar sample
The ArtProvider shouldn't be cloned in this case because SetArtProvider() does
not take ownership of the object in this case.  Because of that, once the
cloned provider goes out of scope and gets garbage collected, future uses will
crash.

Fixes #141.
2016-08-20 23:16:39 -04:00
Robin Dunn
4397c220b3 Add ribbon sample app 2016-07-07 21:54:16 -07:00