ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> incrtcl-users
incrtcl-users
Re: [Incrtcl-users] porting GDB's "insight" to itk-3.3
by Jeff Hobbs other posts by this author
Jun 22 2007 10:34AM messages near this date
[Incrtcl-users] use of Itcl C-level interfaces | Re: [Incrtcl-users] porting GDB's "insight" to itk-3.3
Hi Mikhail,

I've redirected to the list I think has most relevance for your project.

The simple error you display below doesn't really ring any bells.  I 
don't recall significant compat issues with the minor version upgrades. 
  What version of iwidgets are you using?

If you had a source base that ran on top of ActiveTcl, then it might 
help others in debugging (I know that ActiveTcl doesn't have a FreeBSD 
port, but at least something equivalent to what AT ships).

In addition, please note that itcl 3.4 is sitting in CVS just waiting 
for the equivalent of 'make dist'.  It should be 100% compatible.

Regards,

Jeff

Mikhail Teterin wrote:
>  Hello!
>  
>  As you may know, gdb has a GUI front-end called "insight". The GUI is
>  written using itk/itcl, but the code is expecting version 3.2.1 (from
>  2001).
>  
>  To port Insight to FreeBSD, I'd like to fix it to use the itk-3.3
>  syntax, so that the insight port can rely on the already existing
>  port of itk (which installs the 3.3).
>  
>  I alredy did a bunch of s/itcl_foo/itcl::foo/ replacements, but
>  there appear to have been some changes to the widgets as well. The
>  following is a typical error-stack:
>  
>  invalid command name "::.srcwin0.srcwin.container.pane0.childsite.con"
>      while executing
>  "::.srcwin0.srcwin.container.pane0.childsite.con _post file"
>      (in namespace inscope "::SrcBar" script line 1)
>      invoked from within
>  "namespace inscope ::SrcBar {::.srcwin0.srcwin.container.pane0.childsite.con _post file}"
>      invoked from within
>  "{.srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m.#srcwin0#srcwin#contain
er#pane0#childsite#con#menubar#m#file} post 41 69"
>      invoked from within
>  "$menu postcascade active"
>      (procedure "tk::MenuButtonDown" line 8)
>      invoked from within
>  "tk::MenuButtonDown .srcwin0.#srcwin0#srcwin#container#pane0#childsite#con#menubar#m"
>      (command bound to event)errorCode is NONE
>  
>  Now, having attacked a TkCon console to the gdbtk interpreter, I can
>  see, that, indeed, the ....con does not exist as a command, but a whole
>  lot of its children does exist:
>  
>  % info comm ::.srcwin0.srcwin.container.pane0.childsite.con.*
>  ::.srcwin0.srcwin.container.pane0.childsite.con.menubar ::.srcwin0.srcwin.container.pane0.
childsite.con.menubar.m.run ::.srcwin0.srcwin.container.pane0.childsite.con.toolbar.t ::.src
win0.srcwin.container.pane0.childsite.con.toolbar ::.srcwin0.srcwin.container.pane0.childsit
e.con.menubar.m.view ::.srcwin0.srcwin.container.pane0.childsite.con.toolbar.t.stop ::.srcwi
n0.srcwin.container.pane0.childsite.con.toolbar-itk_hull ::.srcwin0.srcwin.container.pane0.c
hildsite.con.menubar-itk_hull ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m.pref
.adv ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m.cntrl ::.srcwin0.srcwin.conta
iner.pane0.childsite.con.menubar.m.plugin ::.srcwin0.srcwin.container.pane0.childsite.con.me
nubar.m ::.srcwin0.srcwin.container.pane0.childsite.con.menubar.m._help ::.srcwin0.srcwin.co
ntainer.pane0.childsite.con.menubar.m.file ::.srcwin0.srcwin.container.pane0.childsite.con.m
enubar.m.pref ::.srcwin0.srcwin.container.pane0.childsite.con.menubar
.m.pref.use_cs
>  
>  How should the insight's script be modified to work properly with itk-3.3?
>  
>  Thanks!
>  
>  	-mi


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Incrtcl-users mailing list
Incrtcl-users@[...].net
https://lists.sourceforge.net/lists/listinfo/incrtcl-users
Thread:
Jeff Hobbs
Jeff Hobbs
Jeff Hobbs

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved