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

SetColumnWidth in ui causes crash on linux #1

@ilent2

Description

@ilent2

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions