-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
example:
import vanilla
import AppKit
def callback(sender):
print("hit")
button = vanilla.Button((0, 0, 100, 22), "A Button!", callback=callback, sizeStyle="small")
button.getNSButton().setFrame_(((0, 0), (150, 22)))
w = vanilla.Window((400, 400))
titlebarController = AppKit.NSTitlebarAccessoryViewController.alloc().init()
titlebarController.setView_(button.getNSButton())
titlebarController.setLayoutAttribute_(AppKit.NSLayoutAttributeRight)
w.getNSWindow().addTitlebarAccessoryViewController_(titlebarController)
w.open()justvanrossum
Metadata
Metadata
Assignees
Labels
No labels