home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Lib / stdwin / gwin.py < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.4 KB  |  23 lines  |  [TEXT/R*ch]

  1. # Module 'gwin'
  2. # Generic stdwin windows
  3.  
  4. # This is used as a base class from which to derive other window types.
  5. # XXX DON'T USE THIS CODE ANY MORE!  It is ages old!
  6.  
  7. import stdwin, stdwinq
  8. from stdwinevents import *
  9. from mainloop import mainloop, register, unregister, windows
  10.  
  11. # Open a window
  12.  
  13. def open(title):            # Open a generic window
  14.     w = stdwin.open(title)
  15.     stdwin.setdefwinsize(0, 0)
  16.     # Set default event handlers
  17.     w.draw = nop
  18.     w.char = nop
  19.     w.mdown = nop
  20.     w.mmove = nop
  21.     w.mup = nop
  22.     w.m2down = m2down