Stuck on trying to update painting of an Attitude Indicator dial
Brought to you by:
rathmann
|
From: George V. <geo...@gm...> - 2019-05-13 19:37:22
|
I have been stuck for a week trying to finish an implimentation of an Attitude Indicator in PyQwt. It is derived from the original dial demo and the intent was to seperate it out, improve the graphics, and make a class that can be loaded into a frame from Designer. I don't know enough to make it an actual widget. It all works fine on the program initialization. After that I want to move the sliders (eventually IMU accellerometers) and update/repaint the screen. Using setValue on the dial will move the needle graphics but I can't find a way into the code to coordinate the sky graphics with it. 1) I've looked at update() but that seems to be related to Widgets and has no effect. 2) Tried to call into the "drawNeedle", "drawContents" routines directly but that seems convoluted since the arguments to be passed are allready determined. This approach ultimately results in "Painter not Active" errors. Also looked at paintEvents which I suspect may be the right approach but have not been able to get it to work either. I'm sure I'm missing some fundemental technique and I would appreciate any help with it. Thanks, *George W. Vogel* geo...@gm... |