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

Re-ordering does not work in the List contol #2

Open ianBBB opened 8 months ago

ianBBB commented 8 months ago

In the Sizer tutorial, a listctrl is used to hold the fields for the flexgrid. The editor for this control supplies arrow buttons to allow re-ordering of the items but they produce and error message; 7:56:14 AM: Traceback (most recent call last):

7:56:14 AM: File "C:\Users\Ian-17\PycharmProjects\boa-constructor\Views\CollectionEdit.py", line 222, in OnUpClick newIdx = self.collEditView.companion.moveItem(self.selected, -1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

7:56:14 AM: File "C:\Users\Ian-17\PycharmProjects\boa-constructor\Companions\ListCompanions.py", line 160, in moveItem text = li.GetText() ^^^^^^^^^^

7:56:14 AM: AttributeError: 'NoneType' object has no attribute 'GetText'