- #1
cpscdave
- 403
- 120
Happy Monday folks!
I've been working on a program where I need to change the GUI on the fly. Specifically I need to do 2 things.
This program pulls information from an RSS xml feed and displays it.
As information is added (or removed) from the RSS feed I need to add or remove the information from the GUI. I have written this right now to add little panel objects (which contain a static text), and when they are removed I call object.destroy() on them.
Secondly I'd like to set it up to inform the user that new information is available in some manner. I have set this up now to change the taskbar icon of the program back and forth basically causing a flashing.
Both of these events are triggered using Threading.timers
Now the big issue. The program runs great for a random amount of time and then messes up in one way or another.
With dealing with the Panels eventually the program will have the correct number of panels, but some of them will be missing their information (the static text appears blank)
With the flashing on linux it eventually throws an xwindows error and crashes, on windows the program stops responding to any further inputs.
Both timers don't actually make the changes, they acquire a thread lock shared through the entire program, queue up an event and return.
The event when handled sets up the subsequent timer. Based on that this isn't working I'm guessing that I'm not doing this in a the correct manner (obviously) any suggestions on how I should be doing this or what might be going on with the program??
thanks
I've been working on a program where I need to change the GUI on the fly. Specifically I need to do 2 things.
This program pulls information from an RSS xml feed and displays it.
As information is added (or removed) from the RSS feed I need to add or remove the information from the GUI. I have written this right now to add little panel objects (which contain a static text), and when they are removed I call object.destroy() on them.
Secondly I'd like to set it up to inform the user that new information is available in some manner. I have set this up now to change the taskbar icon of the program back and forth basically causing a flashing.
Both of these events are triggered using Threading.timers
Now the big issue. The program runs great for a random amount of time and then messes up in one way or another.
With dealing with the Panels eventually the program will have the correct number of panels, but some of them will be missing their information (the static text appears blank)
With the flashing on linux it eventually throws an xwindows error and crashes, on windows the program stops responding to any further inputs.
Both timers don't actually make the changes, they acquire a thread lock shared through the entire program, queue up an event and return.
The event when handled sets up the subsequent timer. Based on that this isn't working I'm guessing that I'm not doing this in a the correct manner (obviously) any suggestions on how I should be doing this or what might be going on with the program??
thanks