Re: Pashua Aqua Dialogue GUI
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Gary Blackburn) wrote: I've downloaded it and checked out the Perl example; there's two parts, a Pashua binary and a Pashua.pm module. Put Pashua.pm in @INC somewhere and the Pashua binary in your OS X Applications folder and you're in business. Data from the dialogue box appears in a Perl hash as a return value from the module's run method. Nifty. The topic of creating Aqua interfaces comes up on this list all the time, and I know there's Camelbones and TK, but this seems like it'd be a good choice for small programs because it's just stupid-simple. Oh yeah, and it's freeware. Disclaimer: I have no connection with the product or the programmer. I just think it's cool! :-) Enjoy! I have no connection either, but I did a quick review of the Perl code in Pashua.pm on this list a couple of weeks ago: [EMAIL PROTECTED] -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Development Network[EMAIL PROTECTED] http://osdn.com/
Pashua Aqua Dialogue GUI
Saw a link to Pashua (http://q41.de/downloads/pashua_en/) at Macintouch today and thought you all might be interested. Pashua is an easy way to bolt on Aqua-native dialogue boxes to a bunch of languages including Perl. From the website; Pashua ist a tool for creating simple, but native Aqua GUIs for Perl, PHP, Python, shell scripts and AppleScript. Simple means: It's limited to dialog windows, and the number of different GUI widgets available is currently limited to text input fields, password input fields, checkboxes, radiobuttons, popup menus, combo boxes, separator lines, open / save panels, text, as well as buttons. Values returned by the dialog are processed and used to set variables in the calling script. I've downloaded it and checked out the Perl example; there's two parts, a Pashua binary and a Pashua.pm module. Put Pashua.pm in @INC somewhere and the Pashua binary in your OS X Applications folder and you're in business. Data from the dialogue box appears in a Perl hash as a return value from the module's run method. Nifty. The topic of creating Aqua interfaces comes up on this list all the time, and I know there's Camelbones and TK, but this seems like it'd be a good choice for small programs because it's just stupid-simple. Oh yeah, and it's freeware. Disclaimer: I have no connection with the product or the programmer. I just think it's cool! :-) Enjoy! --- Gary Blackburn [EMAIL PROTECTED]
Pashua
Saw this on Ranchero's RSS feed this morning (they didn't write it, just linked to it): http://q41.de/downloads/pashua_en/ Just a quick notice of what it is, and a short first-glance review of how it interacts with Perl: It's an app to create dialog boxes from Perl, PHP, Python, tcsh, and AppleScript, it says. Really, it just reads a configuration file from the filesystem and displays the dialog via that, runs the app on the command line and gets the results back via the app's STDOUT. It's not very smart; it is named Pashua.pm (should be Mac::Pashua or something IMO); it doesn't local()ize its filehandle; it does not use a smart way of finding the application from the Perl code (it looks in a few known paths, instead of using something like LSFindApplicationForInfo in Mac::Processes); it doesn't cache the path once it finds it (even for a single running process); it names the configuration file based on a timestamp (better not run two scripts that use it at the same time!). But the Perl code is simple and you could rewrite it if you wanted to, with a better name, File::Temp, and LSFindApplicationForInfo(), etc. Even AppleScript talks to Pashua via the command line, so you can't use Mac::Glue or something to talk to it. The app is not AppleScriptable. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Development Network[EMAIL PROTECTED] http://osdn.com/