THANKS! That was awfully close to my desired goal.
Inside of:
You have:sub Populate { ... }
Why isnt it ' -textvariable => \$tv, ' ?my $entry = $frame -> Entry( -textvariable => $tv, # NOTE ) -> pack(-fill => 'x');
When I call widgets inside of DialogBox I do:
Why the disconnect/inconsistancy ? I totally dont get this difference.GUIask ( -textvariable => \$input, )
#######################################
Inside of
you have:sub Populate { }
Shouldnt the label be inside the frame (and colored blue) ? Because I am not seeing that; this is something I want.my $label = $frame -> Label ( -fg => 'blue', -font => 30 ) -> pack(-fill => 'x' );
If I click on the main window, and move it, my widget gets covered up.
SEE: Writing my first PERL/Tk megawidgit
This mega-widget does not do that. Why? (Also another Q by me). This mega-widget stuff is new to me.
It would be nice to have some comments, to make this code more understandable like the
Entry( -textvariable => $tv, ) -> pack(-fill => 'x');
block above. (why its not \$tv )
2022-02-23 Athanasius added code and paragraph tags.
In reply to Re^2: Building an adaptable 'Entry Widget'
by Anonymous Monk
in thread Building an adaptable 'Entry Widget'
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |