diff options
author | 2023-10-12 11:04:55 +0530 | |
---|---|---|
committer | 2023-10-12 11:04:55 +0530 | |
commit | 61f6fb386e162ed2bdbd2f9351e7c220c898483f (patch) | |
tree | 4738bc805878d246cc6a9a3d600ab78e4da6b4c1 /extras | |
parent | db862e32df7f31e6453d7f05a6f011091b96ffab (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')
-rw-r--r-- | extras/UI_Handeler.py | 10 | ||||
-rw-r--r-- | extras/config.py | 4 |
2 files changed, 11 insertions, 3 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. diff --git a/extras/config.py b/extras/config.py index 2ea749c..3309b71 100644 --- a/extras/config.py +++ b/extras/config.py @@ -22,7 +22,7 @@ python_version = f"python{'.'.join(platform.python_version_tuple()[:2])}" CA = os.path.abspath(os.path.join(os.path.dirname(__file__), "../assets/cert/CA.pem")) KUKSA_CONFIG = { - "ip": '10.42.0.95', + "ip": '127.0.0.1', "port": "55555", 'protocol': 'grpc', 'insecure': False, @@ -31,4 +31,4 @@ KUKSA_CONFIG = { } WS_TOKEN = os.path.join(os.path.expanduser("~"), f".local/lib/{python_version}/site-packages/kuksa_certificates/jwt/super-admin.json.token") -GRPC_TOKEN = os.path.abspath(os.path.join(os.path.dirname(__file__), "../assets/token/grpc/actuate-provide-all.token"))
\ No newline at end of file +GRPC_TOKEN = os.path.abspath(os.path.join(os.path.dirname(__file__), "../assets/token/grpc/actuate-provide-all.token")) |