What GUI toolkit are you using?
It should be as simple as positioning frame2 inside grid1
(maybe with requirement to create frame2 as child of frame1) | [reply] |
Hi,
I am trying to create an UI in windows application (by Tk module) widgets aligned using grid concept.
I have tried to create combobox, listbox, textbox, label in a grid G1. Now in the grid G1, I have to create a LabelFrame (F1) and inside F1 I have align 4 checkboxes, a textbox and combo box, one below the other.
In order to use it, I want to use a grid inside that LabelFrame(F1).
What should I do for this?
Regards,
SUman
| [reply] |
| [reply] |
#!/usr/bin/perl --
use warnings;
use strict;
use Tk;
my $mw = tkinit;
my $topframe = $mw->Frame(-bg=>'yellow')->grid( -row => 2, -column =>
+2 );
$topframe->Button( -text => "But 0 0")->grid( -row => 0, -column => 0
+);
$topframe->Button( -text => "But 1 1")->grid( -row => 1, -column => 1
+);
my $other = $topframe->Frame(-bg=>'red')->grid( -row => 2, -column =>
+0 );
$other->Button( -text => "Oth 0 0")->grid( -row => 0, -column => 0 );
$other->Button( -text => "Oth 1 1")->grid( -row => 1, -column => 1 );
$other->Button( -text => "Oth 2 0")->grid( -row => 2, -column => 0 );
$mw->MainLoop;
Perl/Tk Visual Editor for Win32?, Perl/Tk WYSIWYG, New Perl/TK Editor, Creating Tk Applications Graphically, A technique to create GUI design for Perl application using vtcl,
ZooZ.pl, vptk, Visual Tcl, Guido, specPerl | [reply] [d/l] |