EasyChair Preprint 4822
EasyChair Preprint 4822
№ 4822
DURGAMAHESHWARI
,
KALYANIASHWI
NI,
BYATHALABALRAJ,
M.
SAIPAVANKRI
SHNA
MALLAREDDYCOLLEGEOFENGI
NEERI
NG
ABSTRACT: t
he pol
l
.Ther
eis a sear
ch
opt
ion f
or pol
l
s t
o sear
ch
Dj
angopol
lappl
i
cat
ioni
saf
ull
par
ti
cul
arpol
l
.Usercan f
il
ter
f
eat
ured pol
l
ing appl
i
cat
ion.
pol
l
s by name,publ
i
sh dat
e,
Thi
s appl
i
cat
ion Feat
ures ar
e
and by number of v
oted
t
heuserhav
etor
egi
steri
nthi
s
pagi
nat
ionwi
l
lwor
kev
enaf
ter
appl
i
cat
ion t
o show t
he pol
l
s
appl
yi
ngf
il
ter
.
and t
ovot
e.I
fuseral
ready
I
NTRODUCTI
ON:
v
oted, he cannot v
ote
agai
n.Onl
ytheownerofapol
l Wewi
l
lcr
eat
eapol
l
ster(
vot
ing
canaddpol
l
,edi
tpol
l
,updat
e sy
stem)webappl
i
cat
ionusi
ng
pol
l
,del
ete pol
l
,and choi
ce, Dj
ango. Thi
s appl
i
cat
ion wi
l
l
updat
e choi
ce,del
ete choi
ce conductaser
iesofquest
ions
andendapol
l
.Endedpol
lonl
y al
ong wi
th many choi
ces.A
showsusert
hef
inalr
esul
tof userwi
l
lbe al
l
owed t
o gi
ve
v
oti
ng f
or t
hat quest
ion by SQLi
tedat
abasewhi
chcomes
sel
ect
ing a choi
ce.Based on bydef
aul
twi
thDj
ango.
t
heanswert
het
otalv
oteswi
l
l
PYTHON:
be cal
cul
ated and i
twi
l
lbe
di
spl
ayedt
otheuser
.User
scan
Py
thoni
sahi
gh-
lev
el,
al
socheckt
her
esul
toft
het
otal i
nter
pret
ed, i
nter
act
ive and
v
otesf
orspeci
fi
cquest
ionson obj
ect
-or
ient
ed scr
ipt
ing
l
anguage.Py
thon i
s desi
gned
t
he websi
te di
rect
ly.We wi
l
l
t
obehi
ghl
yreadabl
e.I
tuses
al
sobui
l
dtheadmi
npar
toft
his Engl
i
sh key
wor
ds f
requent
ly
pr
oject
. Admi
n user wi
l
l be wher
easot
herl
anguagesuse
punct
uat
ion,and i
thasf
ewer
al
l
owed t
o add quest
ionsand
sy
ntact
icalconst
ruct
ions t
han
manage quest
ions i
n t
he ot
herl
anguages.
appl
i
cat
ion
Pr
e-r
equi
sit
e:
Knowl
edge of Py
thoni
sInt
erpr
eted
−
Py
thoni
spr
ocessedat
Py
thon and basi
cs ofDj
ango
r
unt
imebyt
he
Fr
amewor
k.Py
thon shoul
d be
i
nter
pret
er.Youdonot
i
nst
all
edi
nthesy
stem.Vi
sual needt
ocompi
l
eyour
pr
ogr
am bef
ore
st
udi
ocodeoranycodeedi
tor
execut
ingi
t.Thi
sis
t
owor
kont
heappl
i
cat
ion.
si
mil
art
oPERLandPHP.
Technol
ogi
es used i
n t
he Py
thoni
sInt
eract
ive
−
pr
oject
:
Djangof
ramewor
kand Youcanact
ual
l
ysi
tata
Py
thonpr
omptand
i
nter
actwi
tht
he t
heNat
ionalResear
chI
nst
it
ute
i
nter
pret
erdi
rect
lyt
o f
or Mat
hemat
ics and
wr
it
eyourpr
ogr
ams. Comput
er Sci
ence i
n t
he
Net
her
lands.
Py
thoni
s
Obj
ect
-Or
ient
ed
− Py
thoni
sder
ivedf
rom many
Py
thonsuppor
ts ot
her l
anguages, i
ncl
udi
ng
Obj
ect
-Or
ient
edst
yleor ABC, Modul
a-3, C, C++,
t
echni
queof Al
gol
-68,Smal
l
Tal
k,and Uni
x
pr
ogr
ammi
ngt
hat shel
l and ot
her scr
ipt
ing
encapsul
atescode l
anguages.
wi
thi
nobj
ect
s.
Py
thon i
s copy
right
ed. Li
ke
Py
thoni
saBegi
nner
's Per
l,Py
thon sour
ce code i
s
Language
−Py
thoni
sa now av
ail
abl
eundert
heGNU
gr
eatl
anguagef
ort
he Gener
alPubl
i
cLi
cense(
GPL)
.
begi
nner
-l
evel
Py
thoni
snowmai
ntai
nedbya
pr
ogr
ammer
sand
cor
edev
elopmentt
eam att
he
suppor
tst
he
i
nst
it
ute,al
though Gui
do v
an
dev
elopmentofawi
de
Rossum st
il
lhol
dsav
italr
ole
r
angeofappl
i
cat
ions
i
ndi
rect
ingi
tspr
ogr
ess.
f
rom si
mpl
etext
pr
ocessi
ngt
oWWW Py
thonFeat
ures:
br
owser
stogames.
Py
thon'
sfeat
uresi
ncl
ude:
Easy
-to-
lear
n − Py
thon
Hi
stor
yofPy
thon: has f
ew key
wor
ds,
si
mpl
e st
ruct
ure,and a
Py
thon was dev
eloped by
cl
ear
ly def
ined sy
ntax.
Gui
dov
anRossum i
nthel
ate
Thi
sal
l
owst
hest
udent
ei
ght
iesand ear
lyni
net
iesat
t
opi
ckupt
hel
anguage
qui
ckl
y. addl
ow-
lev
elmodul
est
o
t
he Py
thon i
nter
pret
er.
Easy
-to-
read
− Py
thon
These modul
es enabl
e
code i
s mor
e cl
ear
ly
pr
ogr
ammer
sto add t
o
def
inedandv
isi
blet
othe
orcust
omi
zet
hei
rtool
s
ey
es.
t
obemor
eef
fi
cient
.
Easy
-to-
mai
ntai
n −
Dat
abases
− Py
thon
Py
thon'
ssour
cecodei
s
pr
ovi
desi
nter
facest
oal
l
f
air
lyeasy
-to-
mai
ntai
n.
maj
or commer
cial
A br
oad st
andar
d
dat
abases.
l
ibr
ary
−Py
thon'
sbul
kof
GUI Pr
ogr
ammi
ng
−
t
he l
i
brar
y i
s v
ery
Py
thon suppor
ts GUI
por
tabl
e and
appl
i
cat
ionst
hatcanbe
cr
oss-
plat
for
m
cr
eat
ed and por
ted t
o
compat
ibl
e on UNI
X,
many sy
stem cal
l
s,
Wi
ndows,
andMaci
ntosh.
l
i
brar
ies and wi
ndows
I
nter
act
ive Mode
−
sy
stems, such as
Py
thon has suppor
tfor
Wi
ndows MFC,
an i
nter
act
ive mode
Maci
ntosh,and t
he X
whi
chal
l
owsi
nter
act
ive
Wi
ndowsy
stem ofUni
x.
t
est
inganddebuggi
ngof
Scal
abl
e − Py
thon
sni
ppet
sofcode.
pr
ovi
des a bet
ter
Por
tabl
e − Py
thon can
st
ruct
ureandsuppor
tfor
r
unonawi
dev
ari
etyof
l
arge pr
ogr
ams t
han
har
dwar
epl
atf
ormsand
shel
lscr
ipt
ing.
hast
he same i
nter
face
Apar
t f
rom t
he
onal
lpl
atf
orms.
abov
e-ment
ioned f
eat
ures,
Ext
endabl
e − You can
Py
thonhasabi
gli
stofgood
f
eat
ures,
fewar
eli
stedbel
ow− Local Env
ironment
I
t suppor
ts f
unct
ional Set
up:
and st
ruct
ured
Open a t
ermi
nalwi
ndow and
pr
ogr
ammi
ng met
hods
t
ype"
pyt
hon"t
ofi
ndouti
fiti
s
aswel
lasOOP.
al
ready i
nst
all
ed and whi
ch
I
t can be used as a v
ersi
oni
sinst
all
ed.
scr
ipt
ing l
anguage or
can be compi
l
ed t
o Uni
x (
Sol
ari
s, Li
nux,
by
te-
code f
or bui
l
ding Fr
eeBSD, AI
X, HP/
UX,
l
argeappl
i
cat
ions. SunOS,
IRI
X,et
c.)
I
tpr
ovi
desv
eryhi
gh-
lev
el Wi
n9x/
NT/
2000
dy
nami
cdat
aty
pesand
suppor
ts dy
nami
cty
pe Maci
ntosh (
Int
el, PPC,
checki
ng. 68K)
I
t suppor
ts aut
omat
ic OS/
2
gar
bagecol
l
ect
ion.
DOS(
mul
ti
plev
ersi
ons)
I
t can be easi
l
y
i
ntegr
ated wi
th C,C++, Pal
mOS
COM,Act
iveX,CORBA,
Noki
amobi
l
ephones
andJav
a.
Wi
ndowsCE
Py
thoni
sav
ail
abl
eonawi
de Acor
n/RI
SCOS
v
ari
etyofpl
atf
ormsi
ncl
udi
ng
Li
nux and Mac OS X.Let
's BeOS
under
standhow t
osetupour
Ami
ga
Py
thonenv
ironment
.
VMS/
OpenVMS
QNX Youneedt
odownl
oadonl
ythe
bi
nar
ycodeappl
i
cabl
efory
our
VxWor
ks
pl
atf
orm andi
nst
all
Pyt
hon.
Psi
on I
fthebi
nar
ycodef
ory
our
pl
atf
ormi
snotav
ail
abl
e,y
ou
Py
thon has al
so been
needaCcompi
l
ert
ocompi
l
e
por
ted t
othe Jav
a and
t
hesour
cecodemanual
l
y.
.
NETv
irt
ual
machi
nes
Compi
l
ingt
hesour
cecode
Get
ti
ngPy
thon: of
fer
smor
efl
exi
bil
i
tyi
nter
ms
ofchoi
ceoff
eat
urest
haty
ou
Themostup-
to-
dat
eand
r
equi
rei
nyouri
nst
all
ati
on.
cur
rentsour
cecode,
binar
ies,
document
ati
on,
news,
etc.
,i
s Her
eisaqui
ckov
erv
iewof
av
ail
abl
eont
heof
fi
ci
al i
nst
all
i
ngPy
thononv
ari
ous
websi
teof pl
atf
orms
Py
thon
htt
ps:
//www.
pyt
hon.
or Wi
ndowsI
nst
all
ati
on:
g/
Her
ear
ethest
epst
oinst
all
Youcandownl
oadPy
thon
Py
thononWi
ndowsmachi
ne.
document
ati
on
OpenaWebbr
owserand
f
rom
htt
ps:
//www.
pyt
hon.
org/
go
doc/
.Thedocument
ati
oni
s
t
o ht
tps:
//www.
pyt
hon.
o
av
ail
abl
einHTML,
PDF,
and
r
g/downl
oads/
.
Post
Scr
iptf
ormat
s.
Fol
l
ow t
he l
i
nk f
ort
he
Wi
ndows
I
nst
all
i
ngPy
thon: i
nst
all
erpy
t
hon-
XYZ.
msi
Py
thondi
str
ibut
ioni
sav
ail
abl
e f
il
e wher
e XYZ i
sthe
f
orawi
dev
ari
etyofpl
atf
orms. v
ersi
on y
ou need t
o
i
nst
all
.
To use t
his env
ironmentv
ari
abl
e,whi
chi
s
i
nst
all
erpy
t
hon-
XYZ.
msi
, anamedst
ri
ngmai
ntai
nedby
t
he Wi
ndows sy
stem t
he oper
ati
ng sy
stem. Thi
s
mustsuppor
tMi
crosof
t v
ari
abl
e cont
ains i
nfor
mat
ion
I
nst
all
er 2.
0.Sav
ethe av
ail
abl
e t
o t
he command
i
nst
all
erf
il
etoy
ourl
ocal shel
landot
herpr
ogr
ams.
machi
neandt
henr
uni
t
The
pat
h v
ari
abl
eisnamedas
t
o f
ind out i
f y
our
PATH i
n Uni
x or Pat
h i
n
machi
nesuppor
tsMSI
.
Wi
ndows (
Uni
x i
s case
Runt
hedownl
oadedf
il
e. sensi
ti
ve;
Windowsi
snot
).
Thi
sbr
ingsupt
hePhon
I
n Mac OS, t
he i
nst
all
er
i
nst
allwi
zar
d,whi
ch i
s
handl
es t
he pat
h det
ail
s.To
r
eal
l
yeasyt
ouse.Just
i
nvoke t
he Py
thon i
nter
pret
er
accept t
he def
aul
t
f
rom anypar
ti
cul
ardi
rect
ory
,
set
ti
ngs,wai
tunt
ilt
he
y
ou must add t
he Py
thon
i
nst
alli
sfi
nished,and
di
rect
oryt
oyourpat
h.
y
ouar
edone.
Sett
ingpat
hat
Windows:
Set
ti
ngupPATH: ToaddthePyt
hondi
rect
oryto
the pat
h for a parti
cul
ar
Pr
ogr
ams and ot
her sessi
oni
nWindows−
execut
abl
e f
il
es can be i
n At the command prompt
−
ty
pe path %path%;
C:\
Pyt
hon
manydi
rect
ori
es,sooper
ati
ng
andpressEnt
er.
sy
stemspr
ovi
deasear
chpat
h
Not
e −C:\
Pyt
honisthepat
hof
t
hatl
i
stst
hedi
rect
ori
est
hat t
hePythondi
rect
ory
t
he OS sear
ches f
or I
DLE[
Int
egr
ated
execut
abl
es.
Dev
elopment Lear
ning
The pat
h i
s st
ored i
n an
Env
ironment
]: Thebestpl
acet
o exper
iment
wi
th Py
thon code i
s i
n
Ev
ery Py
thon i
nst
all
ati
on
t
he
i
nter
act
ive i
nter
pret
er,
comes wi
th an
Int
egr
ated
ot
her
wise known as a
shel
l.
Dev
elopment and Lear
ning
The shel
l i
s a
Env
ironment
,whi
chy
ou’
l
lsee
basi
c Read-
Eval
-Pr
int Loop
shor
tenedt
oIDLEorev
enI
DE.
(
REPL)
.Itr
eads a Py
thon
These ar
e a cl
ass of
st
atement
,ev
aluat
est
her
esul
t
appl
i
cat
ions t
hat hel
p y
ou
of t
hatst
atement
,and t
hen
wr
it
e code mor
e ef
fi
ci
ent
ly.
pr
int
sther
esul
tont
hescr
een.
Whi
l
ether
ear
emany
I
DEs
for
Then,i
tloopsbackt
oreadt
he
y
ou t
o choose f
rom,Py
thon
nextst
atement
.
I
DLEi
sver
ybar
e-bones,whi
ch
makesi
ttheper
fectt
oolf
ora ThePy
thonshel
lisanexcel
l
ent
begi
nni
ngpr
ogr
ammer
. pl
acet
oexper
imentwi
thsmal
l
codesni
ppet
s.Youcanaccess
Py
thonI
DLEcomesi
ncl
udedi
n
i
tthr
ough t
he t
ermi
nal or
Py
thon i
nst
all
ati
ons on
command l
i
ne app on y
our
Wi
ndowsandMac.I
fyou’
rea
machi
ne.Youcansi
mpl
i
fyy
our
Li
nuxuser
,theny
oushoul
dbe
wor
kfl
ow wi
th Py
thon I
DLE,
abl
etof
ind and downl
oad
whi
chwi
l
limmedi
atel
yst
arta
Py
thon I
DLE usi
ng y
our
Py
thonshel
lwheny
ouopeni
t.
package manager
. Once
y
ou’
vei
nst
all
edi
t,y
oucant
hen HowtoUset
hePy
thonI
DLE
use Py
thon I
DLE as an Shel
l:
i
nter
act
ivei
nter
pret
erorasa Theshel
li
sthedef
aul
tmodeof
f
il
eedi
tor
. oper
ati
onf
orPy
thonI
DLE.
AnI
nter
act
iveI
nter
pret
er: Wheny
oucl
i
ckont
hei
cont
o
opent
hepr
ogr
am,
theshel
li
s
t
hef
ir
stt
hingt
haty
ousee:
i
nter
face]
:
A
GUI
(
graphi
cal
useri
nter
face)
i
s a sy
stem of i
nter
act
ive
v
isual component
s f
or
comput
er
sof
twar
e. A GUI
di
spl
ays obj
ect
sthatconv
ey
Thi
s i
s a bl
ank Py
thon
i
nfor
mat
ion, and r
epr
esent
i
nter
pret
er wi
ndow.You can
act
ionst
hatcanbet
akenby
usei
ttost
arti
nter
act
ingwi
th
t
heuser
.Theobj
ect
schange
Py
thon i
mmedi
atel
y.You can
col
or,si
ze,orv
isi
bil
i
tywhen
t
esti
toutwi
thashor
tli
neof
t
heuseri
nter
act
swi
tht
hem.
code:
GUI obj
ect
s
i
ncl
ude
i
cons,
cur
sor
s,
and
but
tons.These gr
aphi
cal
el
ement
s ar
e somet
imes
enhanced wi
th sounds, or
v
isual ef
fect
s
l
i
ke
tr
anspar
ency
and
drop
Her
e,y
ouused
pri
nt(
)
toout
put shadows.
t
hest
ri
ng
"Hel
l
o,f
rom I
DLE!
"
to
A GUIi
s consi
der
ed t
o be
y
ourscr
een.Thi
sist
hemost
mor
e user
-f
ri
endl
y
than a
basi
c way t
o i
nter
act wi
th
t
ext
-based
command-
li
ne
Py
thon I
DLE. You t
ype i
n
i
nter
face,suchas
MS-
DOS,or
commandsoneatat
imeand
t
he
shel
l
of
Uni
x-l
i
ke
oper
ati
ng
Py
thonr
espondswi
tht
her
esul
t
sy
stems.
ofeachcommand.
The GUIwasf
ir
stdev
eloped
GUI[
graphi
cal
user at
Xer
ox PARC
by
Alan
Kay
,
Dougl
asEngel
bar
t,anda pr
ogr
am'
s i
con
gr
oup of ot
her r
esear
cher
s and
doubl
e-cl
i
ck
i
t.
i
n 1981.
Lat
er,
Appl
e i
ntr
oduced
Whatar
ethebenef
it
sof
t
he
Lisacomput
er
wit
h a GUI
GUI
?
onJanuar
y19,
1983.
Howdoy
oupr
onounce
Unl
i
ke a
command- l
i
ne
GUI
oper
ati
ng sy
stem
or
CUI
,
GUIispronouncedby l
i
ke
Uni
x
or
MS-
DOS, GUI
say
ingeachlett
er(G-U-I
).I
t
sometimesisalsopronounced oper
ati
ngsy
stemsar
eeasi
ert
o
as"gooey.
" l
ear
n and use because
commandsdonotneedt
obe
HowdoesaGUIwor
k?
memor
ized.Addi
ti
onal
l
y,user
s
do not need t
o know
any
pr
ogr
ammi
ng l
anguages.
A GUI uses
windows,
icons,
Becauseoft
hei
reaseofuse
and
menus
to car
ry out
andmor
emoder
nappear
ance,
commands,such as openi
ng,
GUIoper
ati
ng sy
stems hav
e
del
eti
ng, and mov
ing f
il
es.
come t
o domi
nat
e t
oday
's
Al
though a GUI oper
ati
ng
mar
ket
.
sy
stem i
s pr
imar
il
y nav
igat
ed
usi
nga
mouse,akey
boar
dcan Whatareexamplesofa
GUIoperat
ingsy
stem?
al
so be used v
ia
key
boar
d
shor
tcut
s ort
he
arr
owkey
s. M
Asanexampl
e,i
fyouwant
ed
t
o open a
progr on a GUI i
am
sy
stem, y
ou woul
d mov
e
c
t
he
mouse poi
nter
t
o t
he
r S
o y
s s
o t
f e
t m
W 7
i
n a
d n
o d
w
s m
A a
p c
p O
l S
e C
h
r s
o l
m i
e k
O e
S
L U
i b
n u
u n
x t
u
v
a u
r s
i i
a n
n g
t a
G v
ersi
onsof
Li
nux
todayhav
eno
GUIi
nter
face.
U
Whatareexampl
esofa
I GUIi
nterf
ace?
i 1.
G
n N
O
t M
E
e
2. K
r D
E
f 3. A
n
a y
M
c i
c
r
o
e.
s
o
ft
p
r
o
g
Ar
ealloper
ati
ng r
sy
stemsGUI? a
m,
i
n
No.Ear
lycommandl
i
ne cl
u
oper
ati
ngsy
stems d
l
i
ke
MS-
DOS
andev
ensome i
n
g s
I
W n
o t
r e
d, r
n
E e
x t
c E
el
, x
a p
n l
d o
r
O e
u r,
tl C
o h
o r
k. o
m
4. I e,
n a
t n
e d
r
n F
e i
r
t e
b f
r o
o x.
w
s Howdoestheuser
e
r
i
nter
actwi
thaGUI?
s,
s A
poi
nti
ngdev
ice,
u suchast
he
mouse,
isusedt
o
c
h i
nter
actwi
thnear
lyal
laspect
s
a oft
heGUI
.Mor
emoder
n(and
mobi
l
e)dev
icesal
sout
il
ize l
ook t
his opt
ion i
nthi
s
a
touchscr
een.Howev
er,
as chapt
er.
st
atedi
npr
evi
oussect
ions,
iti
s
wxPy
thon
− Thi
sis an
al
sopossi
blet
onav
igat
eaGUI
open-
sour
ce Py
thon
usi
nga
key
boar
d.
i
nter
face f
or
wxWi
ndows
htt
p:/
/wxpy
t
DoesaGUI
hon.
org.
requi
reamouse?
JPy
thon
− JPy
thon i
sa
No.Near
lyal
lGUI
Py
thon por
tfor Jav
a
i
nter
faces,
incl
udi
ngMi
crosof
t
whi
ch gi
ves Py
thon
Wi
ndows,
hav
eopt
ionsf
or
scr
ipt
sseaml
essaccess
nav
igat
ingt
hei
nter
facewi
tha
t
oJav
acl
assl
i
brar
ieson
key
boar
donl
y.
t
he l
ocal
machi
ne
htt
p:/
/www.
jy
th
on.
org
Ther
e ar
e many ot
her
GUIWI
THTKI
NTER:
i
nter
facesav
ail
abl
e,whi
chy
ou
canf
indt
hem ont
henet
.
Py
thon pr
ovi
des v
ari
ous
Tki
nterPr
ogr
ammi
ng:
opt
ions f
or dev
elopi
ng
gr
aphi
cal
useri
nter
faces(
GUI
s). Tki
nteri
sthe
Most i
mpor
tant ar
e l
i
sted st
andar
dGUIl
i
brar
yforPy
thon.
bel
ow. Py
thon when combi
ned wi
th
Tki
nter pr
ovi
des a f
ast and
easy way t
o cr
eat
e GUI
Tki
nter
− Tki
nteri
sthe
appl
i
cat
ions.Tki
nterpr
ovi
desa
Py
thon i
nter
face t
othe
power
ful obj
ect
-or
ient
ed
Tk GUIt
ool
ki
tshi
pped
i
nter
facet
otheTkGUIt
ool
ki
t.
wi
th Py
thon.We woul
d
Cr
eat
ingaGUIappl
i
cat
ion SQLI
TE3:
usi
ngTki
nteri
saneasyt
ask.
SQLi
te i
sa C l
i
brar
ythat
Al
lyouneedt
odoi
sper
for
m
pr
ovi
des a l
i
ght
wei
ght
t
hef
oll
owi
ngst
eps
di
sk-
based dat
abase t
hat
I
mport doesn’
trequi
re a separ
ate
t Tki
he nter
modul
e.
ser
ver pr
ocess and al
l
ows
Cr
eatet
heGUI
appl
i
cati
onmai
nwi
ndow. accessi
ngt
hedat
abaseusi
ng
Addoneormor eoft
he anonst
andar
dvar
iantoft
he
above-ment
ioned SQL quer
ylanguage. Some
widgetstot
heGUI
appli
cati
on. appl
i
cat
ions can use SQLi
te
Entert
hemai nev entl
oop f
ori
nter
naldat
ast
orage.I
t’
s
totakeactionagainst al
sopossi
blet
opr
otot
ypean
eachev enttr
iggeredby
theuser. appl
i
cat
ion usi
ng SQLi
te and
t
henpor
tthecodet
oal
arger
Exampl
e:
dat
abasesuchasPost
greSQL
#!
/usr
/bi
n/py
thon
orOr
acl
e.
i
mpor
tTki
nter
t
op=Tki
nter
.Tk(
) The sql
i
te3 modul
e was
#Codet
oaddwi
dget
swi
l
lgo wr
it
ten byGer
har
d Här
ing.I
t
her
e..
. pr
ovi
des a SQL i
nter
face
t
op.
mai
nloop(
) compl
i
antwi
tht
heDB-
API2.
0
speci
fi
cat
iondescr
ibedby
PEP
Tki
nterWi
dget
s: 249.
Tki
nter pr
ovi
des Modulef
unct
ionsand
v
ari
ous cont
rol
s, such as const
ant
s:
but
tons,l
abel
sandt
extboxes sql
i
te3.
ver
sion
used i
n a GUI appl
i
cat
ion.
Theversi
onnumberof
Thesecont
rol
sar
ecommonl
y thi
smodule,asastri
ng.
cal
l
edwi
dget
s. Thisi
snotthever
sionof
t
heSQLi
tel
i
brar
y. “
int
eger
”, or f
or
sql
i
te3.v
ersion_i
nfo “
number
(10)
”itwi
l
lpar
se
Thev ersi
onnumberof out“
number
”.Then f
or
thi
smodul e,asatupl
eof
t
hatcol
umn,i
twi
l
llook
int
egers.Thisi
snotthe
versi
onoft heSQLi
te i
nto t
he conv
ert
ers
li
brar
y . di
cti
onar
y and use t
he
sql
i
te3.
sql
it
e_v
ersi
on conv
ert
er f
unct
ion
r
egi
ster
ed f
ort
hatt
ype
Thev ersi
onnumberof
therun-ti
meSQLit
e t
her
e.
l
ibrar
y ,
asastri
ng.
sql
i
te3.
PARSE_
COLNAMES
sql
i
te3.sqlit
e_ v
ersi
on_i
nfo
Thev ersi
onnumberof
ther un-ti
meSQLite Thi
sconst
anti
smeantt
o
li
brary ,
asat upl
eof be used wi
th
integers.
t det
he ect
_ty
pes
par
amet
er of
sql
i
te3.
PARSE_
DECLTYPES
t
he
connect
()
funct
ion.
Thi
sconst
anti
smeantt
o
be used wi
th Set
ti
ng t
his makes t
he
t det
he ect
_ty
pes
par
amet SQLi
tei
nter
facepar
set
he
er of col
umn name f
or each
t
he
connect
()
funct
ion. col
umni
tret
urns.I
twi
l
l
l
ookf
orast
ri
ngf
ormed
Set
ti
ng i
t makes
[
myt
ype] i
n t
her
e, and
t
he
sql
i
te3
modul
e par
se
t
hendeci
det
hat‘
myt
ype’
t
he decl
ared t
ype f
or
i
sthet
ypeoft
hecol
umn.
eachcol
umni
tret
urns.I
t
I
twi
l
ltr
ytof
indanent
ry
wi
l
lpar
se outt
he f
ir
st
of ‘
myt
ype’ i
n t
he
wor
doft
hedecl
aredt
ype,
conv
ert
ersdi
cti
onar
yand
i
.e.f
or“
int
egerpr
imar
y
t
hen use t
he conv
ert
er
key
”,i
t wi
l
l par
se out
f
unct
ion f
ound t
her
eto cust f
om act
ory
i
sgi
ven.
r
etur
n t
he v
alue. The
dat
abase
i
s a
pat
h-l
i
ke
col
umn name f
ound
obj
ect
gi
vi
ng t
he pat
h
i
n Cur
sor
.descr
ipt
ion
doe
name (
absol
ute or
s not i
ncl
ude t
he
r
elat
ive t
o t
he cur
rent
t
ype,
i
.e.
if y
ou use
wor
kingdi
rect
ory
)oft
he
somet
hing
dat
abase f
il
e t
o be
l
i
ke
'
as
"Ex
pir
ati
on
dat
e [
d
opened. You can
at
eti
me]
"'
i
n y
our SQL,
use
":
memor
y:"
t
oopena
t
hen we wi
l
lpar
se out
dat
abaseconnect
iont
oa
ev
ery
thi
ng unt
il t
he
dat
abaset
hatr
esi
desi
n
f
ir
st
'
['
f
or t
he col
umn
RAM i
nst
eadofondi
sk.
name and st
ri
p t
he
pr
eceedi
ng space: t
he When a dat
abase i
s
col
umn name woul
d accessed by mul
ti
ple
si
mpl
y be “
Expi
rat
ion connect
ions,andoneof
dat
e”. t
he pr
ocesses modi
fi
es
t
hedat
abase,t
heSQLi
te
sql
i
te3.
connect
(dat
abase[
,
ti
me
dat
abase i
slocked unt
il
out
,det
ect
_ty
pes,
i
sol
ati
on_
lev
e
t
hat t
ransact
ion i
s
l
,
check_
commi
tt
ed.
same_
thr
ead,
f
act
ory
,cached_
s
t
The i
meout
par
amet
er
t
atement
s,ur
i
])
speci
fi
es how l
ong t
he
Opens a connect
ion t
o
connect
ion shoul
d wai
t
t
he SQLi
te dat
abase
f
ort
hel
ockt
ogo away
f
il
e dat
abase.By def
aul
t
unt
ilr
aisi
nganexcept
ion.
r
etur
ns
The def
aul
t f
or t
he
a
Connect
ion
obj
ect
,
t
imeoutpar
amet
eri
s5.
0
unl
ess a
(
fi
veseconds)
.
sql
i
te3.
regi
ster
_conv
ert
ert
(ype r
etur
n a v
alue of t
he
name,
cal
l
abl
e) f
oll
owi
ngt
ypes:i
nt,f
loat
,
Regi
ster
s a cal
l
abl
eto st
rorby
tes.
conv
ertaby
test
ri
ngf
rom
sql
i
te3.
compl
ete_
stat
ement
(S
t
he dat
abase i
nto a
QL)
cust
om Py
thont
ype.The
Ret
urns
True
i
f t
he
cal
l
abl
e wi
l
lbe i
nvoked
st
ri
ng
SQL
cont
ains one
f
oral
ldat
abase v
alues
or mor
e compl
ete SQL
t
hatar
eoft
het
y t
pe ype
st
atement
ster
minat
edby
name. Conf
er t
he
semi
col
ons.I
tdoes not
par
amet
erdet
ect
_ty
pes
o
v
eri
fyt
hat t
he SQL i
s
f t
he
connect
()
funct
ion
sy
ntact
ical
l
ycor
rect
,onl
y
f
or how t
he t
ype
t
hat t
her
e ar
e no
det
ect
ion wor
ks. Not
e
uncl
osed st
ri
ng l
i
ter
als
t
hat
t
ype name
and t
he
and t
he st
atement i
s
nameoft
het
ypei
nyour
t
ermi
nat
ed by a
quer
y ar
e mat
ched i
n
semi
col
on.
case-
insensi
ti
vemanner
.
SYSTEM REQUI
REMENTS:
sql
i
te3.
regi
ster
_adapt
ert
(ype,
c
al
l
abl
e)
Regi
ster
s a cal
l
abl
eto
HARDWAREREQUI
REMENTS:
conv
ert t
he cust
om
Py
thont
y t
pe ype
i
ntoone
Sy
stem :
of SQLi
te’
s suppor
ted
Pent
ium Dual
Cor
e.
t
ypes. The
Har
dDi
sk :
cal
l
abl
e cal
l
abl
e accept
s
500GB.
as si
ngl
e par
amet
ert
he
Moni
tor :
Py
thon v
alue,and must
15’
’LED
I
nputDev
ices : t
otal
no.
of
Key
boar
d,Mouse
vot
esofever
ypart
y.Ther
ei sa
Ram : DATABASEwhichi
smai ntained
bythe
1GB.
ELECTIONCOMMI SI
ONOF
I
NDI Ainwhi
chal
lthenamesof
SOFTWAREREQUI
REMENTS:
v
ot er
wit
hcompl etei
nfor
mati
oni
s
Oper
ati
ngsy
stem :
st
ored.
Inthisuserwhoi
sabov
e
Wi
ndows7. 18year
’s
Codi
ngLanguage :
r
egist
erhis/
heri
nfor
mat
ionon
Py
thon t
hedatabaseandwhenhe/she
wanttovote
Fr
amewor
k
: he/
shehastol
ogi
nbyhisi
d
andpasswor
dandcanv
oteto
Dj
angoFr
amewor
k
anypar
tyonl
y
Tool :
pyt
honIDLE, singleti
me.Voti
ngdet
ail
s
Pychar
m storeindatabaseandt
heresul
t
i
sdi splay
edby
Dat
abase :
SQLI
TE3 cal
culat
ion.Byonl
inev
oting
syst
em percentageofvot
ingis
i
ncreases.I
t
CONCLUSI
ON:
i
svaryl
essti
meconsumi
ng.
It
Thi
sOnli
neVoti
ng i
sveryeasyt
odebug.
sy
stem wi
l
lmanagetheVoter
’s
i
nformati
onbywhi
chvot
er
canlogi
nandusehi
svoti
ng
ri
ghts.
The
system will
incorporateal
l
featuresofVotingsy st
em.It
provides`
the
toolsformaintaini
ngv ot
ers
votet oever
ypar t
yandi tcount