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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I enable a button?

Status
Not open for further replies.

FishingIwishIwas

Technical User
Jun 16, 2006
5
US
I setup a button with a dis-able state initially:

$Bt_Done = $Frame->Button(-text => 'Done',
-state => 'disabled'
...)

and want to enable it later in another routine but I couldn't figure out the way to do that:

$Bt_Done->state = enabled; #This doesn't work
$Bt_Done->state => enabled; #This doesn't work either

What's the right way?
Thanks!





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top