1

我有这个问题。

我已经解决了,但它是否适用于大型应用程序(将来:)?

#!/usr/bin/perl

use strict;
use warnings;

use lib '.';
use MyApp;
use LoginFrame;

my $f = LoginFrame->new;
$f->ShowModal;
if(int($f->GetReturnCode)) {
    print '['.$f->GetReturnCode."]\n";
    $f->Destroy;

    my $app = new MyApp;
    $app->MainLoop;

} else {
    print "PLEASE NOT THIS CRAP AGAIN!!!\n";
    print '['.$f->GetReturnCode."]\n";
}
4

1 回答 1

0

“在有顶级窗口之前,(主)循环不会终止。”

于 2013-01-04T13:47:28.927 回答