Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Button Size in Perl/Tk

Status
Not open for further replies.

pbatt

Programmer
Joined
Sep 21, 2005
Messages
15
Location
US
Hi,

I have some buttons that I would like to make SMALLER than the default size of a button in Perl/Tk and found the option for -width and -height, however, that is only to make the button larger. I've tried decimals, and negative numbers but nothing seems to work to shrink the buttons. Any ideas?

Thanks!
 
Code:
# use a small font
$font="-b&h-lucidabright-medium-r-normal--8-80-75-75-p-45-iso8859-1";
use Tk;
$mw=tkinit;
$b=$mw->Button(-font=>$font,-text=>"Hello")->pack;
MainLoop;

Kordaff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top