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

Joystick demo: Gauge has no attribute OnPaint #997

Closed
mickp opened this Issue Sep 13, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@mickp
Copy link
Contributor

mickp commented Sep 13, 2018

Operating system: Win7
wxPython version & source: pypi, 4.0.3 msw (phoenix) wxWidgets 3.0.5
Python version & source: WinPython 3.5.2

Description of the problem:
Running Phoenix/demo/Joystick.py produces attribute errors
type object 'Gauge' has no attribute 'OnPaint'
when it hits
wx.Gauge.OnPaint(self, evt)
in demo.Joystick.AxisBar.ShowValue (line 651 as at d49953b)

    def ShowValue(self, dc, evt):
        # This method handles actual painting of and drawing
        # on the gauge.

        # Clear out the gauge
        dc.Clear()
        # and then carry out business as usual
        wx.Gauge.OnPaint(self, evt)
@RobinD42

This comment has been minimized.

Copy link
Member

RobinD42 commented Oct 30, 2018

Fixed by #1063

@RobinD42 RobinD42 closed this Oct 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment