<s> from kivy . app import App <EOL> from kivy . uix . boxlayout import BoxLayout <EOL> from kivy . uix . button import Button <EOL> from kivy . lang import Builder <EOL> from kivy . properties import StringProperty <EOL> from plyer import sms <EOL> Builder . load_string ( '''<STR_LIT>''' ) <EOL> class SmsInterface ( BoxLayout ) : <EOL> pass <EOL> class IntentButton ( Button ) : <EOL> sms_recipient = StringProperty ( ) <EOL> sms_message = StringProperty ( ) <EOL> def send_sms ( self , * args ) : <EOL> sms . send ( recipient = self . sms_recipient , message = self . sms_message ) <EOL> class SmsApp ( App ) : <EOL> def build ( self ) : <EOL> return SmsInterface ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> SmsApp ( ) . run ( ) </s>
