Skip to content
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

Wxpython 4.2.0 #251

Closed
Manu197-pn opened this issue Sep 30, 2022 · 5 comments
Closed

Wxpython 4.2.0 #251

Manu197-pn opened this issue Sep 30, 2022 · 5 comments

Comments

@Manu197-pn
Copy link

I am using WXpython 4.2 , the Scope provide an error but the program is working. The error appears each time the scope box is resized. I read that pyo support Wxpython 4.0.7 but I do not succeed in going back to this release. ( Mac OS 12.6 )
Is it still the case or 4.2 is now supported ?

Traceback (most recent call last):
File "/Users/emmanuel/PycharmProjects/pythonProject2/venv/lib/python3.10/site-packages/pyo/lib/_wxwidgets.py", line 429, in OnPaint
rec = wx.Rect(0, self.pos - self.knobHalfSize, w, self.knobSize - 1)
TypeError: Rect(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'float'
overload 3: argument 1 has unexpected type 'int'
overload 4: argument 1 has unexpected type 'int'
overload 5: argument 1 has unexpected type 'int'
overload 6: argument 1 has unexpected type 'int'

@belangeo
Copy link
Owner

belangeo commented Nov 4, 2022

All good here on linux with wxpython 4.2, I still need to confirm on Mac and Windows...

@Bibiko
Copy link
Contributor

Bibiko commented Dec 29, 2022

On macOS 13.1 (arm) and on macOS 12.4 (intel) the issue is that self.pos is a float (coming via self.scale and tFromValue), but all arguments to init a wx.Rect have to be integers [lines 331, 334, 427, 435 in lib/_wxwidgets.py]. I do not know whether a int(self.pos) or round(self.pos) would be the right way here.

@belangeo
Copy link
Owner

belangeo commented Jan 4, 2023

I don't get the same behaviour on linux or Windows :( I'll fix this everywhere when I'll test on MacOS (linux and Windows are almost ready for the release).

@belangeo
Copy link
Owner

belangeo commented Jan 4, 2023

Pretty much safe change... Up in master.

@Bibiko
Copy link
Contributor

Bibiko commented Jan 4, 2023

I built it and it works - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants