Add multi-selection and gitignore for pycache

Remove LC_SINGLE_SEL to enable shift/ctrl selection, and ignore
__pycache__ and .pyc files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 16:52:41 +00:00
parent 5f59b3dd4f
commit 2ce08cc091
3 changed files with 3 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
__pycache__/
*.pyc

View File

@@ -11,7 +11,7 @@ class Sortable_Component_List(wx.ListCtrl, listmix.ColumnSorterMixin):
def __init__(self, parent): def __init__(self, parent):
wx.ListCtrl.__init__( wx.ListCtrl.__init__(
self, parent, self, parent,
style=wx.LC_REPORT | wx.LC_HRULES | wx.LC_VRULES | wx.LC_SINGLE_SEL style=wx.LC_REPORT | wx.LC_HRULES | wx.LC_VRULES
) )
col_widths = [100, 120, 160, 200, 200] col_widths = [100, 120, 160, 200, 200]
for i, (col, w) in enumerate(zip(COLUMNS, col_widths)): for i, (col, w) in enumerate(zip(COLUMNS, col_widths)):