-
Notifications
You must be signed in to change notification settings - Fork 44
/
Fuct_QThreadUI.py
49 lines (40 loc) · 1.34 KB
/
Fuct_QThreadUI.py
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
from PyQt5.QtCore import *
import Fuct_LocalData
import Fuct_Limit
"""
UI功能函数
"""
##########################################################################
class QPushButton_cRankStocks_clicked(QThread):
"""
龙虎榜数据
"""
log_signal = pyqtSignal(str)
def __init__(self, date, parent=None):
super(QPushButton_cRankStocks_clicked, self).__init__(parent)
self.date = date
self.header = "RankList"
def __del__(self):
self.working = False
def run(self):
DataList = Fuct_LocalData.RankList_Data(self.date)
self.emit(QtCore.SIGNAL("SIGNAL_QPushButton_cRankStocks"), self.header, DataList)
##########################################################################
class QPushButton_cLimit_clicked(QThread):
"""
涨停预测数据
"""
log_signal = pyqtSignal(str)
def __init__(self, date, parent=None):
super(QPushButton_cLimit_clicked, self).__init__(parent)
self.date = date
self.header = "Limit"
def __del__(self):
self.working = False
def run(self):
# self.date "2017-06-28 15:00"
mySpider = Fuct_Limit.SDU_Spider(self.date)
mySpider.FindPage()
DataList = mySpider.Data_List
self.emit(QtCore.SIGNAL("SIGNAL_QPushButton_cLimit"), self.header, DataList)