home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / python / python_1 / !Py_New_model_py_NAME < prev    next >
Encoding:
Text File  |  1996-08-16  |  453 b   |  27 lines

  1. # Iconbar handler for <NAME>
  2. # Created by Py_New on <DATE>
  3.  
  4. import tbevent
  5. from sys import exit,argv
  6. from swi import *
  7.  
  8. class Orphans:
  9.       actions={}
  10.       def __init__(self):
  11.           tbevent.tbclasses[0]=self
  12.       def E_Q_Quit(self):
  13.           exit()
  14.  
  15. class Messenger:
  16.       def Wimp_MQuit(self):
  17.           exit()
  18.  
  19.  
  20. tbevent.initialise("<<NAME>$Dir>")
  21. tbevent.usereport=32
  22.  
  23. oi=Orphans()
  24. tbevent.msghandler=Messenger()
  25.  
  26. while 1:
  27.       tbevent.poll()