in reply to Re^2: Tk gui bug
in thread Tk gui bug

It's not Perl...it's Tk mucking up, that's why I concentrate on Gtk2 now. :-) I was toying with it, using all the tricks I know, but no go. There is the -dynamicgeometry option for the NoteBook, and it seems to address the problem, but it has no effect. Usually with the Notebook, when it acts up from tab to tab, you need to set a -raisecmd option to adjust the geometry (like a $mw->update) when a tab is raised...but it dosn't work in this case.

I notice that you have alot of nested packing with anchors, and all the other packing options, that seem to be messing with the Scrolled Pane's scrollbars. To be honest, I would go back to the example I mentioned earlier, that dosn't crush the tabs, and try to work your data set into that model. Or switch to Gtk2. :-)


I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^4: Tk gui bug
by honyok (Sexton) on Feb 02, 2009 at 06:15 UTC
    In the midst of my preparation for hari-kari, I dropped the PACK from the following line and the problem ceased.
    my $tab_tab=$book->add("Sheet $tab_cnt", -label =>"$tab")->pack(-expan +d=>1,-fill=>'both');
    It's currently running as expected. Thank you for all your help. I'm sure I will be back... soon. -honyok
      Good catch..... of course you can't pack a page add....I regret not seeing that. The question now is "why didn't Tk throw an error"? It usually throws an error when a packing error occurs.

      I'm not really a human, but I play one on earth Remember How Lucky You Are
        Now, a few more challenges: The GUI is initiated from the command line. Should I alias the GUI's name to run it in the background so that the user keeps control? Also, do I run the programs from the GUI in the background also? AND,how does one tie STDERR to a MessageBox which pops up when there is an error? If you have some general ideas, I'd appreciate it. -HONYOK