Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:PowerPC
python-pyqtgraph
py3114.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File py3114.patch of Package python-pyqtgraph
From 6534a3f51d97a5f51ad1ea284923beea5a9ec8be Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan <nixchuan@gmail.com> Date: Tue, 27 Jun 2023 21:32:50 +0800 Subject: [PATCH] xor away unwanted bit value --- pyqtgraph/graphicsItems/ROI.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/ROI.py b/pyqtgraph/graphicsItems/ROI.py index 53ab90806e..39fb143298 100644 --- a/pyqtgraph/graphicsItems/ROI.py +++ b/pyqtgraph/graphicsItems/ROI.py @@ -1542,7 +1542,13 @@ def mouseDragEvent(self, ev): if ev.isStart(): if ev.button() == QtCore.Qt.MouseButton.LeftButton: roi.setSelected(True) - mods = ev.modifiers() & ~self.snapModifier + mods = ev.modifiers() + try: + mods &= ~self.snapModifier + except ValueError: + # workaround bug in Python 3.11.4 that affects PyQt + if mods & self.snapModifier: + mods ^= self.snapModifier if roi.translatable and mods == self.translateModifier: self.dragMode = 'translate' elif roi.rotatable and mods == self.rotateModifier:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor