Documente Academic
Documente Profesional
Documente Cultură
Tkinter
By: Sanjeev Bhadauria
PGT CS, KV BARABANKI
Blog: www.pythontrends.wordpress.com
YouTube Channel : “Python Trends”
Our Target to learn . . . .
• In this session we will learn the basics of the
tkinter.
• We will learn about the widgets of tkinter.
• We will learn the coding system of widgets.
• We will learn the properties of different
widgets of tkinter which are usefull in making
our project.
• We will make a GUI application using tkinter
and database connectivity.
Here we created a
Label object and
make it visible in
frame using pack ( ).
w = Radiobutton(top, option, . . . . . )
Here arguments –
top – is the parent widget.
option – has many attributes to set the properties.
w = Text(top, option, . . . . . )
Here arguments –
top – is the parent widget.
option – has many attributes to set the properties like bg, bd, cursor,
exportselection, font, fg, height, highlightcolor, padx, pady, relief,
selectbackground, tabs, state, spacing1, width, wrap,
xscrollcommand, yscrollcommand etc….
Methods – delete( ) , get( ), insert( ) , see( ), index( ) etc . . . .
w = Spinbox(top, option, . . . . . )
Here arguments –
top – is the parent widget.
option – has many attributes to set the properties like bg, bd, cursor,
command, fg, font, format, justify, state, from, to, validate, wrap
etc….
Methods – delete( ) , get( ), insert( ) , identify( ), index( ), invoke( )
etc . . . .
www.pythontrends.wordpress.com