-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
一、修复同花顺“刷新” 改为模拟点击工具栏“刷新”按钮。 二、去除对win32gui的引用 1)将所有对SetForegroundWindow, ShowWindow, win32defines的引用全部集中到easytrader.utils.win_gui 2)win_gui.py中,删除对win32gui的引用,改为对pywinauto的引用。(若引用pywinauto有问题,则可以把注释掉的对win32gui的引用瞬间恢复起来)。
- Loading branch information
Showing
5 changed files
with
52 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# coding:utf-8 | ||
import win32gui | ||
|
||
|
||
def SetForegroundWindow(hwd): | ||
win32gui.SetForegroundWindow(hwd._as_parameter_) | ||
|
||
|
||
def ShowWindow(hwd, window_status): | ||
win32gui.ShowWindow(hwd._as_parameter_, window_status) | ||
from pywinauto import win32defines | ||
from pywinauto.win32functions import SetForegroundWindow, ShowWindow | ||
|
||
# import win32gui | ||
# | ||
# | ||
# def SetForegroundWindow(hwd): | ||
# win32gui.SetForegroundWindow(hwd._as_parameter_) | ||
# | ||
# | ||
# def ShowWindow(hwd, window_status): | ||
# win32gui.ShowWindow(hwd._as_parameter_, window_status) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ requests==2.19.1 | |
six==1.11.0 | ||
urllib3==1.23; python_version != '3.1.*' | ||
werkzeug==0.14.1 | ||
win32gui | ||
|