[問題] perl/TK 元件大小怎麼設都會不一樣大!

看板Perl作者 (無)時間19年前 (2006/06/08 16:26), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
程式如下, 已經有設ipadx ipady了, 為什麼四個button 還是不一樣大? #!/usr/bin/perl -w use Tk; use strict; my $mw = MainWindow->new; $mw->title("tsk converter"); $mw->Button(-text => "TOP", -command => sub { exit }) ->pack(-side => 'top',-ipadx => "15",-ipady => "5",-padx => "3" ,-pady => "3",-fill => 'none'); $mw->Button(-text => "BOTTOM",-command => sub { exit }) ->pack(-side => 'bottom' ,-ipadx=> "15",-ipady => "5",-padx => "3" ,-pady => "3", -fill => 'none'); $mw->Button(-text => "RIGHT", -command => sub { exit }) ->pack(-side => 'right' ,-ipadx => "15",-ipady => "5",-padx => "3" ,-pady => "3", -fill => 'none'); $mw->Button(-text => "LEFT", -command => sub { exit }) ->pack(-side => 'left' ,-ipadx => "15",-ipady => "5",-padx => "3" ,-pady => "3", -fill => 'none'); MainLoop; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.68.183.170
文章代碼(AID): #14XzyuB7 (Perl)
文章代碼(AID): #14XzyuB7 (Perl)