home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / gui / __init__.pyo (.txt) next >
Encoding:
Python Compiled Bytecode  |  2009-02-26  |  764 b   |  17 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. import wx
  5. import os
  6. from gui.native.extensions import *
  7. from gui.wxextensions import *
  8.  
  9. def dist(here, there):
  10.     return sum(map((lambda a, b: (a - b) ** 2), here, there)) ** 0.5
  11.  
  12. wx.Point.DistanceTo = dist
  13.  
  14. def yes(msg, title = ''):
  15.     return wx.MessageBox(msg, title, wx.YES_NO) == wx.YES
  16.  
  17.