-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26cc469
commit 7376195
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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:[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): | ||
|