1. Ronald Oussoren
  2. pyobjc

Source

pyobjc / pyobjc / Examples / WebServicesTool / WSTApplicationDelegateClass.py

from Foundation import NSObject
from WSTConnectionWindowControllerClass import WSTConnectionWindowController

from AppKit import NibClassBuilder
from AppKit.NibClassBuilder import AutoBaseClass

NibClassBuilder.extractClasses( "MainMenu" )
class WSTApplicationDelegate(AutoBaseClass):

  def newConnectionAction_(self, sender):
    WSTConnectionWindowController.connectionWindowController().showWindow_(sender)

  def applicationDidFinishLaunching_(self, aNotification):
    self.newConnectionAction_(None)