Closed MariwanJ closed 3 years ago
@realthunder can you take a quick look at this?
@luzpaz I believe the solution is as I asked at stackoverflow. (https://stackoverflow.com/questions/67877603/how-to-override-a-function-in-an-inheritance-hierarchy#67877671) I will try to do the modifications required as per the solution they told me there.
This issue is resolved .. Thanks for @luzpaz. I managed to figure out the issue as I mentioned in the previous post.
@luzpaz @carlopav @joelgraff Please look at the devbranch - main has not the updates yet. For the widget system I am preparing, I let the user write the callback for the mouse events later by sub-classing the widgets. But when I subclass the line_widget in the smartscale, the callback is still the parents callback. There is no reason to be like that as I am overriding the variable. If it was cpp, it shouldn't happen but in python either I don't know or it is not easy to implement. I would appreciate any help in understanding or fixing this issue. Thank you very much in advance. look at this part.