From owner-freebsd-libh Tue Oct 9 18:28:38 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id 7046B37B407 for ; Tue, 9 Oct 2001 18:28:34 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010012833.NUJJ10438.tomts12-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Tue, 9 Oct 2001 21:28:33 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id E776419FC for ; Tue, 9 Oct 2001 21:28:28 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 6538920C07; Tue, 9 Oct 2001 21:28:38 -0400 (EDT) Date: Tue, 9 Oct 2001 21:28:37 -0400 From: The Anarcat To: Libh Subject: bug in Hui::run? Message-ID: <20011009212837.B603@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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