You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since qtpy>=2.4, the shortcut= kwarg on QMenu.add_action() isn't working.
TypeError: add_action() got an unexpected keyword argument 'shortcut'
I notice that this method is now wrapped in a partial like this:
> qmenu.addAction
functools.partial(<bound method add_action of <PyQt5.QtWidgets.QMenu object at 0x00000158E93FBD90>>, old_add_action=<built-in function addAction>)
while in qtpy==2.3.0,
> qmenu.addaction
<function QMenu.addAction>
I haven't traced this further, but hopefully that's a start.
The text was updated successfully, but these errors were encountered:
Hi @ronpandolfi thank you for the feedback! Indeed we started wrapping the addAction method at some point to provide better compatibility between bindings. Could it be possible for you to check if installing QtPy from the latest master helps with the issue you are experiencing? Maybe this could be related with some fixes already merged that were done at #461 and that will be available when we release QtPy 2.4.2
Any other info is greatly appreciated, let us know!
Since
qtpy>=2.4
, theshortcut=
kwarg onQMenu.add_action()
isn't working.I notice that this method is now wrapped in a partial like this:
while in
qtpy==2.3.0
,I haven't traced this further, but hopefully that's a start.
The text was updated successfully, but these errors were encountered: