[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

tkdialog wrapper problem

Ferenc Engard

11/13/2003 11:36:00 PM

Hi all,

As many of my messages are sent to the newgroup, and didn't reach the
mailing list, I repost them. Sorry if some of you have seen them
already.

The TkDialog's constructor do not accept a parent widget, as every other
TkWindow descendant do (through TkWindow's constructor).

This is a problem, as it seems that if I have multiple toplevels, and
show a dialog, the dialog's parent widget (currently, always '.') will
be raised. So, showing a dialog from a form will raise another form! :-(

Maybe, for backward compatibility (but not for sanity), the parent could
be TkDialog.initialize()'s 2nd, optional argument? Or should I complain
on the tcl list? :)

Bye,
Ferenc


3 Answers

Hidetoshi NAGAI

11/14/2003 5:15:00 AM

0

Ferenc Engard

11/16/2003 12:08:00 AM

0

Hidetoshi NAGAI wrote:
>
> Hi,
>
> From: Ferenc Engard <ferenc@engard.hu>
> Subject: tkdialog wrapper problem
> Date: Fri, 14 Nov 2003 08:35:50 +0900
> Message-ID: <3FB41553.7176C587@engard.hu>
> > The TkDialog's constructor do not accept a parent widget, as every other
> > TkWindow descendant do (through TkWindow's constructor).
> (snip)
> > Maybe, for backward compatibility (but not for sanity), the parent could
> > be TkDialog.initialize()'s 2nd, optional argument? Or should I complain
> > on the tcl list? :)
>
> Thank you for your report.
> I edited tkdialog.rb and committed.
>
> http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ext/tk/lib/tkdialog.rb?cvsroot=src&r1=1.8&...
>
> Does it satisfy you? :-)

By all means, thanks a lot! :-))) Anyway, it look like a bit
incompatible from the previous version. Isn't it dissatisfy some people?

Ferenc


Hidetoshi NAGAI

11/17/2003 3:44:00 AM

0