Ticket #1342 (closed bug: fixed)

Opened 11 months ago

Last modified 11 months ago

Bug in widgetscheme

Reported by: miha Owned by: ales
Milestone: Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:



node_for_widget is function but is called many times as a dict. Error:

TypeError Traceback (most recent call last):

File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/scheme/widgetsscheme.py", line 789, in call


File "/Users/miha/Library/Python/2.7/lib/python/site-packages/Orange_Network-0.3.0-py2.7.egg/orangecontrib/network/widgets/OWNxExplorer.py", line 630, in send_marked_nodes

"Marked Items", None)) > 0:

File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/scheme/widgetsscheme.py", line 633, in getLinks

source_node = scheme.node_for_widget[widgetFrom]

TypeError: 'instancemethod' object is not subscriptable

The same will probably happen for widget_for_node.

Change History

comment:1 Changed 11 months ago by Ales Erjavec <ales.erjavec@…>

  • Status changed from new to closed
  • Resolution set to fixed

In [312265a59fcc9ef8661ac31a3b2a02798560f264/orange]:

Fixed use of 'node_for_widget' method.

(fixes #1342)

Note: See TracTickets for help on using tickets.