home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / gui / alphaborder / alphaborder.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  2.3 KB  |  50 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  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.primitives.funcs import Delegate
  13. from util.primitives.mapping import Storage as S
  14.  
  15. def main2():
  16.     testapp = testapp
  17.     import tests.testapp
  18.     a = testapp('../../..')
  19.     frames = [ wx.Frame(None, -1, 'test %d' % c) for c in xrange(5) ]
  20.     stack = PopupStack(1, BOTTOM | LEFT)
  21.     stack.Add(frames[0])
  22.  
  23.  
  24. def main():
  25.     testapp = testapp
  26.     import tests.testapp
  27.     a = testapp('../../..')
  28.     makeImage = makeImage
  29.     import gui.skin.skinparse
  30.     b = makeImage('popupshadow.png 12 12 25 25')
  31.     f = Popup(b)
  32.     
  33.     def onbutton(e):
  34.         f2 = Popup(b)
  35.         f2.Size = (300, 100)
  36.         f2.DesiredSize = Size(300, 100)
  37.         stack.Add(f2)
  38.  
  39.     f.button.Bind(wx.EVT_BUTTON, onbutton)
  40.     stack = PopupStack(1, BOTTOM | LEFT)
  41.     f.DesiredSize = Size(300, 100)
  42.     stack.Add(f)
  43.     ctrl = wx.Frame(None)
  44.     ctrl.Show()
  45.     a.MainLoop()
  46.  
  47. if __name__ == '__main__':
  48.     main()
  49.  
  50.