Jul 8, 2015, 6:06 PM
Post #3 of 5
I think I got it working.
Re: [FishMonger] how to display a message box without halting the program
[In reply to]
Unfortunately, I had to have the user click a "Load Data" button to display the message, load the data and remove the message.
I tried putting the code into the mainloop and have the data automatically load at startup but it did not work.
Also, there is a bug in PERL and I could not get the text to appear inside the box so I had to put the message in the title.
Anyway, here is the code for others to look at.
# Make a message window
$top1 = $mw->Toplevel;
$top1->title("Message: Loading data, please wait...");
$top1->Label(-text => "Loading data, please wait...")->pack(-side => 'left'); # Bug in PERL, message does not get displayed
$top1->raise($mw); # Display window
$top1->withdraw; # Hide window