From 7aac991c4fb35180b276c308121ec41d924bd054 Mon Sep 17 00:00:00 2001 From: surbhi Date: Thu, 5 Jul 2018 19:15:18 +0530 Subject: [PATCH] Changes made on UI for Desktop and Mobile Clients --- src/main.kv | 11 +++++++++++ src/mpybit.py | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main.kv b/src/main.kv index 8ea56c6b..f3228fdf 100644 --- a/src/main.kv +++ b/src/main.kv @@ -1,16 +1,27 @@ +: + font_size: 26 : + padding: 200 + spacing: 10 + rows:2 + BoxLayout: AnchorLayout: TextInput: id: user_input + font_size: 65 + hint_text: "enter text" BoxLayout: + spacing: 10 Button: + background_color: (1.0, 2.0, 8.0, 1.0) id: sendmessage text: 'SendMessage' on_press: root.send() Button: + background_color: (1.0, 2.0, 8.0, 1.0) id: btnExit text: "Exit" on_press: root.sayexit() diff --git a/src/mpybit.py b/src/mpybit.py index f2e422dc..b40c7cee 100644 --- a/src/mpybit.py +++ b/src/mpybit.py @@ -10,7 +10,8 @@ from helper_sql import sqlExecute from kivy.app import App from kivy.core.window import Window -from kivy.uix.boxlayout import BoxLayout +# from kivy.uix.boxlayout import BoxLayout +from kivy.uix.gridlayout import GridLayout import queues @@ -18,7 +19,7 @@ import shutdown statusIconColor = 'red' -class LoginScreen(BoxLayout): +class LoginScreen(GridLayout): """This will use for sending message to recipents from mobile client.""" def send(self):