|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
perl/tk toplevel windows
Hi,
Im new to tk... I have a toplevel window that is created whenever you click a button in my menubar. I want to have it such that only one window opens, no matter how many times you click on its parent button... is there a tk method that does this? thanks jerm |
|
#2
|
|||
|
|||
|
Code:
if(! Exists($tl)){
$tl = $mw ->Toplevel();
$tl ->title("UrToplevel");
}
else {
$tl->deiconify();
$tl->raise();
}
hope this helps. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > perl/tk toplevel windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|