SlideShare a Scribd company logo
GUI Development in Python
Introduction to GUI Programming
Designing and building graphical interfaces that allow
users to interact with software using visual elements.
● Widgets: Basic visual elements like buttons labels, text
boxes, and menus.
● Layout: Arranging widgets in a window or container.
● Events: User interactions like clicks, key presses, and
mouse movements.
● Event Handling: Writing code to respond events.
Introduction to GUI Programming
GUI Frameworks
1. Tkinter: Built-in python library for creating simple GUIs.
2. PyQt: Powerful framework for building complex GUIs
3. wxPython: Cross-platform framework for building GUIs.
4. JavaFX: Modern framework for building GUIs.
5. Swing : Older framework for building GUIs.
Basic Steps:
→ Choose a framework → Design the interface
→ Write event handlers → Assemble the GUI
→ Test and refine
Installing PyCharm
Windows :
→ Download PyCharm installer.
→ Run installer and follow
prompts.
→ Choose installation location
and components.
MacOs :
→ Download PyCharm disk
image.
→ Drag PyCharm icon to
Application folder.
→ Launch PyCharm.
Addition Steps :
→ Activate PyCharm with license.
→ Configure project interpreter.
→ Install additional plugins
Introduction to GUI Programming on PyCharm
Step - 1 : Create a New project
Step - 2 : Install GUI library
Stap - 3 : Create a GUI window
Step - 4 : Add GUI widgets
Step - 5 : Run the GUI App
Introduction to Tkinter
Tkinter is a python’s de-facto standard GUI package.
Tkinter Widgets :
1. Label : Displays text or images.
2. Button : A Clickable button.
3. Entry : A text input field.
4. Text : A multi-line text box.
5. Frame: A container for other widgets.
Introduction to Tkinter
Basic Tkinter Concepts :
1. Root Window : The main application window.
2. Widgets : GUI elements like buttons, labels, etc.
3. Layout Managers : Arrange widgets in the window.
4. Events : User interaction like clicks,key presses, etc
5. Callbacks : Functions that handle events.
Introduction to Tkinter
Titles :
Setting the window title :
1. Use the title() method :
root = (link unavailable)()
root.title(“My GUI App”)
Introduction to Tkinter
Setting the window Icon :
1. Use the iconbitmap() method for Windows :
``
root = (link unavailable)()
root.iconbitmap(“icon.ico”)
``
2. Use the iconphoto() method for macOS and Linux :
``
root = (link unavailable)()
icon = tk.PhotoImage(file=”icon.png”)
root.iconphoto(False, icon)
Layouts in Tkinter
Three layout managers to arrange widgets in window :
1. Pack :
→ Simple and easy to use.
→ widgets are added in a vertical or horizontal box.
→ It can fill, expand, side, padx, pady.
Ex:
``
label = tk.Label(root, text=”Label”)
label.pack(fill=”x”,padx=10,pady=10)
``
Layouts in Tkinter
Three layout managers to arrange widgets in window :
2. Grid :
→ More flexible and powerful.
→ Widgets are arranged in a table-like structure.
→ Options: row, column, stickey, padx, pady.
Ex:
``
label = tk.Label(root, text=”Label”)
label.grid(row=0, column=0, padx=10, pady=10)
``
Layouts in Tkinter
Three layout managers to arrange widgets in window :
3. Place :
→ Precise control over widgets placements.
→ Widgets are placed at specific x, y coordinates.
→ Options: x, y, relx, rely, anchor.
Ex:
``
label = tk.Label(root, text=”Label”)
label.place(x=50, y=50, anchor=“center”)
``
Introduction to Widgets in Layout
Common widgets and their roles in a layout:
1. Label
2. Button
3. Entry
4. Text
5. Frame
6. CheckButton
7. RadioButton
8. ListBox
9. ScrollBar
10. Canvas
11. Menu
12. Scale
Introduction to Grid Layout
It's a Powerful tool for arranging widgets in a table-like structure.
● Rows and Columns : Divide window into rows and columns.
● Widgets : Place widgets in specific cells of the grid.
Grid Operations :
1. Row : Specify the row number
2. Column : Specify the column number.
3. Sticky : Align widget within cell
4. Padx and pady : Add horizontal and vertical padding around widget
5. Rowspan and columnspan : Make widget span multiple rows or columns
Integration using GUI Designing User Interface
Integrating GUI design with user interface design involves creating a
visually appealing and interactive layout for your application.
1. Plan your Layout
2. Choose a color scheme
3. Select fonts
4. Design Widgets
5. Use layout Managers
6. Add Spacing and padding
7. Implement navigation
8. Test and refine
Integration using GUI Events
It involves connecting widgets to actions and events.
1. Define event handlers: Write functions that responds to events.
2. Blind Events to widgets: Use methods like command or bind to
link event handlers to widgets.
3. Handle events: Perform actions when events occur.
Common GUI Events :
● Button clicks
● Key presses
● Mouse clicks
● Window close
Integration using GUI Functions
Connecting widgets to actions and events and using functions to
perform tasks.
1. Define functions : Perform tasks such as calculations, data
processing.
2. Create widget : Add buttons, labels, text entries etc.
3. Bind Functions to widget : Use methods like command or bind
to link functions to widget.
4. Handle events : Respond User Interface.
Common GUI Functions are Button commands, Calculation, Data
validation and file handling functions.
Drop down menu
Customizations of a drop down menu :
● Changing the option list
● Setting a default value using variable.set()
● Using variable.get() to retrieve the selected option
● Blinding a function to the menu selection using variable.trace()
EX:
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
dropdown = ttk.Combobox(root, values=["Option 1",
"Option 2", "Option 3"])
dropdown.pack()
root.mainloop()
Toolbar
Customizations of a Toolbar menu :
● Changing the button text and commands
● Adding more buttons or widgets
● Using pack, grid, place to arrange widgets in the toolbar
● Configuring the toolbar appearance
EX:
import tkinter as tk
root = tk.Tk()
root.title("Simple GUI")
# Run the application
root.mainloop()
Status Bar
Display information about the current state of the application.
Functions of a status bar :
● tk.Label : Display text or image
● tk.Progressbar : display progress of operation
● tk.Button : Performs actions when clicked
EX: label = tk.Label(root, text="This is a simple widget")
label.pack()
status_bar = tk.Label(root, text="Status: Ready", anchor=tk.W)
status_bar.pack(side=tk.BOTTOM, fill=tk.X)
root.mainloop()
Message Box
Display Message to the user
Functions used in Message box :
● askokcancel
● askretrycancel
● askyesno
● askyesnocancel
EX: def show_message():
messagebox.showinfo(”Message”, “Hello world”)
button = tk.Button(root, text=”show message”,
command = show_message)
button.pack()
root.mainloop()
Scale Widget
Allows user to select a value from a continuous range.
Functions used in Scale widget :
● label
● tickinterval
● length
EX: scale = tk.Scale(root, from_=0, to=100, orient =”horizontal”)
scale.pack()
def get_value():
print(scale.get())
button = tk.Button(root, text=”Get value”, command=get_value)
button.pack()
root.mainloop()
SpinBox Widget
Create a single line input field that allows users to enter a value from a specified
range
Functions used in Message box :
● formate
● increment
● wrap
EX: spinbox = (link unavailable)()
root.title(“GUI with spinbox widget”)
def get_value():
print(spinbox.get())
button = tk.Button(root, text=”Get value”, command=get_value)
button.pack()
Graphics and Shape line Graphics
Refers to the visual representation of shapes,lines and other elements.
EX: canvas = tk.Canvas(root, width=400,height=400)
canvas.pack()
canvas.create_line(10, 10, 390, 340, fill=”red”)
canvas.create_rectangle(50, 50, 150,150, fill=”green”)
canvas.create_oval(200, 200, 300, 300, fill=”green”)
root.mainloop()
Graphical Box
A rectangular area in a graphical UI that can contain various elements
Such as..,
1. Text
2. Images
3. Shapes
4. Icons
5. Buttons
6. Other GUI elements
Types of Graphical Boxes :
● Frames
● Panels
● Window
● Dialog boxes
Graphical Shape - Canvas
It can draw and manipulate various shapes such as..,
1. 1. Lines
2. Rectangles
3. Eclipses
4. Polygons
5. Circles
6. Arcs
7. Curves
Customize the shape by using..,
● fill
● outline
● width
● dash
Images in GUI
Add images by using the PhotoImage class for PNG,PPM and PGM
images or the ImageTk module for other formats like JPEG.
EX: image = tk.PhotoImage(file=”image.png)
pil_Image = Image.open(“image.jpg”)
image_tk = ImageTk.PhotoImage(pil_image)
label = tk.Label(root, image=image)
label.pack()
label_tk = tk.Label(root, image=image_tk)
label_tk.pack()
ListBox
Displays a list of items from which a user can select one or more items.
● selectmode : Allows single or multiple selections
● delete : Method to remove items
● Insert : Method to add items at specific positions
● size : To set the number of items displayed.
ComboBox
Combines a text field with a drop down list of options.
● state : read only to prevent user input
● current : Method to set the current option
● Set : Method to set the text entry field
● bind : Method to attach events to the combobox
Treeview
Displays a hierarchical collection of items in a tree like structures.
● selectmode : Allows single or multiple selections.
● delete : Method to remove items.
● Insert : Method to add items at specific positions.
● item : Method to access and modify item attributes.
● bind : method to attach events to the treeview.

