home *** CD-ROM | disk | FTP | other *** search
/ One Click 11 / OneClick11.iso / Bancos de Dados / Conversao / Mysql2Excel / Setup.exe / Mysql2Excel.exe / pywin / mfc / window.pyc (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2003-06-23  |  2.5 KB  |  54 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.2)
  3.  
  4. import object
  5. import win32ui
  6. import win32con
  7.  
  8. class Wnd(object.CmdTarget):
  9.     
  10.     def __init__(self, initobj = None):
  11.         object.CmdTarget.__init__(self, initobj)
  12.         if self._obj_:
  13.             self._obj_.HookMessage(self.OnDestroy, win32con.WM_DESTROY)
  14.         
  15.  
  16.     
  17.     def OnDestroy(self, msg):
  18.         pass
  19.  
  20.  
  21.  
  22. class FrameWnd(Wnd):
  23.     
  24.     def __init__(self, wnd):
  25.         Wnd.__init__(self, wnd)
  26.  
  27.  
  28.  
  29. class MDIChildWnd(FrameWnd):
  30.     
  31.     def __init__(self, wnd = None):
  32.         if wnd is None:
  33.             wnd = win32ui.CreateMDIChild()
  34.         
  35.         FrameWnd.__init__(self, wnd)
  36.  
  37.     
  38.     def OnCreateClient(self, cp, context):
  39.         if context is not None and context.template is not None:
  40.             context.template.CreateView(self, context)
  41.         
  42.  
  43.  
  44.  
  45. class MDIFrameWnd(FrameWnd):
  46.     
  47.     def __init__(self, wnd = None):
  48.         if wnd is None:
  49.             wnd = win32ui.CreateMDIFrame()
  50.         
  51.         FrameWnd.__init__(self, wnd)
  52.  
  53.  
  54.