hytos / DTI_PID / DTI_PID / Commands / AutoSaveCommand.py @ 22913e4b
이력 | 보기 | 이력해설 | 다운로드 (543 Bytes)
1 |
# coding: utf-8
|
---|---|
2 |
""" This is SaveWork command module """
|
3 |
import os.path |
4 |
import sys |
5 |
from enum import Enum |
6 |
from PyQt5.QtCore import * |
7 |
from SingletonInstance import SingletonInstance |
8 |
|
9 |
|
10 |
class AutoSaveCommand(SingletonInstance): |
11 |
display_message = pyqtSignal(Enum, str)
|
12 |
show_progress = pyqtSignal(int)
|
13 |
|
14 |
def __init__(self, interval=60000): |
15 |
self._interval = interval
|
16 |
|
17 |
self.timer = QTimer()
|
18 |
self.timer.timeout.connect(self.save) |
19 |
self.timer.start(interval)
|
20 |
|
21 |
def save(self): |
22 |
"""save"""
|
23 |
pass
|