Re: [Incrtcl-users] porting GDB's "insight" to itk-3.3
by Jeff Hobbs other posts by this author
Jun 26 2007 3:40PM messages near this date
Re: [Incrtcl-users] porting GDB's "insight" to itk-3.3
|
[Incrtcl-users] itcl 3.4 source base ready
Mikhail T. wrote:
> Jeff Hobbs wrote:
> > 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?
> Iwidgets-4.0.1
>
> The error stems from the following. The menu entry is created with the
> following line:
>
> $Menu add menubutton file "File" 0 -postcommand [code $this _post file]
>
> "$this" is the culprit somehow -- it is the name of the widget (?),
> which has sub-commands, but there is no command matching itself.
>
> _post is a private method of this itcl::class (formerly itcl_class)
> named SrcBar:
>
> itcl::class SrcBar {
> inherit itk::Widget GDBEventHandler
> [....]
That would be the proper way to call a protected method (maybe you want
protected instead of private?). In addition, try using itcl::code
instead of just 'code', because it may be a scoping conflict with
another method named 'code'.
--
Jeff Hobbs, The Tcl Guy, http://www.ActiveState.com/
-------------------------------------------------------------------------
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
|