For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2006 > problem with BWidgets 1.7/1.8 Dialog on mac









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author problem with BWidgets 1.7/1.8 Dialog on mac
John Droggitis

2006-01-24, 7:05 pm

Environment: MacOS 8.5a4 starpak, including Bwidgets 1.7 or 1.8
(problem happens with both versions). OS: Mac OS X 10.3.x and 10.4.x.

My application brings up a simple Dialog with 2 labelframes inside (the
tk labelframe, not the bwidget one). Each labelframe contains a bunch
of labels and read-only entries, which are arranged with grid. The
labelframes themselves are arranged with pack. The single dialog
button is supposed to dismiss the window. The Dialog has "local"
modality and its parent is the "." window (which is populated with
other widgets).

If the dismiss button calls "$dialog enddialog", nothing happens
(window stays up). If the dismiss button calls "destroy $dialog", an
error comes up that the window got destroyed while waiting for its
visibility to change (from "tkwait visibility" inside Dialog::draw).

This only happens on the mac version of the program. I also run it on
Linux where either version of the dismiss command brings the window
down without issues. On the mac, if I comment out the "tkwait
visibility" command inside dialog.tcl, it behaves properly, but I'm not
sure what I'm missing with that line commented out.

Interestingly, many other similar dialogs behave ok, so it's something
with this specific combination of items (and environment) that seems to
cause the problem. Unfortunately I don't have access to a mac and
can't experiment too much to narrow it down - the beauty of starpaks is
that you can create them on any platform!

Any comments? Has anyone else experienced this? TIA.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com