More Related Content

Similar to A Complete seminar on GUI Development in python (20)

PPTX
intro_gui
filipb2
 
PPTX
Lesson1 Introduction to GUI and Java Swing Components.pptx
KiRe6
 
PPTX
d1c70870-58fb-4da8-ae54-28d1c44a7347.pptx
pritigaikwad801
 
PDF
Exploring Python GUI Programming_ Creating User-Friendly Applications
swethag283189
 
PDF
Programming Without Coding Technology (PWCT) - Simple GUI Application
Mahmoud Samir Fayed
 
PPTX
Creating-a-Tkinter-Python-Calculator.pptx
ZeelGoyani
 
PPT
Graphical Programming in Python Using Tkinter
IndianInstituteofCom
 
PDF
The Ring programming language version 1.5.1 book - Part 67 of 180
Mahmoud Samir Fayed
 
PDF
Unit 5-Introduction of GUI Programming-Part1.pdf
Harsha Patil
 
PDF
Gui builder
learnt
 
PPT
08graphics
Waheed Warraich
 
PPT
06 win forms
mrjw
 
PPTX
Tkinter_GUI_Programming_in_Pythovvn.pptx
MohamedHany892810
 
PPTX
Tkinter_GUI_Programming_in_Pythovvn.pptx
MohamedHany892810
 
