diff --git a/hikyuu/gui/HikyuuTDX.py b/hikyuu/gui/HikyuuTDX.py index a6347efc..2ebd32ae 100644 --- a/hikyuu/gui/HikyuuTDX.py +++ b/hikyuu/gui/HikyuuTDX.py @@ -716,8 +716,6 @@ class MyMainWindow(QMainWindow, Ui_MainWindow): @pyqtSlot() def on_start_import_pushButton_clicked(self): - if not self._is_sched_import_running: - self.sched_import_pushButton.setEnabled(False) config = self.getCurrentConfig() dest_dir = config.get('hdf5', 'dir') if not os.path.exists(dest_dir) or not os.path.isdir(dest_dir): @@ -758,7 +756,7 @@ class MyMainWindow(QMainWindow, Ui_MainWindow): self.sched_import_pushButton.setText("启动定时导入") self.sched_import_thread.terminate() self.sched_import_thread.wait() - self.logger.info("已停止定时采集") + self.logger.info("已停止定时导入") self.sched_import_thread = None self.sched_import_pushButton.setEnabled(True) self.start_import_pushButton.setEnabled(True) diff --git a/hikyuu/gui/data/ImportWeightToSqliteTask.py b/hikyuu/gui/data/ImportWeightToSqliteTask.py index c533e15e..ef18042c 100644 --- a/hikyuu/gui/data/ImportWeightToSqliteTask.py +++ b/hikyuu/gui/data/ImportWeightToSqliteTask.py @@ -114,10 +114,12 @@ class ImportWeightToSqliteTask: api = TdxHq_API() api.connect(hosts[0][2], hosts[0][3]) + self.logger.info('正在导入权息数据') self.queue.put([self.msg_name, '正在导入权息数据...', 0, 0, 0]) total_count = pytdx_import_weight(api, connect, "SH") total_count += pytdx_import_weight(api, connect, "SZ") self.queue.put([self.msg_name, '导入权息数据完毕!', 0, 0, total_count]) + self.logger.info('导入权息数据完毕') #self.queue.put([self.msg_name, '下载通达信财务信息(上证)...', 0, 0, 0]) #x = pytdx_import_finance(connect, api, "SH") diff --git a/hikyuu/gui/data/MainWindow.py b/hikyuu/gui/data/MainWindow.py index c7d9f1a9..a2fa6112 100644 --- a/hikyuu/gui/data/MainWindow.py +++ b/hikyuu/gui/data/MainWindow.py @@ -675,9 +675,9 @@ class Ui_MainWindow(object): "
\n" "注:
\n" "1、行情采集服务仅对预加载数据有效,在行情采集服务运行期间,hikyuu运行时将自动连接采集服务获取行情数据,并更新预加载的内容数据。
\n" +"1、行情采集服务仅对预加载数据有效,在行情采集服务运行期间,hikyuu.interactive运行时将自动连接采集服务获取行情数据,并更新预加载的内容数据。
\n" "2、如使用芝麻代理(http://h.zhimaruanjian.com/),请自行申请,并确保ip为其白名单