#6009 NORM Never A: remapping square and check to zoom in and zoom out

Zarro Boogs per Child bugtracker at laptop.org
Mon Jan 14 19:59:21 EST 2008


#6009: remapping square and check to zoom in and zoom out
----------------------------+-----------------------------------------------
  Reporter:  braingram      |       Owner:  rwh           
      Type:  enhancement    |      Status:  new           
  Priority:  normal         |   Milestone:  Never Assigned
 Component:  read-activity  |     Version:                
Resolution:                 |    Keywords:                
  Verified:  0              |    Blocking:                
 Blockedby:                 |  
----------------------------+-----------------------------------------------

Comment(by braingram):

 looks like adding a graphical toggle is pretty straight forward, add the
 following to readtoolbar:
 import sugar.graphics.toggletoolbutton as ToggleToolButton
 and add the following ~ line 260 in the init function of ViewToolbar

 {{{
 self._remap_buttons = ToggleToolButton
 self._remap_buttons.set_tooltip(_(Remap Game Buttons))
 self.insert(self._remap_buttons, -1)
 self._remap_buttons.show()
 }}}
 and edit the _key_press_event_cb in readactivity.py to contain the
 following
 {{{
 if self._view_toolbar._remap_buttons.get_active():
   # check for KP_Home and KP_End buttons as described above
 }}}
 all that's left is to make an icon, I was thinking a picture of the
 gamepad buttons with a magnifying glass around them, I'll see if I can get
 to it tomorrow

-- 
Ticket URL: <http://dev.laptop.org/ticket/6009#comment:1>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list