/[james]/archive/newsstats/!NewsStats/py/Task.py
ViewVC logotype

Annotation of /archive/newsstats/!NewsStats/py/Task.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations) (download) (as text)
Tue Feb 11 09:59:30 2003 UTC (21 years, 9 months ago) by james
File MIME type: text/x-python
File size: 601 byte(s)
Initial import.

1 james 17 # > !NewsStats.py.Task/py
2    
3     import os
4     import wimp
5     import Iconbar
6     import MainW
7     import Newsbase
8    
9     def init():
10     "Initialise program specific stuff"
11     wimp.hourglass_on()
12     Newsbase.init()
13     Iconbar.init()
14     MainW.init()
15     wimp.message_handler[0x83581] = Newsbase_Reply
16     wimp.hourglass_off()
17    
18     def quit():
19     "Tidy up before quitting"
20     Newsbase.quit()
21     for temp in MainW.temps:
22     os.system('Wipe ' + temp + ' ~CFR~V')
23     try:
24     os.rmdir('<Wimp$ScrapDir>.NewsStats')
25     except:
26     pass
27    
28     def Newsbase_Reply():
29     Newsbase.Reply()
30     Iconbar.update()

  ViewVC Help
Powered by ViewVC 1.1.26