guibuilder does not starts correctly

Posted by milarepa on 2011-03-18 10:47 need tbcload 1.6 but only tbcload 1.7 is supplied.

ActiveTcl8. + teacup update-self + teacup update

Best regars,

ActiveState Staff
Fri, 2011-03-18 12:46

Can you elaborate on what error you actually encounter? tbcload 1.7 will load and support tbcload 1.6 package needs.

milarepa | Sat, 2011-03-19 02:08

Difficult to say more at the moment, as the splash windows started at guilbuilder's startup is on top, not movable (centered on the screen) and is fully masking the error message window, whose size is smaller than the splash size ...
Any idea to recover the error message ?
I tried to start in tkcon, but without having the source code, I don't know variable names and so on.

May be tkinspect could help ?

Best regards

milarepa | Sat, 2011-03-19 02:28

I have just teacup update with some interesting updates regarding our issue :

Installing application base-tcl linux-glibc2.3-ix86
Installing application base-tcl-thread linux-glibc2.3-ix86
Installing application base-tk linux-glibc2.3-ix86
Installing application base-tk-thread linux-glibc2.3-ix86
Installing application guibuilder linux-glibc2.3-ix86
Installing application teacup linux-glibc2.3-ix86
Installing package critcl tcl
Installing package tdbc 1.0b16 linux-glibc2.3-ix86
Installing package wcb 3.4 tcl

I agree with you, tbcload 1.7 should be compatible with 1.6 :

package require tbcload 1.6 returns 1.7 as expected, with no problem ...

Here follow what happens when launching guibuilder directly from a shell :

/opt/ActiveTcl-8.5/lib/teapot/application/linux-glibc2.3-ix86/teapot/ The TclPro ByteCode Loader is not available or does not support the correct version -- can't find package tbcload 1.6
while executing
"source [file join $starkit::topdir ms.tcl]"
(file "/opt/ActiveTcl-8.5/lib/teapot/application/linux-glibc2.3-ix86/teapot/" line 3)
invoked from within
"source /opt/ActiveTcl-8.5/lib/teapot/application/linux-glibc2.3-ix86/teapot/"
("uplevel" body line 1)
invoked from within
"uplevel [list source [file join $self main.tcl]]"

If I now source the updated guibuilder version under tkcon, the error message windows is a bit visible and can be moved.

Here follow the message content :
bad window path name ".bgerrorDialog"
bad window path name ".bgerrorDialog"
while executing
"grab status $Priv(oldGrab)"
(procedure "SaveGrabInfo" line 5)
invoked from within
"SaveGrabInfo $menu"
(procedure "tk::MenuButtonDown" line 33)
invoked from within
"tk::MenuButtonDown .#mbar"
(command bound to event)


milarepa | Sat, 2011-03-19 11:09

I finally found a way to unhide the error msgbox at OS level
Here is msgbox detailed content :

Initialization error:
unknown option "-activebackground"
unknown option "-activebackground"
while executing
"$path cget $realopt"
(procedure "cget" line 21)
invoked from within
"cget $path $option"
(procedure "_get_configure" line 31)
invoked from within
"_get_configure $path $options"
(procedure "Widget::configure" line 4)
invoked from within
"Widget::configure $path $args"
(procedure "Button::configure" line 10)
invoked from within
"Button::configure .__validatorButton"
("eval" body line 1)
invoked from within
"eval [linsert $args 0 Button::$cmd .__validatorButton]"
(procedure ".__validatorButton" line 1)
invoked from within
"$w configure"
(procedure "::widget::inherit" line 64)
invoked from within
"::widget::inherit tcl $group $cmd """
(procedure "::widget::init_BWidget" line 23)
invoked from within
(procedure "::widget::init" line 116)
invoked from within
(procedure "::main::init" line 85)
invoked from within
"::main::init . $::argc $::argv"

ActiveState Staff
Sat, 2011-03-19 11:15

So what we actually have here is a startup error in the gui builder trying to initialize BWidget widget options. The tbcload part is a red herring. Not sure where the BWidget part is going wrong, but it has had recent updates that might not be compatible with the older gui builder code. In particular, it has started to use themed widgets which have fewer real options in place of styles.

milarepa | Mon, 2011-03-28 07:03

So is there anything to do to be able to use guibuilder now ?
Is there any correction planned to ActiveTcl community edition ?
Best regards

ActiveState Staff
Mon, 2011-03-28 12:30

This is a bug in guibuilder, not ActiveTcl, and guibuilder is just conveniently made available via the teapot. There are no plans to address this for ActiveTcl CE. GUI Builder is an open source project at if you wish to look at fixing the code.

vldmaster99 | Fri, 2011-10-28 23:42

Has any got GUI builder working on windows if so what os and what version of TCL / Tk /bWidgets etc thanks for any replys