Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

advanced wxPerl example, please.

by ngomong (Sexton)
on Dec 02, 2003 at 20:57 UTC ( [id://311739]=perlquestion: print w/replies, xml ) Need Help??

ngomong has asked for the wisdom of the Perl Monks concerning the following question:

I'm currently moving into the world of GUI's. I'm taking a script which, previously, derived its behavior from command-line switches.

What I'd like to do, now, is create a wizard of sorts. The first pane would determine the content of the second pane.

For example, let's say my first pane has two options:
1) Create user
2) Create multiple users

Clicking the "next" button would then lead to a new pane, the contents of which would depend on which choice they made. Either:
1) text inputs for each user field (id, name, pwd) _or_
2) a file selection dialog, to import a csv file of users.

Does anybody have some example code for this type of "wizard" behavior? I'm just not sure how to start creating the "paths."

Or, if you have any advanced programs that use wxPerl, I'd love to see them. I've got a stack of utilities that I need to make a bit more "user-friendly." Thanks!

Replies are listed 'Best First'.
Re: advanced wxPerl example, please.
by Jouke (Curate) on Jan 09, 2004 at 08:41 UTC
    If you take a good look at the wxWindows API documentation, you'll find a wxWizard class. This class is implemented in wxPerl, so it should work (and if I recall correctly, in the demo package you can download from wxperl.sf.net there's an example of this).
    I never used it myself, so I can't write an example from the top of my head...


    Jouke Visser, Perl 'Adept'
    Using Perl to help the disabled: pVoice and pStory

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://311739]
Approved by rob_au
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-29 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found