Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
604ea494
Commit
604ea494
authored
Mar 25, 2014
by
Luke Campagnola
Browse files
Fix for colorama bug:
https://code.google.com/p/colorama/issues/detail?id=47
parent
2ce6196a
Changes
1
Show whitespace changes
Inline
Side-by-side
pyqtgraph/util/colorama/win32.py
View file @
604ea494
...
...
@@ -12,7 +12,7 @@ except ImportError:
SetConsoleTextAttribute
=
lambda
*
_
:
None
else
:
from
ctypes
import
(
byref
,
Structure
,
c_char
,
c_short
,
c_uint32
,
c_ushort
,
POINTER
byref
,
Structure
,
c_char
,
c_short
,
c_int
,
c_uint32
,
c_ushort
,
c_void_p
,
POINTER
)
class
CONSOLE_SCREEN_BUFFER_INFO
(
Structure
):
...
...
@@ -42,7 +42,8 @@ else:
_GetConsoleScreenBufferInfo
=
windll
.
kernel32
.
GetConsoleScreenBufferInfo
_GetConsoleScreenBufferInfo
.
argtypes
=
[
wintypes
.
HANDLE
,
POINTER
(
CONSOLE_SCREEN_BUFFER_INFO
),
c_void_p
,
#POINTER(CONSOLE_SCREEN_BUFFER_INFO),
]
_GetConsoleScreenBufferInfo
.
restype
=
wintypes
.
BOOL
...
...
@@ -56,7 +57,8 @@ else:
_SetConsoleCursorPosition
=
windll
.
kernel32
.
SetConsoleCursorPosition
_SetConsoleCursorPosition
.
argtypes
=
[
wintypes
.
HANDLE
,
wintypes
.
_COORD
,
c_int
,
#wintypes._COORD,
]
_SetConsoleCursorPosition
.
restype
=
wintypes
.
BOOL
...
...
@@ -75,7 +77,8 @@ else:
wintypes
.
HANDLE
,
wintypes
.
WORD
,
wintypes
.
DWORD
,
wintypes
.
_COORD
,
c_int
,
#wintypes._COORD,
POINTER
(
wintypes
.
DWORD
),
]
_FillConsoleOutputAttribute
.
restype
=
wintypes
.
BOOL
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment