home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / gui / native / mac / machelpers.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  2.2 KB  |  54 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import wx
  5. import gui.native as gui
  6. import time
  7. import os
  8. import Carbon.CarbonEvt as Carbon
  9.  
  10. def FullscreenApp():
  11.     gui.native.notImplemented()
  12.     return False
  13.  
  14.  
  15. def FullscreenAppLog():
  16.     gui.native.notImplemented()
  17.  
  18.  
  19. def SetOnTaskbar(f, val):
  20.     gui.native.notImplemented()
  21.  
  22.  
  23. def GetOnTaskbar(f):
  24.     return True
  25.  
  26.  
  27. def GetUserIdleTime():
  28.     lastEventTime = Carbon.CarbonEvt.GetCurrentEventTime() - Carbon.CarbonEvt.GetLastUserEventTime()
  29.     return lastEventTime * 1000
  30.  
  31.  
  32. def createEmail(mailto):
  33.     return os.system('open ' + mailto)
  34.  
  35. wx.Window.ShowNoFocus = wx.Window.Show
  36. wx.Window.ReallyRaise = wx.Window.Raise
  37. from AppKit import *
  38. from Foundation import *
  39.  
  40. class nspool(object):
  41.     
  42.     def __init__(self):
  43.         self.pool = None
  44.  
  45.     
  46.     def __enter__(self):
  47.         self.pool = NSAutoreleasePool.alloc().init()
  48.  
  49.     
  50.     def __exit__(self, exc_type, exc_val, exc_tb):
  51.         self.pool = None
  52.  
  53.  
  54.