home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / gui / alphaborder / alphaborder.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-02-26  |  2.2 KB  |  49 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. import wx
  5. from wx import Point, Size, TOP, BOTTOM, LEFT, RIGHT, Frame, RectPS, Rect
  6. from gui.windowfx import resize_smoothly, move_smoothly, setalpha
  7. from cgui import AlphaBorder, BorderedFrame, fadein, fadeout
  8. from gui.toolbox import Monitor
  9. from wx import FindWindowAtPointer
  10. from operator import attrgetter
  11. from gui import skin
  12. from util import Storage as S, Delegate
  13.  
  14. def main2():
  15.     testapp = testapp
  16.     import tests.testapp
  17.     a = testapp('../../..')
  18.     frames = [ wx.Frame(None, -1, 'test %d' % c) for c in xrange(5) ]
  19.     stack = PopupStack(1, BOTTOM | LEFT)
  20.     stack.Add(frames[0])
  21.  
  22.  
  23. def main():
  24.     testapp = testapp
  25.     import tests.testapp
  26.     a = testapp('../../..')
  27.     makeImage = makeImage
  28.     import gui.skin.skinparse
  29.     b = makeImage('popupshadow.png 12 12 25 25')
  30.     f = Popup(b)
  31.     
  32.     def onbutton(e):
  33.         f2 = Popup(b)
  34.         f2.Size = (300, 100)
  35.         f2.DesiredSize = Size(300, 100)
  36.         stack.Add(f2)
  37.  
  38.     f.button.Bind(wx.EVT_BUTTON, onbutton)
  39.     stack = PopupStack(1, BOTTOM | LEFT)
  40.     f.DesiredSize = Size(300, 100)
  41.     stack.Add(f)
  42.     ctrl = wx.Frame(None)
  43.     ctrl.Show()
  44.     a.MainLoop()
  45.  
  46. if __name__ == '__main__':
  47.     main()
  48.  
  49.