Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001635graphvizDotpublic2009-07-03 14:042011-04-28 04:03
ReporterHariharan Sandanagobalane 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-RHEL5OS Version
Summary0001635: Bindings dont seem to work with tcldot 2.24.0
Description



Bindings for dot rendered rectangles dont seem to work, while bindings for dot-rendered ellipses seem to work okay.



If i hover over the rectange on first example, nothing happens.
If i hover over the ellipses on second one, it prints the message, as expected.



I am using TclTk 8.5.3
Tcldot libraries built from graphviz 2.24.0



Failure example.
<CD>
toplevel .me
ttk::frame .me.f
set f .me.f
canvas .me.f.cvs
set cvs .me.f.cvs
set thegraph [dotnew digraph]
$thegraph addnode "Node1" shape rectangle color blue
$thegraph addnode "Node2" shape rectangle color green
eval [$thegraph render $cvs dot]
foreach item [$cvs find all] {
  $cvs bind $item <Enter> "puts \"entered\""
}
pack $cvs
pack $f
</CD>






Working example



<CD>
toplevel .me
ttk::frame .me.f
set f .me.f
canvas .me.f.cvs
set cvs .me.f.cvs
set thegraph [dotnew digraph]
$thegraph addnode "Node1" shape ellipse color blue
$thegraph addnode "Node2" shape ellipse color green
eval [$thegraph render $cvs dot]
foreach item [$cvs find all] {
  $cvs bind $item <Enter> "puts \"entered\""
}
pack $cvs
pack $f
Steps To Reproduce

toplevel .me
ttk::frame .me.f
set f .me.f
canvas .me.f.cvs
set cvs .me.f.cvs
set thegraph [dotnew digraph]
$thegraph addnode "Node1" shape rectangle color blue
$thegraph addnode "Node2" shape rectangle color green
eval [$thegraph render $cvs dot]
foreach item [$cvs find all] {
  $cvs bind $item <Enter> "puts \"entered\""
}
pack $cvs
pack $f
</CD>
Additional Information

[ellson]
Thanks for he report. Weird. For some reason I was generating "-state disabled" for most objects.
I have no recollection where this came from. Anyway, I removed them from all objects. Change is in CVS. Should be in tomorrow's snapshot.

If you don't want to use or wait for a snapshot build, you can work around the problem with:

    $cvs itemconfigure $item -state normal

as the first statement in your foreach loop.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1682
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (3 July 2009)
VERSION     2.24.0
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker