mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-13 02:59:02 +00:00
c34004ed94
--HG-- branch : xibless
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
ownerclass = 'IgnoreListDialog'
|
|
ownerimport = 'IgnoreListDialog.h'
|
|
|
|
result = Window(550, 350, "Ignore List")
|
|
table = TableView(result)
|
|
removeSelectedButton = Button(result, "Remove Selected")
|
|
clearButton = Button(result, "Clear")
|
|
closeButton = Button(result, "Close")
|
|
|
|
owner.ignoreListTableView = table
|
|
|
|
result.canMinimize = False
|
|
removeSelectedButton.action = Action(owner.model, 'removeSelected')
|
|
clearButton.action = Action(owner.model, 'clear')
|
|
closeButton.action = Action(result, 'performClose:')
|
|
closeButton.keyEquivalent = '\\r'
|
|
table.allowsColumnReordering = False
|
|
table.allowsColumnSelection = False
|
|
table.allowsMultipleSelection = True
|
|
|
|
removeSelectedButton.width = 142
|
|
clearButton.width = 142
|
|
closeButton.width = 84
|
|
buttonLayout = HLayout([removeSelectedButton, clearButton, None, closeButton])
|
|
buttonLayout.packToCorner(Pack.LowerLeft)
|
|
buttonLayout.fill(Pack.Right)
|
|
buttonLayout.setAnchor(Pack.Below)
|
|
table.packRelativeTo(buttonLayout, Pack.Above)
|
|
table.fill(Pack.UpperRight)
|
|
table.setAnchor(Pack.UpperLeft, growX=True, growY=True)
|