aboutsummaryrefslogtreecommitdiffstats
path: root/extras/UI_Handeler.py
diff options
context:
space:
mode:
authorsuchinton2001 <suchinton.2001@gmail.com>2023-10-26 18:11:52 +0530
committersuchinton2001 <suchinton.2001@gmail.com>2023-10-26 19:39:05 +0530
commitbd1185376275b24ac00404c1f36c041e8ebb5e47 (patch)
tree8fe46cf8f19d33948ebcd073832ab45d8853ffdf /extras/UI_Handeler.py
parentae721f6bb4ed29f2b7f4a54dc4e0c583f5fc7e21 (diff)
agl-demo-control-panel: Add Fullscreen / maximized option
V1: - Add fullscreen flag in config.ini to hide the header bar and launch the control-center in fullscreen mode. V2: - Write default user-session config if not found in config.ini Bug-AGL: SPEC-4948 Signed-off-by: suchinton2001 <suchinton.2001@gmail.com> Change-Id: I549390711cdda95f99ee166d99c302176d105f1f
Diffstat (limited to 'extras/UI_Handeler.py')
-rw-r--r--extras/UI_Handeler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/UI_Handeler.py b/extras/UI_Handeler.py
index fa2c3a8..a44cf1a 100644
--- a/extras/UI_Handeler.py
+++ b/extras/UI_Handeler.py
@@ -32,6 +32,11 @@ block_subscription_updates = False
class UI_Handeler(MainWindow):
+ def fullscreen(self):
+ self.headerContainer.hide()
+ self.setAttribute(QtCore.Qt.WA_TranslucentBackground, False)
+ self.showFullScreen()
+
def display_sending_message(self):
print("message sent")