Skip to content

Commit d07c661

Browse files
authored
Merge pull request #289 from eachimei/develop
Fix issue #288 (TypeError: '_fields_' must be a sequence of (name, C type) pairs)
2 parents 3028a43 + e1c4e42 commit d07c661

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

progressbar/terminal/os_specific/windows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class _COORD(ctypes.Structure):
5454

5555

5656
class _FOCUS_EVENT_RECORD(ctypes.Structure):
57-
_fields_ = ('bSetFocus', _BOOL)
57+
_fields_ = (('bSetFocus', _BOOL), )
5858

5959

6060
class _KEY_EVENT_RECORD(ctypes.Structure):
@@ -72,7 +72,7 @@ class _uchar(ctypes.Union):
7272

7373

7474
class _MENU_EVENT_RECORD(ctypes.Structure):
75-
_fields_ = ('dwCommandId', _UINT)
75+
_fields_ = (('dwCommandId', _UINT), )
7676

7777

7878
class _MOUSE_EVENT_RECORD(ctypes.Structure):
@@ -85,7 +85,7 @@ class _MOUSE_EVENT_RECORD(ctypes.Structure):
8585

8686

8787
class _WINDOW_BUFFER_SIZE_RECORD(ctypes.Structure):
88-
_fields_ = ('dwSize', _COORD)
88+
_fields_ = (('dwSize', _COORD), )
8989

9090

9191
class _INPUT_RECORD(ctypes.Structure):

0 commit comments

Comments
 (0)