Mar 17, 2014, 12:24 AM
Post #2 of 3
After more thought, what does everyone think of this idea?
Re: [PapaGeek] Perl Tk width and height of string.
[In reply to]
Create a “fake” window that contains all of the widgets that I plan to use throughout the other windows, buttons, labels, date entries, etc.
Use this window to get the geometry of the widgets and then do a $window->withdraw(); and never display the window.
When I get to a real window and have a list of buttons that I want to be the same size I can just get the maximum width and height of the widgets in the list and use that as the geometry for all of them.
What does everyone think of creating a fake window for this reason?
(This post was edited by PapaGeek on Mar 17, 2014, 12:25 AM)