Tkdialog wrapper problem

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! :frowning:

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? :slight_smile:

Bye,
Ferenc

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? :slight_smile:

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&r2=1.9

Does it satisfy you? :slight_smile:

                              Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

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? :slight_smile:

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&r2=1.9

Does it satisfy you? :slight_smile:

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

Ferenc

Hi,

···

From: Ferenc Engard ferenc@engard.hu
Subject: Re: tkdialog wrapper problem
Date: Sun, 16 Nov 2003 09:08:19 +0900
Message-ID: 3FB6BFF4.D376B047@engard.hu

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

Please tell me the incompatible case.
Because I want to keep upper compatibility as far as I can.

                              Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)