From 73761954f08395d405b18f9f8b7591df4e474794 Mon Sep 17 00:00:00 2001 From: akshayaurora Date: Thu, 4 Oct 2018 20:45:54 +0530 Subject: [PATCH] fix feedback screen UI --- eventsapp/uix/screens/screenfeedback.py | 44 ++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/eventsapp/uix/screens/screenfeedback.py b/eventsapp/uix/screens/screenfeedback.py index eef1833..eabf9dc 100644 --- a/eventsapp/uix/screens/screenfeedback.py +++ b/eventsapp/uix/screens/screenfeedback.py @@ -7,8 +7,10 @@ class ScreenFeedback(Screen): name: 'ScreenFeedback' talk: '' - ScrollView - id: main + BoxLayout + padding: '9dp' + spacing: '9dp' + orientation: 'vertical' ScrollGrid padding: '9dp' spacing: '9dp' @@ -37,11 +39,6 @@ class ScreenFeedback(Screen): border_horizontal: 0, 0, 0, 0 min: 0 max: 10 - TextInput: - id: ti_description - size_hint_y: None - height: dp(220) - hint_text: 'Enter detailed feedback here...' TextInput: id: ti_name size_hint_y: None @@ -52,21 +49,24 @@ class ScreenFeedback(Screen): size_hint_y: None height: dp(45) hint_text: 'Your Ticket ID...' - ActiveButton - text: 'Submit' - size_hint_y: None - height: dp(45) - on_released: - rating = '{} out of {}'.format(sldr.value, sldr.max) - title = 'Title: ' + root.talk - detailed_description = "Description:" + ti_description.text - name = "Name: " + ti_name.text - ticketid = "Ticketid: " + ti_ticketid.text - import webbrowser - webbrowser.open(\ - "mailto:feedback@in.pycon.org?Subject=TalkFeedback&body" +\ - "={}".format("\\n\\n".join((rating, title, detailed_description\ - , name, ticketid)))) + TextInput: + id: ti_description + hint_text: 'Enter detailed feedback here...' + ActiveButton + text: 'Submit' + size_hint_y: None + height: dp(45) + on_released: + rating = '{} out of {}'.format(sldr.value, sldr.max) + title = 'Title: ' + root.talk + detailed_description = "Description:" + ti_description.text + name = "Name: " + ti_name.text + ticketid = "Ticketid: " + ti_ticketid.text + import webbrowser + webbrowser.open(\ + "mailto:feedback@in.pycon.org?Subject=TalkFeedback&body" +\ + "={}".format("\\n\\n".join((rating, title, detailed_description\ + , name, ticketid)))) ''') def on_pre_enter(self):