Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: WxPerl Login Dialog

by PodMaster (Abbot)
on Sep 11, 2003 at 01:51 UTC ( [id://290577]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: WxPerl Login Dialog
in thread WxPerl Login Dialog

If ShowModal returns true, the app hangs...
That's because you've turned control over to wxWindows, but there is nothing telling the app to die (basically, you need to $app->SetTopWindow($dialog) if you want the application to exit when the window is destroyed).

but I still think returning false from OnInit should be perfectly valid.
I'd say I agree with you (even though I've never had the need/urge to do that), but I suspect there might be a real good reason for this (a carp would be fine with me -- you should definetly inquire on the list).

update: I almost forgot, it's called wxPerl, not WxPerl ;)

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Re: Re: WxPerl Login Dialog
by Jouke (Curate) on Sep 11, 2003 at 05:52 UTC
    There is a perfectly good situation when you want OnInit to return false imho. I use it myself in pVoice, where I use the SingleInstanceChecker. If there is already another copy of pVoice running, I let OnInit return false, so the application dies.

    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: note [id://290577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-24 10:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found