title: Simple pop-up balloon message on mac using python
body: <p>How to make a simple pop-up balloon message on mac. I don't want to use NSUserNotification. 
  Using python-2.7 and osx 10.8.5.
  POP-UP should not have any button. POP-UP should come, display message and go automatically. It should be packaged properly with py2app also. </p>
  
  <pre><code>import objc
  import Foundation
  import AppKit
  
  def notify(title, subtitle, info_text, delay=0, sound=False, userInfo={}):
      NSUserNotification = objc.lookUpClass('NSUserNotification')
      NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter')
      notification = NSUserNotification.alloc().init()
      notification.setTitle_(title)
      notification.setSubtitle_(subtitle)
      notification.setInformativeText_(info_text)
      notification.setUserInfo_(userInfo)
      if sound:
          notification.setSoundName_("NSUserNotificationDefaultSoundName")
      notification.setDeliveryDate_(Foundation.NSDate.dateWithTimeInterval_sinceDate_(delay, Foundation.NSDate.date()))
      NSUserNotificationCenter.defaultUserNotificationCenter().scheduleNotification_(notification)
  
  
  def notificationBalloon(title,msg):
      notify(title1, msg1,"", sound=False) 
  </code></pre>