PPT
GUI -THESIS123
Aparna Reddy
 
PDF
Gui
Sardar Alam
 
PDF
Tkinter_GUI_Programming_in_Python.pdf
ArielManzano3
 
PDF
Tkinter_GUI_Programming_in_ Python.pdf
AnmolMogalai
 
PDF
Programming Without Coding Technology (PWCT) - Timer control
Mahmoud Samir Fayed
 
PPTX
Chapter 1
gebrsh
 
intro_gui
filipb2
 
Lesson1 Introduction to GUI and Java Swing Components.pptx
KiRe6
 
d1c70870-58fb-4da8-ae54-28d1c44a7347.pptx
pritigaikwad801
 
Exploring Python GUI Programming_ Creating User-Friendly Applications
swethag283189
 
Programming Without Coding Technology (PWCT) - Simple GUI Application
Mahmoud Samir Fayed
 
Creating-a-Tkinter-Python-Calculator.pptx
ZeelGoyani
 
Graphical Programming in Python Using Tkinter
IndianInstituteofCom
 
The Ring programming language version 1.5.1 book - Part 67 of 180
Mahmoud Samir Fayed
 
Unit 5-Introduction of GUI Programming-Part1.pdf
Harsha Patil
 
Gui builder
learnt
 
08graphics
Waheed Warraich
 
06 win forms
mrjw
 
Tkinter_GUI_Programming_in_Pythovvn.pptx
MohamedHany892810
 
Tkinter_GUI_Programming_in_Pythovvn.pptx
MohamedHany892810
 
GUI -THESIS123
Aparna Reddy
 
Tkinter_GUI_Programming_in_Python.pdf
ArielManzano3
 
Tkinter_GUI_Programming_in_ Python.pdf
AnmolMogalai
 
Programming Without Coding Technology (PWCT) - Timer control
Mahmoud Samir Fayed
 
Chapter 1
gebrsh
 

Recently uploaded (20)

PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Ad

A Complete seminar on GUI Development in python

  • 2. Introduction to GUI Programming Designing and building graphical interfaces that allow users to interact with software using visual elements. ● Widgets: Basic visual elements like buttons labels, text boxes, and menus. ● Layout: Arranging widgets in a window or container. ● Events: User interactions like clicks, key presses, and mouse movements. ● Event Handling: Writing code to respond events.
  • 3. Introduction to GUI Programming GUI Frameworks 1. Tkinter: Built-in python library for creating simple GUIs. 2. PyQt: Powerful framework for building complex GUIs 3. wxPython: Cross-platform framework for building GUIs. 4. JavaFX: Modern framework for building GUIs. 5. Swing : Older framework for building GUIs. Basic Steps: → Choose a framework → Design the interface → Write event handlers → Assemble the GUI → Test and refine
  • 4. Installing PyCharm Windows : → Download PyCharm installer. → Run installer and follow prompts. → Choose installation location and components. MacOs : → Download PyCharm disk image. → Drag PyCharm icon to Application folder. → Launch PyCharm. Addition Steps : → Activate PyCharm with license. → Configure project interpreter. → Install additional plugins
  • 5. Introduction to GUI Programming on PyCharm Step - 1 : Create a New project Step - 2 : Install GUI library Stap - 3 : Create a GUI window Step - 4 : Add GUI widgets Step - 5 : Run the GUI App
  • 6. Introduction to Tkinter Tkinter is a python’s de-facto standard GUI package. Tkinter Widgets : 1. Label : Displays text or images. 2. Button : A Clickable button. 3. Entry : A text input field. 4. Text : A multi-line text box. 5. Frame: A container for other widgets.
  • 7. Introduction to Tkinter Basic Tkinter Concepts : 1. Root Window : The main application window. 2. Widgets : GUI elements like buttons, labels, etc. 3. Layout Managers : Arrange widgets in the window. 4. Events : User interaction like clicks,key presses, etc 5. Callbacks : Functions that handle events.
  • 8. Introduction to Tkinter Titles : Setting the window title : 1. Use the title() method : root = (link unavailable)() root.title(“My GUI App”)
  • 9. Introduction to Tkinter Setting the window Icon : 1. Use the iconbitmap() method for Windows : `` root = (link unavailable)() root.iconbitmap(“icon.ico”) `` 2. Use the iconphoto() method for macOS and Linux : `` root = (link unavailable)() icon = tk.PhotoImage(file=”icon.png”) root.iconphoto(False, icon)
  • 10. Layouts in Tkinter Three layout managers to arrange widgets in window : 1. Pack : → Simple and easy to use. → widgets are added in a vertical or horizontal box. → It can fill, expand, side, padx, pady. Ex: `` label = tk.Label(root, text=”Label”) label.pack(fill=”x”,padx=10,pady=10) ``
  • 11. Layouts in Tkinter Three layout managers to arrange widgets in window : 2. Grid : → More flexible and powerful. → Widgets are arranged in a table-like structure. → Options: row, column, stickey, padx, pady. Ex: `` label = tk.Label(root, text=”Label”) label.grid(row=0, column=0, padx=10, pady=10) ``
  • 12. Layouts in Tkinter Three layout managers to arrange widgets in window : 3. Place : → Precise control over widgets placements. → Widgets are placed at specific x, y coordinates. → Options: x, y, relx, rely, anchor. Ex: `` label = tk.Label(root, text=”Label”) label.place(x=50, y=50, anchor=“center”) ``
  • 13. Introduction to Widgets in Layout Common widgets and their roles in a layout: 1. Label 2. Button 3. Entry 4. Text 5. Frame 6. CheckButton 7. RadioButton 8. ListBox 9. ScrollBar 10. Canvas 11. Menu 12. Scale
  • 14. Introduction to Grid Layout It's a Powerful tool for arranging widgets in a table-like structure. ● Rows and Columns : Divide window into rows and columns. ● Widgets : Place widgets in specific cells of the grid. Grid Operations : 1. Row : Specify the row number 2. Column : Specify the column number. 3. Sticky : Align widget within cell 4. Padx and pady : Add horizontal and vertical padding around widget 5. Rowspan and columnspan : Make widget span multiple rows or columns
  • 15. Integration using GUI Designing User Interface Integrating GUI design with user interface design involves creating a visually appealing and interactive layout for your application. 1. Plan your Layout 2. Choose a color scheme 3. Select fonts 4. Design Widgets 5. Use layout Managers 6. Add Spacing and padding 7. Implement navigation 8. Test and refine
  • 16. Integration using GUI Events It involves connecting widgets to actions and events. 1. Define event handlers: Write functions that responds to events. 2. Blind Events to widgets: Use methods like command or bind to link event handlers to widgets. 3. Handle events: Perform actions when events occur. Common GUI Events : ● Button clicks ● Key presses ● Mouse clicks ● Window close
  • 17. Integration using GUI Functions Connecting widgets to actions and events and using functions to perform tasks. 1. Define functions : Perform tasks such as calculations, data processing. 2. Create widget : Add buttons, labels, text entries etc. 3. Bind Functions to widget : Use methods like command or bind to link functions to widget. 4. Handle events : Respond User Interface. Common GUI Functions are Button commands, Calculation, Data validation and file handling functions.
  • 18. Drop down menu Customizations of a drop down menu : ● Changing the option list ● Setting a default value using variable.set() ● Using variable.get() to retrieve the selected option ● Blinding a function to the menu selection using variable.trace() EX: import tkinter as tk from tkinter import ttk root = tk.Tk() dropdown = ttk.Combobox(root, values=["Option 1", "Option 2", "Option 3"]) dropdown.pack() root.mainloop()
  • 19. Toolbar Customizations of a Toolbar menu : ● Changing the button text and commands ● Adding more buttons or widgets ● Using pack, grid, place to arrange widgets in the toolbar ● Configuring the toolbar appearance EX: import tkinter as tk root = tk.Tk() root.title("Simple GUI") # Run the application root.mainloop()
  • 20. Status Bar Display information about the current state of the application. Functions of a status bar : ● tk.Label : Display text or image ● tk.Progressbar : display progress of operation ● tk.Button : Performs actions when clicked EX: label = tk.Label(root, text="This is a simple widget") label.pack() status_bar = tk.Label(root, text="Status: Ready", anchor=tk.W) status_bar.pack(side=tk.BOTTOM, fill=tk.X) root.mainloop()
  • 21. Message Box Display Message to the user Functions used in Message box : ● askokcancel ● askretrycancel ● askyesno ● askyesnocancel EX: def show_message(): messagebox.showinfo(”Message”, “Hello world”) button = tk.Button(root, text=”show message”, command = show_message) button.pack() root.mainloop()
  • 22. Scale Widget Allows user to select a value from a continuous range. Functions used in Scale widget : ● label ● tickinterval ● length EX: scale = tk.Scale(root, from_=0, to=100, orient =”horizontal”) scale.pack() def get_value(): print(scale.get()) button = tk.Button(root, text=”Get value”, command=get_value) button.pack() root.mainloop()
  • 23. SpinBox Widget Create a single line input field that allows users to enter a value from a specified range Functions used in Message box : ● formate ● increment ● wrap EX: spinbox = (link unavailable)() root.title(“GUI with spinbox widget”) def get_value(): print(spinbox.get()) button = tk.Button(root, text=”Get value”, command=get_value) button.pack()
  • 24. Graphics and Shape line Graphics Refers to the visual representation of shapes,lines and other elements. EX: canvas = tk.Canvas(root, width=400,height=400) canvas.pack() canvas.create_line(10, 10, 390, 340, fill=”red”) canvas.create_rectangle(50, 50, 150,150, fill=”green”) canvas.create_oval(200, 200, 300, 300, fill=”green”) root.mainloop()
  • 25. Graphical Box A rectangular area in a graphical UI that can contain various elements Such as.., 1. Text 2. Images 3. Shapes 4. Icons 5. Buttons 6. Other GUI elements Types of Graphical Boxes : ● Frames ● Panels ● Window ● Dialog boxes
  • 26. Graphical Shape - Canvas It can draw and manipulate various shapes such as.., 1. 1. Lines 2. Rectangles 3. Eclipses 4. Polygons 5. Circles 6. Arcs 7. Curves Customize the shape by using.., ● fill ● outline ● width ● dash
  • 27. Images in GUI Add images by using the PhotoImage class for PNG,PPM and PGM images or the ImageTk module for other formats like JPEG. EX: image = tk.PhotoImage(file=”image.png) pil_Image = Image.open(“image.jpg”) image_tk = ImageTk.PhotoImage(pil_image) label = tk.Label(root, image=image) label.pack() label_tk = tk.Label(root, image=image_tk) label_tk.pack()
  • 28. ListBox Displays a list of items from which a user can select one or more items. ● selectmode : Allows single or multiple selections ● delete : Method to remove items ● Insert : Method to add items at specific positions ● size : To set the number of items displayed.
  • 29. ComboBox Combines a text field with a drop down list of options. ● state : read only to prevent user input ● current : Method to set the current option ● Set : Method to set the text entry field ● bind : Method to attach events to the combobox
  • 30. Treeview Displays a hierarchical collection of items in a tree like structures. ● selectmode : Allows single or multiple selections. ● delete : Method to remove items. ● Insert : Method to add items at specific positions. ● item : Method to access and modify item attributes. ● bind : method to attach events to the treeview.