Opened 9 years ago
Closed 9 years ago
#2781 closed defect (fixed)
gmodeler loops fail with wxpython3
| Reported by: | lucadelu | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 7.0.2 |
| Component: | wxGUI | Version: | unspecified |
| Keywords: | modeler, wxpython3 | Cc: | |
| CPU: | Unspecified | Platform: | Unspecified |
Description
It is not possible to open the dialog for loops in the gmodeler using wxpython3. The error is the following
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/lib/ogl/_canvas.py", line 224, in OnMouseEvent
nearest_object.GetEventHandler().OnLeftDoubleClick(x, y, keys, attachment)
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gmodeler/frame.py", line 1176, in OnLeftDoubleClick
self.OnProperties()
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gmodeler/frame.py", line 1195, in OnProperties
dlg = ModelLoopDialog(parent = self.frame, shape = shape)
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line 460, in __init__
style = style, **kwargs)
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line 439, in __init__
frame = parent)
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line 976, in __init__
disablePopup = True, **kwargs)
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line 792, in __init__
self.SetColumnWidth(2, 65)
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_controls.py", line 4474, in SetColumnWidth
return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "col >= 0 && col < GetColumnCount()" failed at ../src/generic/listctrl.cpp(3192) in SetColumnWidth(): invalid column index
Change History (3)
comment:1 by , 9 years ago
| Version: | → unspecified |
|---|
comment:2 by , 9 years ago
Done it works, please can you backport and close the ticket.
thanks a lot
Note:
See TracTickets
for help on using tickets.

Should be fixed in r66627, but I haven't tested it, so please do.