Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2001 21:28:37 -0400
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        Libh <freebsd-libh@freebsd.org>
Subject:   bug in Hui::run?
Message-ID:  <20011009212837.B603@shall.anarcat.dyndns.org>

next in thread | raw e-mail | index | archive | help

--KFztAG8eRSV9hGtP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Well well... I think I found some kind of a "bug", if I might say...

I am working on a tclh console. I have made a little textEdit field
where I paste code and a button labeled "eval". :)=20

I eval'd "source console.tcl" in the console. Another console popped up,
but the other is freezed! And a nice little message pops on stderr:

QApplication: There should be max one application object

:)

libh shouldn't allow ppl to create a second QApplication, we can't
expect them to "run" together.

So, to reproduce:

1- run "tclh console.tcl"
2- in the upleft field, type "source console.tcl"
3- hit the eval button

another console pops up and the original freezes.

I guess it's also a matter of "policy" wrt the lib. We could probably
just simply make a check in HuiQt::run(), I guess...

In tvision, it seems to be doing nothing, however, I think it's popping
another instance without complaining. I do not know how to navigate
through tv windows (eg how do I focus to the eval button when I finished
typing in the field?) so I cannot really test this.

BTW, I'm trying to get the "command field" and the eval button to be of
fixed size vertically, how can I do that? Another thing: how can I
trigger an event when the user types "enter" in an inputLine?

thanks,

A.

--KFztAG8eRSV9hGtP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvDpEMACgkQttcWHAnWiGeB+gCdFLged3aVWFJ1rTTRirDkUADK
WgQAnApKUrGi/TdF398nzn0w/bVKCjpN
=5ltC
-----END PGP SIGNATURE-----

--KFztAG8eRSV9hGtP--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011009212837.B603>