From b7e7e67c99570dc017550684e70474c9ff9dec86 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Thu, 26 Jul 2012 16:33:12 -0400 Subject: [PATCH] Tweaked match table settings and bindings in results_window xibless UI. --HG-- branch : xibless --- cocoa/base/ui/result_window.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cocoa/base/ui/result_window.py b/cocoa/base/ui/result_window.py index 5bb0e051..39d4443f 100644 --- a/cocoa/base/ui/result_window.py +++ b/cocoa/base/ui/result_window.py @@ -67,6 +67,7 @@ owner.matches = table owner.optionsSwitch = optionsSegments owner.optionsToolbarItem = optionsToolItem owner.stats = statsLabel +table.bind('rowHeight', defaults, 'values.TableFontSize', valueTransformer='vtRowHeightOffset') # Rest of the setup result.minSize = Size(340, 340) @@ -74,6 +75,13 @@ result.autosaveName = 'MainWindow' statsLabel.alignment = TextAlignment.Center table.alternatingRows = True table.menu = contextMenu +table.allowsColumnReordering = True +table.allowsColumnResizing = True +table.allowsColumnSelection = False +table.allowsEmptySelection = False +table.allowsMultipleSelection = True +table.allowsTypeSelect = True +table.gridStyleMask = const.NSTableViewSolidHorizontalGridLineMask table.setAnchor(Pack.UpperLeft, growX=True, growY=True) statsLabel.setAnchor(Pack.LowerLeft, growX=True)