Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import kivy
- from kivy.app import App
- from kivy.uix.label import Label
- from kivy.uix.gridlayout import GridLayout
- from kivy.uix.textinput import TextInput
- from kivy.uix.button import Button
- from kivy.uix.widget import Widget
- class MyGrid(GridLayout):
- def __init__(self,**kwargs):
- super(MyGrid,self).__init__(**kwargs)
- self.cols=4
- self.add_widget(Label(text="the text to encrypt"))
- self.encrypted_txt = TextInput()
- self.add_widget(self.encrypted_txt)
- self.decrypted_txt = TextInput()
- self.add_widget(self.decrypted_txt)
- self.add_widget(Label(text="the decrypted text"))
- class Myapp(App):
- def build(self):
- return MyGrid
- if __name__ == "__main__":
- Myapp().run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement