Commonly there are 2 types of interfaces for desktops - command-line interface (CLI) where users interact with the system by writing commands, and a Graphical User Interface (GUI) where users interact with the system through visual widgets such as buttons, menus, windows etc. Python provides a lot of libraries to create cross-platform GUIs such as Tkinter, Pymsgbox, Pyqt, and much more. In this series of articles, we will study the Tkinter package.
In this article, we will learn
● Basics of Tkinter
● Introduction to Tkinter Widgets
● Tkinter Hello World App
● Tkinter Button
● Tkinter Entry Widget
Basics Of TkinterTkinter is an Inbuilt library commonly used for GUI development. The underlying implementation of Tkinter is in C language.
The basic structure of the Tkinter program is like this...
- Import tkinter
- Create root i.e. main window of App
- Attach widgets such as Buttons, Menu, Inputs etc.
- Create Infinite event loop
Widget is an entity such as GUI button, sidebar, menu that provides user interaction
from Planet SciPy
read more
No comments:
Post a Comment