enthought / enthought/traitsui

QEvent.Type error seen on Windows 10 + Python 3.8 + PyQt6 backend

Open
#1,926 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

While testing the latest `trauitsUI` on Python 3.8 using the `PyQt6` backend (all provided via EDM), I see the following traceback (truncated to just the part with the relevant line):

```
...

_QT_TRAITS_EVENT = QtCore.QEvent.Type(QtCore.QEvent.registerEventType())
File "C:\Users\\.edm\envs\\lib\enum.py", line 339, in __call__
return cls.__new__(cls, value)
File "C:\Users\\.edm\envs\\lib\enum.py", line 663, in __new__
raise ve_exc
ValueError: 65534 is not a valid Type
```

The above stems from this line in `traitsui`: https://github.com/enthought/traitsui/blob/main/traitsui/qt4/toolkit.py#L49

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.