-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canvas.AddArrow from FloatCanvas does not work with WxPython 4.2.0 demo #2320
Comments
I tested on: However, with: I do see the failure. So it's a 2.9 vs 3.10 issue, which is very odd. It *could be an issue with a new numpy -- I"ll see about fixing the numpy warnings, and see if that helps. |
Found it -- turns out wxPython used to simply truncate floats to int when you used them in a drawing call -- now it doesn't do that, and instead does mysterious things -- at least when using numpy arrays, which FloatCanvas makes heavy use of. Anyway -- fixed in: #2448 However, I'm not sure when that might get merged -- I don't have permissions :-( If you want to patch it yourself, you'll want the new FloatCanvas.py and DrawObjects.py |
Operating system: Windows 10 ENTREPRISE
wxPython version & source: 4.2.0
Python version & source: 3.10.6
Description of the problem:
Canvas.AddArrow from FloatCanvas does not work with WxPython demo using wxPython 4.2.0. No Arrow is actually drawn.
Same demo code works with wxPython 4.1.1.
The text was updated successfully, but these errors were encountered: