0% found this document useful (0 votes)
2 views5 pages

Gui

A GUI (graphical user interface) is an interactive visual system for software that allows users to perform actions through objects like icons and buttons, making it more user-friendly than command-line interfaces. Developed in 1981 at Xerox PARC, GUIs dominate the market today, with examples including Microsoft Windows and macOS. Python's Tkinter is a standard library for creating GUIs, providing an easy way to build applications with various widgets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Gui

A GUI (graphical user interface) is an interactive visual system for software that allows users to perform actions through objects like icons and buttons, making it more user-friendly than command-line interfaces. Developed in 1981 at Xerox PARC, GUIs dominate the market today, with examples including Microsoft Windows and macOS. Python's Tkinter is a standard library for creating GUIs, providing an easy way to build applications with various widgets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

GUI [graphical user interface]:

A GUI (graphical user interface) is a system of interactive visual


components for computer software. A GUI displays objects that convey
information, and represent actions that can be taken by the user. The
objects change color, size, or visibility when the user interacts with
them.

GUI objects include icons, cursors, and buttons. These graphical


elements are sometimes enhanced with sounds, or visual effects
like transparency and drop shadows.

A GUI is considered to be more user-friendly than a text-


based command-line interface, such as MS-DOS, or
the shell of Unix-like operating systems.

The GUI was first developed at Xerox PARC by Alan Kay, Douglas
Engelbart, and a group of other researchers in 1981.
Later, Apple introduced the Lisa computer with a GUI on January
19, 1983.

How do you pronounce GUI

GUI is pronounced by saying each letter (G-U-I). It


sometimes is also pronounced as "gooey."

How does a GUI work?

A GUI uses windows, icons, and menus to carry out


commands, such as opening, deleting, and moving files. Although a GUI
operating system is primarily navigated using a mouse, a keyboard can
also be used via keyboard shortcuts or the arrow keys.
As an example, if you wanted to open a program on a GUI system, you
would move the mouse pointer to the program's icon and double-click it.

What are the benefits of GUI?


Unlike a command- line operating system or CUI,
like Unix or MS-DOS, GUI operating systems are easier to learn and use
because commands do not need to be memorized. Additionally, users do
not need to know any programming languages. Because of their ease of
use and more modern appearance, GUI operating systems have come to
dominate today's market.
What are examples of a GUI operating system?

 Microsoft Windows

 Apple System 7 and macOS

 Chrome OS

 Linux variants like Ubuntu using a GUI

interface.
Are all operating systems GUI?

No. Early command line operating systems


like MS-DOS and even some versions of Linux today have no GUI
interface.
What are examples of a GUI interface?

1. GNOME
2. KDE
3. Any Microsoft program,
including Word, Excel, and Outlook.
4. Internet browsers, such as Internet
Explorer, Chrome, and Firefox.

How does the user interact with a GUI?

A pointing device, such as the mouse, is used to interact with


nearly all aspects of the GUI. More modern (and mobile) devices also
utilize a touch screen. However, as stated in previous sections, it is also
possible to navigate a GUI using a keyboard.

Does a GUI require a mouse?


No. Nearly all GUI interfaces, including Microsoft Windows,
have options for navigating the interface with a keyboard only.
GUI WITH TKINTER:

Python provides various options for developing graphical


user interfaces (GUIs). Most important are listed below.

 Tkinter − Tkinter is the Python interface to the Tk GUI toolkit


shipped with Python. We would look this option in this chapter.
 wxPython − This is an open-source Python interface for
wxWindows http://wxpython.org.
 JPython − JPython is a Python port for Java which gives Python
scripts seamless access to Java class libraries on the local
machine http://www.jython.org

There are many other interfaces available, which you can find them on
the net.

Tkinter Programming:
Tkinter is the standard GUI library for Python. Python when
combined with Tkinter provides a fast and easy way to create GUI
applications. Tkinter provides a powerful object-oriented interface to the
Tk GUI toolkit.

Creating a GUI application using Tkinter is an easy task. All you need
to do is perform the following steps

 Import the Tkinter module.


 Create the GUI application main window.
 Add one or more of the above-mentioned widgets to the GUI
application.
 Enter the main event loop to take action against each event
triggered by the user.

Example:
#!/usr/bin/python
import Tkinter
top = Tkinter.Tk()
# Code to add widgets will go here...
top.mainloop()

Tkinter Widgets:
Tkinter provides various controls, such as buttons, labels and text
boxes used in a GUI application. These controls are commonly called
widgets.

You might also like