Follow-up Comment #2, bug #20400 (project mypaint):

That's two errors, but the second is caused by the first.

For the original one, what version of PyGTK are you running? This should work
fine with 2.24.0, and you should be able to do all of


$ python
>>> import gtk
>>> from gtk import gdk
>>> gdk.ModifierType(gdk.MOD1_MASK)
<flags GDK_MOD1_MASK of type GdkModifierType>
>>> gtk.accelerator_name(0, gdk.ModifierType(gdk.MOD1_MASK))
'<Alt>'
>>> gtk.accelerator_name(67, gdk.ModifierType(gdk.MODIFIER_MASK))
'<Release><Primary><Shift><Alt><Mod2><Mod3><Mod4><Mod5><Meta><Hyper><Super>c'
>>> gtk.accelerator_name(67, gdk.ModifierType(0))
>>> 


without problems. Let me know if and where any of the >>>s fail :)

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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