XII CS Project File
XII CS Project File
PUBLIC SCH0OL
..
Name:-MD.Moinuddin Patel
Class:-XII
Reg. No:-11604145
Faculty:-Mr.Anustup Gupta
BalBal Bharati
PUBLIC SCHOOL
SCH0OL CODE: 03097
Project on
Chalina hpp
Registration Number/Board's Roll Number: 1L60tL45 sfolte
wwwwn
oloiw
Subject Principal Exterhal Examiner
Teacher ARAT
L PUBL
N . 430
SC
NTPCHANO
ACKNOWLEDGEMENT
wish to express my gratitude and sincere
thanks to Mr. Kalpesh Kayasth, Principal, Bal
Bharati Public School, for his
encouragement and for the facilities that he
has provided for this project work. I sincerely
appreciate his magnanimity by taking me into
his fold for which I shall remain indebted to
him.
lalso extend my hearty thanks to Mr. Anustup
Gupta, Computer Science teacher who
guided me to successful completion of this
project. I take this opportunity to express my
deep sense of gratitude for his valuable
guidance, constant encouragement,
Constructive comments, sympathetic
attitude and immense motivation, which has
sustained my efforts at all stages of this
project work.
Sign:-M Date:-15/21
INDEX
SR.NO Assignment Page
No.
1) Certificate Of 2
Excellence
2) Acknowledgement 3
4) Introduction 6-7
6) Snapshot Proof 19
7) Bibliography 20
O Aim Of The Projectt
To make a chatting application from
python programming language.
o o o
(o o o
wON
INTRODUCTION
Here,I Created a GUI chat program written in python2.7. Itis
designed to not need a central server and so work very well
on LANs that are not connected to the internet. One user
starts the program in server mode, listening on a port of
their choosing, and then other users will use client mode to
connect to their machine. Each new user then acts as a host,
allowing other people to connect to them.
VON
Features of the program:
1. Cross-Platform Support.
2. Easy To Use.
3. Easy To Maintain.
4. Good Example Of Socket Programming.
5. With GUI Its Looks very Simple.
6. Light weight.
And if You are using client mode: when you will start script
on client mode. A dialog box automatically raised and it will
ask you about server IP address. Here entered the IP
address
of server mode user.
VON
Source Code
##Module1(Ask_IP.py)
#Here Importing Module
try:
import Tkinter, ttk
except:
import tkinter as Tkinter
import tkinter.ttk as ttk
PORT ="5000"
text="
Server IP Address
Enter Ip Address Of Server You Want To Connect.
Server PORT Number :
Enter PORT Number Of Connection You want to use
5000 is default port. if you want to change then change
from configurations settings.
if_name_==_main_:
Ask_Ip()
##Module2(Ask_Mode.py)
try:
import Tkinter, ttk
except:
import tkinter as Tkinter
import tkinter.ttk as ttk
Label.insert(1.0",text,'end')
Label.grid(row=3, column=1, columnspan=4, rowspan=5, padx=10,
pady=10)
Label.config(state="disabled')
root.mainloop()
return mode.get)
# Trigger For Script
if_name_smain_'
print(AskMode Option())
#Main_Program(Main-GUi.py)
import Ask_Mode as ask, ServerMode as server, ClientMode as client
ifname_=='main
storeobj=ask.Ask_Mode_Option()
if storeobj==0:
client.ClientMode(className="Python Chatting [Client
Mode]).mainloop()
pass
elif storeobj==:
server.ServerMode(class Name='Python Chatting [Server
Mode]').mainloop()
pass
else
pass
VON
Screenshot Proofs
EMETY
e: 58: 0 VIAIN
Dvthon3 python3 EMPTY EMPTY
O IOOtaMaster-Hunter:-/Desktop/Chattingh
cd Scripts_store
ls
-/Desktop/chatting/scIipts_storea
D0o2 lnux DNTOOt@Master-Hun ter :
Main-GU1.py
Pycache
S e r v e r M o d e . py
1 e
ServerMode . py
ang Pen i a :
op/Chatting/ScIipts_store# pyth
Other!h
i t1. mo: hi
Completed
me: How aro You?
OUher Fine!!
me: What are You Doing 7?
'o
12'a 4 s '6 7 a 9
ENTEP
QWER T UID Pt
ASDF GHJ K
C V B N M
SHIFT
Usage
A"******* Cen m
reyOu Len gt e p o aiy ject by
stertcd j--0
Oher
y r l p t , "trealts" cr e r **
Fin
Orher Wnal 3re Yo DO
N: ChIay wtn Youol
I1:atilri
( nes Is Casite
ir *
Atriun Is (irts
BIBLIOGRAPHY
. Comprehensive Computer Science Class 12
Textbook
I. Tkinter GUI Application Development
Blueprints, Second Edition: Build nine
I. www.stackoverflow.com
IV. www.google.comn
T T TI '/1we.
O9.hns1n
Tat 2