Parent Directory
|
Revision Log
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 |