Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

SetColumnWidth in ui causes crash on linux #1

Open
ilent2 opened this issue Nov 4, 2017 · 0 comments
Open

SetColumnWidth in ui causes crash on linux #1

ilent2 opened this issue Nov 4, 2017 · 0 comments

Comments

@ilent2
Copy link
Collaborator

ilent2 commented Nov 4, 2017

I get the following error:

Traceback (most recent call last):
  File "/home/isaac/.local/bin/clinic2cloud", line 11, in <module>
    load_entry_point('clinic2cloud==0.2', 'console_scripts', 'clinic2cloud')()
  File "/home/isaac/.local/lib/python2.7/site-packages/clinic2cloud/clientgui.py", line 490, in main
    frame = ClinicApp()
  File "/home/isaac/.local/lib/python2.7/site-packages/clinic2cloud/clientgui.py", line 480, in __init__
    notebook = AppMain(panel)
  File "/home/isaac/.local/lib/python2.7/site-packages/clinic2cloud/clientgui.py", line 386, in __init__
    self.InitUI()
  File "/home/isaac/.local/lib/python2.7/site-packages/clinic2cloud/clientgui.py", line 418, in InitUI
    self.GetListView().SetColumnWidth(0, wx.LIST_AUTOSIZE)
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/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(3230) in SetColumnWidth(): invalid column index

For now I'm commenting out this line and committing:

        # TODO: This line doesn't work
        #self.GetListView().SetColumnWidth(0, wx.LIST_AUTOSIZE)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant