Skip to content

Commit

Permalink
Merge pull request #289 from eachimei/develop
Browse files Browse the repository at this point in the history
Fix issue #288 (TypeError: '_fields_' must be a sequence of (name, C type) pairs)
  • Loading branch information
wolph authored Dec 18, 2023
2 parents 3028a43 + e1c4e42 commit d07c661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions progressbar/terminal/os_specific/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _COORD(ctypes.Structure):


class _FOCUS_EVENT_RECORD(ctypes.Structure):
_fields_ = ('bSetFocus', _BOOL)
_fields_ = (('bSetFocus', _BOOL), )


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


class _MENU_EVENT_RECORD(ctypes.Structure):
_fields_ = ('dwCommandId', _UINT)
_fields_ = (('dwCommandId', _UINT), )


class _MOUSE_EVENT_RECORD(ctypes.Structure):
Expand All @@ -85,7 +85,7 @@ class _MOUSE_EVENT_RECORD(ctypes.Structure):


class _WINDOW_BUFFER_SIZE_RECORD(ctypes.Structure):
_fields_ = ('dwSize', _COORD)
_fields_ = (('dwSize', _COORD), )


class _INPUT_RECORD(ctypes.Structure):
Expand Down

0 comments on commit d07c661

Please sign in to comment.