Please accept my advance apologies if it is bad form to repost my unanswered mailing list question here.
…
I’ve been working on a front-end for an automated vendor, which runs on the raspberry pi 4 and a 10.5" touchscreen from Eyoyo. All the hardware seems to perform flawlessly.
The piece of the front end I’m working on provides an opportunity to capture a signature from the end-user, which is to be made on the touchscreen.
I’ve been working from the very excellent ‘doodle.py’ at https://wxpython.org/presentations/OSCON2006/examples/doodle.py. This code works fine, but see additional detail.
I’ve stripped it down a little (I don’t need the menus, and also need only one brush size and color), and integrated it, and it seems to be trying to work, but…
…that’s not actually the issue, but rather an observation I’ve made while troubleshooting my own code:
I added a bit of instrumentation, of the most basic sort; a simple ‘print()’ method call to display the name of all callable methods in the script. I’ve done this to both my code and the doodle code, in the interest of a parallel trace to track down the issues in my own code.
What I’m seeing is the event callback method for ‘wx.EVT_SIZE’ being called repeatedly.
The problem is, no resizing of the window is taking place.
Either I’m missing something here, or that event should not be firing.
Does anyone have any ideas? This could possibly impinge on the issue I’m having, as it is not possible to resize the window in question, and so I have no such bindings or event callback methods in my script.
Does anyone have an idea what’s going on? tangential but peripheral question: does my code need such a callback method stubbed out with a ‘pass’ statement?
Thanks in advance, and stay safe out there!
Cheers,
James
ADDENDUM:
This morning I added the wx.EVT_SIZE binding and event callback method from doodle.py into my own code, and now it no longer renders the widgets in the frame (or out of it, afaict). Interestingly my code is also firing wx.EVT_SIZE, which makes no sense as my window style precludes any sizing of the window whatsoever.