Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Tk gui bug

by honyok (Sexton)
on Jan 30, 2009 at 17:49 UTC ( [id://740251]=note: print w/replies, xml ) Need Help??


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

The perl works in mysterious ways!?!?

Replies are listed 'Best First'.
Re^3: Tk gui bug
by zentara (Archbishop) on Jan 30, 2009 at 18:06 UTC
    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
      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://740251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found