Bug #11686
closed'ChirpGridTable' object has no attribute 'GetRowsCount'
0%
Description
I have try to read a data from my Quansheng UV-K6 radio by an usb-serial cable with ch341-uart converter.
Menu -> Radio -> Read from radio: ttyUSB0, Quansheng, UV-K5
I've expected to see a table with data from the radio.
Nothing happends in the user interface but some traceback appeared in terminal:
Traceback (most recent call last):
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/main.py", line 1583, in menu_download
editorset = ChirpEditorSet(radio, None, self._editors)
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/main.py", line 201, in __init_
edit = self.MEMEDIT_CLS(radio, self.editors)
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/memedit.py", line 737, in __init_
self.table = ChirpGridTable(self._features, len(self._col_defs))
File "/home/xbow/.local/pipx/venvs/chirp/lib/python3.10/site-packages/chirp/wxui/memedit.py", line 51, in __init_
self._rowmap = {x: x for x in range(0, self.GetRowsCount())}
AttributeError: 'ChirpGridTable' object has no attribute 'GetRowsCount'
wx version 4.1.1
python version 3.10.12
chirp version 20241115
distro Linux Mint 21.3
I cant found the GetRowsCount method in my version on wx.grid, only the GetNumberRows method:
$ python3
Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import wx
import wx.grid
s = wx.grid.GridStringTable()
dir(s)
['AppendCols', 'AppendRows', 'Clear', 'CornerLabelValue', 'DeleteCols', 'DeleteRows', 'GetColLabelValue', 'GetCornerLabelValue', 'GetNumberCols', 'GetNumberRows', 'GetRowLabelValue', 'GetValue', 'InsertCols', 'InsertRows', 'NumberCols', 'NumberRows', 'SetColLabelValue', 'SetCornerLabelValue', 'SetRowLabelValue', 'SetValue', 'class', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref']
print(wx.version)
4.1.1
Files