ianBBB / boa-constructor

Updating the Boa Constructor IDE for operation with python 3.X and wxpython 4.2.X
https://ianbbb.github.io/boa-constructor/
0 stars 0 forks source link

Selecting "STC Setting" menu option under Edit in the editor causes an error. #8

Closed ianBBB closed 8 months ago

ianBBB commented 8 months ago

The error message is; 10:51:18 AM: Traceback (most recent call last):

10:51:18 AM: File "C:\Users\Ian-17\PycharmProjects\boa-constructor\Views\SourceViews.py", line 467, in OnSTCSettings self.PopupMenu(menu, s.x/2, s.y/2)

10:51:18 AM: TypeError: Window.PopupMenu(): arguments did not match any overloaded call: overload 1: argument 2 has unexpected type 'float' overload 2: argument 2 has unexpected type 'float'

ianBBB commented 8 months ago

wrapped the two arguments in question with int(). That fixed it.