Ticket #635 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

KeyError while opening the Toolbar

Reported by: Kilian] Owned by: FIFE
Priority: high Milestone: 0.3.4
Component: tools/editor Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Time planned:
Time remaining: Time spent:


 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/fife_timer.py", line 125, in updateEvent
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/tools.py", line 83, in real_callback
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/events.py", line 164, in delayed_f
    f( event )
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/events.py", line 327, in captured_f
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/tools.py", line 60, in applyOnlySuitable
    return func(*args,**kwargs)
 File "/home/kili/Repositories/FIFE/trunk/tools/editor/scripts/gui/action.py", line 53, in activate
 File "/home/kili/Repositories/FIFE/trunk/tools/editor/scripts/events/signal.py", line 186, in send
    response = pychan.tools.applyOnlySuitable(receiver, signal=self, sender=sender, **named)
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/tools.py", line 60, in applyOnlySuitable
    return func(*args,**kwargs)
 File "/home/kili/Repositories/FIFE/trunk/tools/editor/scripts/editor.py", line 264, in toggleToolbar
 File "/home/kili/Repositories/FIFE/trunk/tools/editor/scripts/gui/panel.py", line 97, in setDocked
 File "/home/kili/Repositories/FIFE/trunk/tools/editor/scripts/gui/panel.py", line 162, in hide
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/widgets/widget.py", line 327, in hide
 File "/home/kili/Repositories/FIFE/trunk/engine/python/fife/extensions/pychan/internal.py", line 106, in hide
    del self.allWidgets[ widget ]
 File "/usr/lib/python2.7/weakref.py", line 253, in __delitem__
    del self.data[ref(key)]
 KeyError: <weakref at 0x162c0a8; to 'ToolBar' at 0x16294d0>

Change History

comment:1 Changed 6 years ago by prock

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

(In [3834]) * Fixed the show/hide of the toolbar and toolbox (which suffered from the same problem) in the editor.

Some problems still exist with the toolbars. When undocking a toolbar it cuts of the bottom half of the icons/buttons which gets fixed if you hide and show the toolbar.

Another issue is the orientation of the toolbar gets set and saved to either horizontal or vertical based on which dockarea to attach it to. This may not be the desired outcome.

and closes #635

Note: See TracTickets for help on using tickets.