为什么显示这个错误
why show this erro
我通过 this youtube tutorial 创建了一个 table 我只是不使用相同的列表
我的代码
drives = win32api.GetLogicalDriveStrings()
drives = drives.split('[=10=]')[:-1]
hsa = 0
suphdd =len(drives)
print (drives)
fugas = ["0"]
while suphdd == hsa:
fugas[hsa] = suko_rata()[hsa]
print (fugas[hsa])
hsa += 1
centlisyt = wx.ListCtrl(panel, (200,20), (100,80), fugas, wx.LC_SINGLE_SEL)
我收到这个错误
centlisyt = wx.ListCtrl(panel, (200,20), (100,80), fugas, wx.LC_SINGLE_SEL)
TypeError: ListCtrl(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'tuple'
def __init__(self, parent, ID, pos, size, style):
这是您要调用的 wx.ListCtrl
的构造函数。由于两个元组 (200, 20), (100, 80)
看起来分别是 pos
和 size
。我会说你错过了 ID
论点。
我不确定 fugas
应该是什么
我通过 this youtube tutorial 创建了一个 table 我只是不使用相同的列表
我的代码
drives = win32api.GetLogicalDriveStrings()
drives = drives.split('[=10=]')[:-1]
hsa = 0
suphdd =len(drives)
print (drives)
fugas = ["0"]
while suphdd == hsa:
fugas[hsa] = suko_rata()[hsa]
print (fugas[hsa])
hsa += 1
centlisyt = wx.ListCtrl(panel, (200,20), (100,80), fugas, wx.LC_SINGLE_SEL)
我收到这个错误
centlisyt = wx.ListCtrl(panel, (200,20), (100,80), fugas, wx.LC_SINGLE_SEL)
TypeError: ListCtrl(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 2 has unexpected type 'tuple'
def __init__(self, parent, ID, pos, size, style):
这是您要调用的 wx.ListCtrl
的构造函数。由于两个元组 (200, 20), (100, 80)
看起来分别是 pos
和 size
。我会说你错过了 ID
论点。
我不确定 fugas
应该是什么