URL:
  <http://gna.org/bugs/?20823>

                 Summary: Binding "Color History popup" to button3 of stylus
causes exception
                 Project: MyPaint
            Submitted by: tigert
            Submitted on: Fri 17 May 2013 12:27:54 PM GMT
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.1.0+git
         Planned Release: None
        Operating System: Linux (Fedora 19)

    _______________________________________________________

Details:

I tried to set my GIT mypaint to behave like 1.0 did, by having a color
history popup on button3 of the stylus, as I found it nice.

However configuring this on 1.1+git causes an exception. My setup apparently
uses gtk3.

----------
Traceback (most recent call last):
  File "/home/tigert/Apps/share/mypaint/gui/document.py", line 77,
button_press_cb(self=<gui.document.Document object>, tdw=<TiledDrawWidget
object at 0x30000f0 (gui+tileddrawwidget+TiledDrawWidget at 0x2433120)>,
event=<void>)
            """
            result = self.modes.top.button_press_cb(tdw, event)
            self.__update_last_event_info(tdw, event)
  variables: {'event': ('local', <void at 0x6ffaa50>), 'tdw': ('local',
<TiledDrawWidget object at 0x30000f0 (gui+tileddrawwidget+TiledDrawWidget at
0x2433120)>), 'result': (None, []), 'self.modes.top.button_press_cb':
('local', <bound method SwitchableFreehandMode.button_press_cb of
<gui.canvasevent.SwitchableFreehandMode object at 0x2ffae50>>)}
  File "/home/tigert/Apps/share/mypaint/gui/canvasevent.py", line 582,
button_press_cb(self=<gui.canvasevent.SwitchableFreehandMode object>,
tdw=<TiledDrawWidget object at 0x30000f0 (gui+tileddrawwidget+TiledDrawWidget
at 0x2433120)>, event=<void>)
            if action_name is not None:
                return self._dispatch_named_action(None, tdw, event,
action_name)
  variables: {'None': ('builtin', None), 'action_name': ('local',
'ColorHistoryPopup'), 'tdw': ('local', <TiledDrawWidget object at 0x30000f0
(gui+tileddrawwidget+TiledDrawWidget at 0x2433120)>), 'event': ('local', <void
at 0x6ffaa50>), 'self._dispatch_named_action': ('local', <bound method
SwitchableFreehandMode._dispatch_named_action of
<gui.canvasevent.SwitchableFreehandMode object at 0x2ffae50>>)}
  File "/home/tigert/Apps/share/mypaint/gui/canvasevent.py", line 662,
_dispatch_named_action(self=<gui.canvasevent.SwitchableFreehandMode object>,
win=None, tdw=<TiledDrawWidget object at 0x30000f0
(gui+tileddrawwidget+TiledDrawWidget at 0x2433120)>, event=<void>,
action_name='ColorHistoryPopup')
                    # Pointer: popup states handle these themselves sanely.
                    handler.activate(event)
                    return True
  variables: {'handler.activate': ('local', <bound method State.activate of
<gui.stategroup.State instance at 0x347b5a8>>), 'event': ('local', <void at
0x6ffaa50>)}
  File "/home/tigert/Apps/share/mypaint/gui/stategroup.py", line 143,
activate(self=<gui.stategroup.State instance>, action_or_event=<void>)
                    # register for key release events, see keyboard.py
                    if a.keydown:
                        a.keyup_callback = self.keyup_cb
AttributeError: 'EventButton' object has no attribute 'keydown'
-----------




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20823>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to