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

Call back after destroy

Status
Not open for further replies.

csudess

Technical User
Apr 1, 2010
14
HU
How could i call back to my button when i have destryed that

$button=$mw->Button(-text=>'OK',
-width=>'25',
-font=>"$textstyle 10",
-command=>sub{$button->destroy()});
$button->pack();
$button->place(-x =>100,-y=>340);


here is my button and i would like to use another button to call back this button, how could i get that? Thank u afurther for ur answer
 
Hello,

Can you explain in more detail what you are trying to achieve. Maybe you want to put your 1st button in a subroutine, then call the subroutine with your 2nd button like -command=>sub{callbutton1()} .

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top