aboutsummaryrefslogtreecommitdiffstats
path: root/extras/UI_Handeler.py
diff options
context:
space:
mode:
authorsuchinton2001 <suchinton.2001@gmail.com>2023-10-12 11:04:55 +0530
committersuchinton2001 <suchinton.2001@gmail.com>2023-10-12 11:04:55 +0530
commit61f6fb386e162ed2bdbd2f9351e7c220c898483f (patch)
tree4738bc805878d246cc6a9a3d600ab78e4da6b4c1 /extras/UI_Handeler.py
parentdb862e32df7f31e6453d7f05a6f011091b96ffab (diff)
agl-demo-control-panel: Add installation steps for debian/RPiOS
V1: - Fix window dragging event crash - Update dependencies in requirements.txt - Add installation instructions for Debian-based systems - Update Dashboard scaling of icons SPEC-4929 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I200f18606a6008780d2f4553052f24a9df5d10b7
Diffstat (limited to 'extras/UI_Handeler.py')
-rw-r--r--extras/UI_Handeler.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/extras/UI_Handeler.py b/extras/UI_Handeler.py
index cbbaefc..2bfcfc4 100644
--- a/extras/UI_Handeler.py
+++ b/extras/UI_Handeler.py
@@ -82,7 +82,15 @@ class UI_Handeler(MainWindow):
self.move(self.pos() + event.globalPos() - self.clickPosition)
self.clickPosition = event.globalPos()
event.accept()
-
+
+ def mousePressEvent(self, event):
+ self.clickPosition = event.globalPos()
+ event.accept()
+
+ def mouseReleaseEvent(self, event):
+ self.clickPosition = None
+ event.accept()
+
def set_instance(self):
"""
This method sets the instance of the Kuksa client.