M
matt
Hi - I'm trying to make `modal' windows. I'm confused about how to
use TkDialog, though, is there any good documentation? I need a
window that will not let someone go to the `parent' window, can
display stuff just like a TkToplevel or TkRoot...
My current solution is to make a TkToplevel with `parent' as the
parent object, and to use
parent.bind('FocusIn') {
begin
myTopLevel.focus
rescue Exception => e
end
}
and then #bind_remove later...
this is inelegant, and I can still click the x-close button on the
parent... I could redo the closing protocol for the parent, but this
seems an inelegant solution, and I'd have to reset it aftewards...
anyone got any ideas?
Thanks,
Me
use TkDialog, though, is there any good documentation? I need a
window that will not let someone go to the `parent' window, can
display stuff just like a TkToplevel or TkRoot...
My current solution is to make a TkToplevel with `parent' as the
parent object, and to use
parent.bind('FocusIn') {
begin
myTopLevel.focus
rescue Exception => e
end
}
and then #bind_remove later...
this is inelegant, and I can still click the x-close button on the
parent... I could redo the closing protocol for the parent, but this
seems an inelegant solution, and I'd have to reset it aftewards...
anyone got any ideas?
Thanks,
Me