2012-07-21 14:39:01 +00:00
|
|
|
ownerclass = 'DetailsPanel'
|
|
|
|
ownerimport = 'DetailsPanel.h'
|
|
|
|
|
|
|
|
result = Panel(451, 146, "Details of Selected File")
|
|
|
|
table = TableView(result)
|
|
|
|
|
|
|
|
owner.detailsTable = table
|
|
|
|
|
|
|
|
result.style = PanelStyle.Utility
|
|
|
|
result.xProportion = 0.2
|
|
|
|
result.yProportion = 0.4
|
|
|
|
result.canMinimize = False
|
|
|
|
result.autosaveName = 'DetailsPanel'
|
|
|
|
result.minSize = Size(result.width, result.height)
|
|
|
|
|
|
|
|
table.dataSource = owner
|
|
|
|
table.allowsColumnReordering = False
|
|
|
|
table.allowsColumnSelection = False
|
|
|
|
table.allowsMultipleSelection = False
|
|
|
|
table.font = Font(FontFamily.System, FontSize.SmallSystem)
|
|
|
|
table.rowHeight = 14
|
|
|
|
table.editable = False
|
|
|
|
col = table.addColumn('0', "Attribute", 70)
|
|
|
|
col.autoResizable = True
|
|
|
|
col = table.addColumn('1', "Selected", 198)
|
|
|
|
col.autoResizable = True
|
|
|
|
col = table.addColumn('2', "Reference", 172)
|
|
|
|
col.autoResizable = True
|
|
|
|
|
2012-07-23 21:46:01 +00:00
|
|
|
table.packToCorner(Pack.UpperLeft, margin=0)
|
|
|
|
table.fill(Pack.LowerRight, margin=0)
|
2012-07-21 14:39:01 +00:00
|
|
|
table.setAnchor(Pack.UpperLeft, growX=True, growY=True)
|