Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import kivy
  2. from kivy.app import App
  3. from kivy.uix.label import Label
  4. from kivy.uix.gridlayout import GridLayout
  5. from kivy.uix.textinput import TextInput
  6. from kivy.uix.button import Button
  7. from kivy.uix.widget import Widget
  8.  
  9. class MyGrid(GridLayout):
  10. def __init__(self,**kwargs):
  11. super(MyGrid,self).__init__(**kwargs)
  12. self.cols=4
  13.  
  14. self.add_widget(Label(text="the text to encrypt"))
  15.  
  16. self.encrypted_txt = TextInput()
  17. self.add_widget(self.encrypted_txt)
  18.  
  19. self.decrypted_txt = TextInput()
  20. self.add_widget(self.decrypted_txt)
  21.  
  22. self.add_widget(Label(text="the decrypted text"))
  23.  
  24. class Myapp(App):
  25. def build(self):
  26. return MyGrid
  27.  
  28. if __name__ == "__main__":
  29. Myapp().run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement