Hi
I would be really grateful for some help with a desktop app I am writing.
I've tried to capture what I'm doing in a small example program.
My basic requirements are:
1) Display a simple schematic diagram of boxes connected by arrowed lines.
2) Each box contains one or more led indicators that indicate an alarm state (flashing red / steady green led) and a numeric value; these indicate realtime values of a system
3) I want to be able to 'dim' (i.e. disable) some of the graphical elements, according to the realtime state of the system
Each box is defined by class CMyBox. The led indicator widget is defined by class CMyIndicator,which contains two Labels: one for drawing the led on, the other for the numeric value.
You'll see that I have done some of the graphics in Python. This goes against the 'graphics -> kv' rule, but I think its justified because I need the graphics to be dynamic.
Here are the problems I am having:
1) At main.py line 47, I should clear the canvas but that erases my boxes that are drawn in kv.
2) My 'led' circle doesn't appear. And how could I address it by id and change it's colour easily?
3) The boxes contain an identical number of CMyIndicator objects and they are all the same. How can I dynamically assign CMyIndicator objects to CMyBox objects, and address each one?
Quite complicated, I know. Any help would be much appreciated.
Best regards
David