enthought / enable

Enable: low-level drawing and interaction
Other
91 stars 45 forks source link

Add explicit float -> int conversion for Qt #1041

Closed corranwebster closed 1 year ago

corranwebster commented 1 year ago

This was happening implicitly until https://bugs.python.org/issue36048 This makes it explicit, which means things should work with PyQt5 on Python 3.10.

Fixes #1037

corranwebster commented 1 year ago

Are these really the only call sites?

Quite likely the only ones that have a mismatch between floats and ints. The interface between the toolkit and Enable is fairly thin (here's a control, draw your stuff in it, listen for events; plus the native scrollbar stuff).

On an unrelated note, this seems to have turned the MacOS wx tests back on somehow... I will fix before merging.