[Bugs] #2426 UNSP: Can drag blocks off pallette

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Oct 8 02:45:38 EDT 2010


#2426: Can drag blocks off pallette
------------------------------------------+---------------------------------
    Reporter:  tonyforster                |          Owner:  walter                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Turtleart                  |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Status_field:  Unconfirmed                |   Distribution:  Unspecified                
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
 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()&gtk.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'

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2426>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list