Just as with the Ocemp GUI, upgrading this library mandated some changes to the example script, just to get back to where I was. Whereas Ocemp GUI changed the API, PGU just changed some defaults, but it still resulted in a display that wrote all over itself, with all labels and other widgets oversized.


The necessary correction involved creating a new theme (copy of default), and editing the theme config file to reduce all the font sizes (from 16 to 12, and 14 to 11). There were a couple of other positioning tweaks required that seem to have been bugs in my previous example version. After these changes, the example looked more or less like the previously published version.

PGU now has image maps and progress bars, so the example now uses those widgets. The only feature my original example included that is still not supported is the toggle button, and that is a trivial omission, as check-boxes are a fully functional equivalent. Disabling fields was only incompletely implemented in the prior version, but is there now. There is no observable superficial difference in the look of the disabled buttons and the others, but the disabled ones are correctly indifferent to mouse action.**

The PGU example script is no longer a single file, as it needs the theme subdirectory, and the image map image file.

The documentation has been substantially improved since my previous usage of PGU, but still lags the code somewhat. Image maps, for example, are only documented via an example (Example 15) in the distribution.

**The references to disabling widgets have been changed, as my original post of this message incorrectly reported that the disabling did not function. My coding of the disabling was buggy.

The code will be in the next post, or attached below.