Advertisement
Guest User

main.py

a guest
Aug 7th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.01 KB | None | 0 0
  1. from kivy.app import App
  2. import xml.etree.ElementTree
  3. from kivy.uix.screenmanager import ScreenManager, Screen
  4.  
  5. class Gerenciador_01(ScreenManager):
  6.     pass
  7.    
  8. class XML(object):
  9.    
  10.     arquivo_xml_create_python = open("dev_dados.xml", "w")
  11.    
  12.     XML = """  
  13.     <App>
  14.         <desenvolvedor>
  15.             <dados>
  16.                 <nome name="Gabriel"></nome>
  17.                 <numero number="19 99108-0219"</numero>
  18.                 <email email="gschimidit@gmail.com"></email>
  19.             </dados>
  20.             <info>
  21.                 <sobre_01  "V1.0"></sobre_01>
  22.                 <sobre_02 objective="None"></sobre_02>
  23.                 <sobre_03 config="False"></sobre_03>
  24.             </info>
  25.         </desenvolvedor>
  26.     </App>
  27.         """            
  28.     arquivo_xml_create_python.write(XML)
  29.     arquivo_xml_create_python.close()  
  30.    
  31.     pass
  32.  
  33. class main(App):
  34.            
  35.     def Security(self):
  36.        
  37.         username = self.root.ids.username_enter.text
  38.         password = self.root.ids.password_enter.text
  39.        
  40.         if username == "Gabriel" and password == "38753363":
  41.             pass
  42.    
  43.     def build(self):
  44.         return Gerenciador_01()
  45.    
  46. main().run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement