Introduction To Pytohon in GUI
Introduction To Pytohon in GUI
https://www.tutorialspoint.com/pyqt5/pyqt5_using_qt_designer.htm
Tkinter is Python's standard GUI (Graphical User Interface) package.
tkinter provides us with a variety of common GUI elements which we
can use to build out interface – such as buttons, menus and
various kind of entry fields and display areas. We call these
elements Widgets.
Tkinter
is a Python interface to the Tk GUI library and has been a part of the
Python standard library since 1994 with the release of Python version
1.1, making it the de facto GUI library for Python. Documentation for
Tkinter, along with links for further study, can be found in the
standard library documentation at
https://docs.python.org/3/library/tkinter.html
Introducing IDLE
show - it is used to show the entry text of some other type instead
of the string, for example, the password is typed using starts
(*).
textvariable - it is set to the instance of the StringVar to retrieve the
text from the entry.
padx, pady - additional padding of the text. The padx puts some space
between the button widgets and between the
closeButton and the right border of the root
window. The pady puts some space between the
button widgets and the borders of the frame and
the borders of the root window.
Creating a Window
import tkinter
Window_Name=tkinter.Tk()
Window_Name.mainloop()
Is a infinite loop used to run application, wait for an event to
occur and process the event as long as the window is not closed.
Windows Attributes
resizable (w, h)
-this method is instructs window manager if this window can be
resize or not