0% found this document useful (0 votes)
41 views2 pages

It System Security Laboratory Experiment No. 2 (Part 1)

This document appears to be from an IT security laboratory experiment and contains code for creating a basic login page and chat bot interface using Tkinter in Python. The login page code defines labels, an entry field, and a submit button to retrieve and display the entered text. The chat bot code defines two buttons to call print functions for "New" and "Open" actions.

Uploaded by

Mansi Bisht
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

It System Security Laboratory Experiment No. 2 (Part 1)

This document appears to be from an IT security laboratory experiment and contains code for creating a basic login page and chat bot interface using Tkinter in Python. The login page code defines labels, an entry field, and a submit button to retrieve and display the entered text. The chat bot code defines two buttons to call print functions for "New" and "Open" actions.

Uploaded by

Mansi Bisht
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

IT SYSTEM SECURITY LABORATORY

EXPERIMENT NO. 2 (PART 1)

Q1.
import tkinter as tk
from tkinter import Button

win=tk.Tk()
win.title('LOGIN PAGE')
win.geometry('300x300')
title1=tk.Label(win,text='CHAT APPLICATION')
title1.place(x=30,y=1)
lab1=tk.Label(win,text='Enter:')
lab1.place(x=2,y=30)

def checkcreds():
u=entry1.get()
info=tk.Label(win, text=u)
info.place(x=90,y=90)

button1=Button(win,text='Submit',command=checkcreds)
button1.place(x=30,y=55)
entry1=tk.Entry(win)
entry1.place(x=45,y=30)
Q2.
import tkinter as tk
from tkinter import Button

win=tk.Tk()
win.title('CHAT BOT')
win.geometry('300x100')

def meth1():
print('new')

def meth2():
print('open')

button1=Button(win,text='New',command=meth1)
button1.place(x=10,y=10)
button2=Button(win,text='Open',command=meth2)
button2.place(x=60,y=10)

You might also like