Professional Documents
Culture Documents
Winter Semeste1
Winter Semeste1
Winter Semeste1
Registration Number:20BEE0188
Name: SABYASACHI SAMAL
Faculty: DR KARTHIKEYAN A
Slot: l19 +l20
Course code :- ECE3502
COURSE TITLE :- IoT Domain Analyst LAB
Experiment :- 6
Date:- 17TH FEBRUARY 2023
Aim :- Creating an Android application using kivy library using python
programming language.
CODE:-
import kivy
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button
class childApp(GridLayout):
def __init__(self,**kwargs):
super(childApp,self).__init__()
self.cols=2
self.add_widget(Label(text='employee : '))
self.e_name=TextInput()
self.add_widget(self.e_name)
self.add_widget(Label(text='empid : '))
self.e_id=TextInput()
self.add_widget(self.e_id)
self.add_widget(Label(text='Location : '))
self.e_location = TextInput()
self.add_widget(self.e_location)
def click(self,instance):
print("Name of Employee"+self.e_name.text)
print("emp id" + self.e_id.text)
print("location of emp"+self.e_location.text)
print("")
class parentApp(App):
def build(self):
return childApp()
if __name__ == "__main__":
app= parentApp()
app.run()
CODE screenshot :-
Python Console: -
OUTPUT WINDOW :-
APPLICATION WINDOW :-
TERMINAL CONSOLE :-
TERMINAL CONSOLE OUTPUT :-
"E:\6TH SEMESTER\COURSE PAGE\IOT LAB\EXP 6\venv\Scripts\python.exe"
"E:/6TH SEMESTER/COURSE PAGE/IOT LAB/EXP 6/ANDROID_APP.py"
emp id20BEE0188
location of empABLOCK ,MENS HOSTEL ,VIT VELLORE
emp id20BCE0188
location of empR-BLOCK ,MENS HOSTEL ,VIT VELLORE
KATAPADI
KATAPADI