Skip to content

Commit

Permalink
fix feedback screen UI
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Oct 4, 2018
1 parent 26cc469 commit 7376195
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions eventsapp/uix/screens/screenfeedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ class ScreenFeedback(Screen):
<ScreenFeedback>
name: 'ScreenFeedback'
talk: ''
ScrollView
id: main
BoxLayout
padding: '9dp'
spacing: '9dp'
orientation: 'vertical'
ScrollGrid
padding: '9dp'
spacing: '9dp'
Expand Down Expand Up @@ -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
Expand All @@ -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:[email protected]?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:[email protected]?Subject=TalkFeedback&body" +\
"={}".format("\\n\\n".join((rating, title, detailed_description\
, name, ticketid))))
''')

def on_pre_enter(self):
Expand Down

0 comments on commit 7376195

Please sign in to comment.