-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_engine.py
More file actions
35 lines (26 loc) · 981 Bytes
/
push_engine.py
File metadata and controls
35 lines (26 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
'''
Created on Jul 11, 2018
@author: rg012f
'''
from PySide import QtCore,QtGui
import os
import time
import datetime
import threading
from service_network.device_wheels.CommandProcessor import CommandProcessor
from service_network.device_wheels.MyProgressBar import MyProgressBar
from views.push_window.push_window import PushWindow
class PushEngine:
quit_flag = False
def __init__(self,common_model,last_parent):
self.common_model = common_model
self.signalcount = 0
self.threadPool = QtCore.QThreadPool()
self.lock = threading.Lock()
self.threadPool.setMaxThreadCount(1)
self.last_parent = last_parent
self.progress = MyProgressBar( len(self.common_model.final_ip_list))
self.push_window = PushWindow(last_parent)
def start_push_engine(self):
print("yo reached here")
self.push_window.prepare_window()