def _get_item(self, item_id):
        """Return the current value of an item in the dialog.
        """
        hwnd = wrapped(win32gui.GetDlgItem, self.hwnd, item_id)
        class_name = wrapped(win32gui.GetClassName, hwnd)
        if class_name == "Edit":
          value = wrapped(win32gui.GetDlgItemText, self.hwnd, item_id)
          if isinstance(value, unicode):
            return value
          else:
            return value.decode("mbcs")
        elif class_name == "Button":
            return bool(SendMessage(hwnd, win32con.BM_GETCHECK, 0, 0))
        elif class_name == "ComboBox":
            field, default, callback = self.fields[item_id - self.IDC_FIELD_BASE]
            return default[SendMessage(hwnd, win32con.CB_GETCURSEL, 0, 0)]
        elif class_name == "Static":
            return None
        else:
            raise RuntimeError(class_name % "Unknown class: %s")
dataset/ETHPy150Open tjguk/winsys/winsys/dialogs.py/Dialog._get_item/swapped operands of `%`