Ticket #2426 (closed defect: fixed)
Can drag blocks off pallette
| Reported by: | tonyforster | Owned by: | walter |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | Turtleart | Version: | Unspecified |
| Severity: | Unspecified | Keywords: | |
| Cc: | rgs | Distribution/OS: | Unspecified |
| Bug Status: | Unconfirmed |
Description
OS15 XO1 TA99
Click a block on the pallette (do not drag) then press the cursor keys or H J K L, can drag the blocks off the pallette.
Presumably this is a buggy side effect of intentional block and stack keyboard shortcuts? If so, it should be documented in the wiki? Why also H J K L? Is it a useful shortcut if you still need the mouse to select them?
Also in the process managed to create some phantom blocks on the canvas (real blocks not pallette creators) which give errors if you try to drag them:
Traceback (most recent call last):
File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py", line 743, in _buttonpress_cb
self.button_press(event.get_state()>k.gdk.CONTROL_MASK, x, y)
File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py", line 771, in button_press
self._block_pressed(x, y, blk)
File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py", line 965, in _block_pressed
self._disconnect(blk)
File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py", line 1693, in _disconnect
c = blk2.connections.index(blk)
AttributeError: 'NoneType' object has no attribute 'index'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gtk-2.0/gobject/init.py", line 101, in obj_set_property
prop.setter(self, value)
File "/usr/lib/python2.7/site-packages/sugar/activity/activity.py", line 412, in set_active
self.save()
File "/usr/lib/python2.7/site-packages/sugar/activity/activity.py", line 657, in save
self.write_file(file_path)
File "/home/olpc/Activities/TurtleArt.activity/TurtleArtActivity.py", line 1019, in write_file
data_to_file(self.tw.assemble_data_to_save(), file_path)
File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tawindow.py", line 2306, in assemble_data_to_save
connections = [get_id(_cblk) for _cblk in _blk.connections]
File "/home/olpc/Activities/TurtleArt.activity/TurtleArt/tautils.py", line 116, in get_id
return connection.id
AttributeError: Block instance has no attribute 'id'

