in reply to Re: How can I use the pack manager to divide space equally between two buttons?
in thread How can I use the pack manager to divide space equally between two buttons?
# dummy frame to contain buttons $self->{delete_frame}=$mw->Frame() ->pack(-expand => '1', -fill => 'both' ); # buttons $self->{delete_button}=$self->{delete_frame}->Button(-text=>'Delete' +,-command=>[ \&delete , $self ]) ->pack(-side=>'left', -expand => '1', -fill => 'both' ); $self->{undelete_button}=$self->{delete_frame}->Button(-text=>'Undel +ete',-command=>[ \&undelete , $self ]) ->pack(-side=>'right', -expand => '1', -fill => 'both' );
|
|---|