#!/usr/local/bin/perl -w use Tk; use Carp; $top = MainWindow->new(); $top->title("STest23289 test"); $SIG{'__DIE__'} = \&confess; # interface generated by SpecTcl version 1.0 from STest21872.ui # Experimental pTk version using the gridbag geometry manager sub STest23289_ui { my($root) = @_; # $root->grid; # stolen from npuz but does not help here my($text_1) = $root->Text ( -background => '#d9d9d9', -cursor => undef, -foreground => 'Black', -height => '1', -highlightbackground => '#d9d9d9', -width => '1' ); my($listbox_1) = $root->Listbox ( -background => '#d9d9d9', -foreground => 'Black', -height => '0', -highlightbackground => '#d9d9d9', -width => '0' ); my($message_1) = $root->Message ( -background => '#d9d9d9', -foreground => 'Black', -highlightbackground => '#d9d9d9', -text => 'message' ); # Geometry management $text_1->grid( -in => $root, -column => '2', -row => '1', -sticky => 'nesw' ); $listbox_1->grid( -in => $root, -column => '1', -row => '2', -sticky => 'nesw' ); $message_1->grid( -in => $root, -column => '2', -row => '3' ); # Resize behavior management $root->gridRowconfigure(1, -weight => 0, -minsize => 30); $root->gridRowconfigure(2, -weight => 0, -minsize => 30); $root->gridRowconfigure(3, -weight => 0, -minsize => 30); $root->gridColumnconfigure(1, -weight => 0, -minsize => 30); $root->gridColumnconfigure(2, -weight => 0, -minsize => 30); } STest23289_ui $top; Tk::MainLoop;