Closed petrkr closed 1 year ago
What version of wx are you using? This OpenPLC Editor port to wx Phoenix is based on version 4.1.1. Correct me if I'm wrong, but it seems that wx keep changing a lot of things on their API on every release, so I rather port it to a fixed version first, and then work on fixing the small details to have it running on the latest version once it is stable.
pacman -Ss python-wxpython community/python-wxpython 1:4.1.1-3 [installed]
pip list |grep wx wxPython 4.1.1
By WX documentation SetValue of SpinCtrl want int or text (https://docs.wxpython.org/wx.SpinCtrl.html#wx.SpinCtrl.SetValue) but x/y are float. So let's cast them to integer.
It causes this bug