Utilities/AutoSaver.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
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

eric ide

mercurial