From: Robert M. <rm...@po...> - 2006-05-16 19:53:28
|
All, On the plane last week I was struggling with something that I have been mulling over for a while - I want the samples/demos that we distribute to be more accessible. Tk has as whole demo framework that can run demos from a app that is installed as a script in the perl bin directory - and hence is more often than not on the users path (try typing 'widget' at your command prompt) I've knocked up a demo application that I think would be suitable (attached) - basically it finds the demos directory (based on the path of GUI.pm), reads in the demo files, displaying them in a tree-view, with a right hand panel that displays the source of the selected file, and a button to run the sample. If you've got a build directory for the latest code, drop the attached file into the root directory and run: perl -Mblib win32-gui-demos.pl to see what it does with the most recent current sample set (including the fixes I just committed). If you don't have a most recent CVS build, then just run it, and see if you have any of the samples installed - but note that some of them are broken. Is this a good thing to pursue? Suggestions for changes or alternative approaches welcome. A better name for the script would be good too! Regards, Rob. -- Robert May Win32::GUI, a perl extension for native Win32 applications http://perl-win32-gui.sourceforge.net/ |