in reply to Re: pTk popup not returning value and not locking calling window
in thread pTk popup not returning value and not locking calling window
. . . at the end of the subroutine i havemy $ok_but = $bf->Button( -text => 'Continue', -width => 10, -command => sub { ($idx) = $list_box->curselection(); if ( defined $idx ){ $job = $jobs[$idx]; $mw->destroy(); } else { $mw->destroy(); } )->pack(-side => 'bottom', -padx => 10, -pady => 5);
I must be missing something very obvious or I've been looking at the code too long to see my mistake. Because it always returns 0 before I even click 'Continue'.$top->Mainloop(); return $job if defined $job; return 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jcwren) Re: (3) pTk popup not returning value and not locking calling window
by jcwren (Prior) on Oct 10, 2000 at 00:15 UTC | |
by el-moe (Scribe) on Oct 10, 2000 at 01:43 UTC |