Changes between Initial Version and Version 1 of Ticket #2481, comment 2


Ignore:
Timestamp:
Oct 7, 2019, 11:40:14 AM (6 years ago)
Author:
Eric Pettersen

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2481, comment 2

    initial v1  
    55The 'no "button" attribute' error occurs in this code:
    66
    7 elif etype == QtCore.QEvent.MouseButtonRelease and event.button() QtCore.Qt.MidButton and ...
     7elif etype == QtCore.QEvent.MouseButtonRelease and event.button() == QtCore.Qt.MidButton and ...
    88
    99So, an event of type MouseButtonRelease doesn't have a .button() attribute?