7 Module implementing an auto saver class. |
7 Module implementing an auto saver class. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import QObject, QBasicTimer, QTime |
10 from PyQt4.QtCore import QObject, QBasicTimer, QTime |
11 |
11 |
|
12 |
12 class AutoSaver(QObject): |
13 class AutoSaver(QObject): |
13 """ |
14 """ |
14 Class implementing the auto saver. |
15 Class implementing the auto saver. |
15 """ |
16 """ |
16 AUTOSAVE_IN = 1000 * 3 |
17 AUTOSAVE_IN = 1000 * 3 |
17 MAXWAIT = 1000 * 15 |
18 MAXWAIT = 1000 * 15 |
18 |
19 |
19 def __init__(self, parent, save): |
20 def __init__(self, parent, save): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |