mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-05 07:49:02 +00:00
37 lines
1.4 KiB
Python
37 lines
1.4 KiB
Python
ownerclass = 'HSAboutBox'
|
|
ownerimport = 'HSAboutBox.h'
|
|
|
|
result = Window(259, 217, "")
|
|
result.canResize = False
|
|
result.canMinimize = False
|
|
image = ImageView(result, "NSApplicationIcon")
|
|
titleLabel = Label(result, NLSTR("AppTitle"))
|
|
versionLabel = Label(result, NLSTR("AppVersion"))
|
|
copyrightLabel = Label(result, NLSTR("AppCopyright"))
|
|
|
|
owner.window = result
|
|
owner.titleTextField = titleLabel
|
|
owner.versionTextField = versionLabel
|
|
owner.copyrightTextField = copyrightLabel
|
|
for label in (titleLabel, versionLabel, copyrightLabel):
|
|
label.alignment = const.NSCenterTextAlignment
|
|
titleLabel.font = Font(FontFamily.Label, FontSize.RegularControl, traits=[FontTrait.Bold])
|
|
for label in (versionLabel, copyrightLabel):
|
|
label.font = Font(FontFamily.Label, FontSize.SmallControl)
|
|
label.height = 14
|
|
|
|
image.height = 96
|
|
image.packToCorner(Pack.UpperLeft)
|
|
image.y = result.height - 10 - image.height
|
|
image.fill(Pack.Right)
|
|
image.setAnchor(Pack.UpperLeft, growX=True)
|
|
titleLabel.packRelativeTo(image, Pack.Below, Pack.Left)
|
|
titleLabel.fill(Pack.Right)
|
|
titleLabel.setAnchor(Pack.UpperLeft, growX=True)
|
|
versionLabel.packRelativeTo(titleLabel, Pack.Below, Pack.Left)
|
|
versionLabel.fill(Pack.Right)
|
|
versionLabel.setAnchor(Pack.UpperLeft, growX=True)
|
|
copyrightLabel.packRelativeTo(versionLabel, Pack.Below, Pack.Left)
|
|
copyrightLabel.fill(Pack.Right)
|
|
copyrightLabel.setAnchor(Pack.UpperLeft, growX=True)
|