Pyxel edit crashes upon cursor entering with EXC_BAD_ACCESS (SIGBUS)
I'm having trouble running the Pyxel editor. The UI is correctly displayed as long as the cursor stays outside the window bounds, and the program crashes the moment the cursor enters.

I am using the system-provided Python 3.9, and used the following commands:
```
sudo python3 -m pip install -U pyxel
pyxel edit test.pyxres
```

Here is the full crash report:
[crash-report.txt](https://github.com/kitao/pyxel/files/13624504/crash-report.txt)
