So I am trying to add a GUI to the program that stresses servers. I have the basic skeleton program written but i am stuck at the most important part, the GUI control. This is my first 'real' GUI and i'm open to LOTS of suggestions. Sorry for the long code but it works (windows)! I had this quazi working but I later found that the updates were just going on top of the original row and ran out of allowed elements. So here is what the program does:
Thread 1: Discovers systems and adds them to a queue to be processed
Thread 2: Finds details about the discovered systems and creates the XML structure for that system
Thread 3: Starts threaded tests from a queue populated by the GUI
GUI: Addes a row of info/buttons from Thread 2's queue. User can update the system info (real life must enter serial number before starting) and adjust test parameters. User will 'start' the system.
Problems:
When the ctr_1 button is clicked it should update the system status, disable user input for that system, start the test, not too hard but need the correct way. ctr_1 and 2 buttons change values/state on this action. Later user can pause/cancel(stop) a test.
#hardest problem
When a test is complete it needs to update the GUI with the progress. If the system state changes from 'running' (executing tests) to 'paused' or 'stopped' the ctr_1 and 2 buttons should change state/values to reflect this change.
I cannot save the row of GUI objects to the system's XML data. Making updating difficult.
I hope there is somebody that understands what i am trying to do... this does work when it was done wrong!
perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x64-multi-thread
In reply to Advanced GUI with threads -working by glenn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |