-
-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: #6101 Extends PR: #6178 Merge branch 'i6101_SymbolsListCtrl' into next Conflicts: source/gui/settingsDialogs.py
- Loading branch information
Showing
3 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: UTF-8 -*- | ||
#A part of NonVisual Desktop Access (NVDA) | ||
#Copyright (C) 2016 NV Access Limited | ||
#This file is covered by the GNU General Public License. | ||
#See the file COPYING for more details. | ||
|
||
import wx | ||
from wx.lib.mixins import listctrl as listmix | ||
|
||
class AutoWidthColumnListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin): | ||
""" | ||
A list control that allows you to specify a column to resize to take up the remaining width of a wx.ListCtrl | ||
""" | ||
def __init__(self, parent, id=wx.ID_ANY, autoSizeColumnIndex="LAST", pos=wx.DefaultPosition, size=wx.DefaultSize, style=0): | ||
""" initialiser | ||
Takes the same parameter as a wx.ListCtrl with the following additions: | ||
autoSizeColumnIndex - defaults to "LAST" which results in the last column being resized. Pass the index of | ||
the column to be resized. | ||
""" | ||
wx.ListCtrl.__init__(self, parent, id, pos, size, style) | ||
listmix.ListCtrlAutoWidthMixin.__init__(self) | ||
self.setResizeColumn(autoSizeColumnIndex) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters