From e86b14a00e3945e2f5efc3b8577b4cc839dc4c98 Mon Sep 17 00:00:00 2001 From: sharklab7 <55528399+sharklab7@users.noreply.github.com> Date: Thu, 1 Oct 2020 10:12:35 +0530 Subject: [PATCH] Update README.md Changes in Documentations with a Boiler Plate of Tkinter. Basic informative notes of Tkinter. --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index fa505cc..7b2a485 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ # TkinterPractice Practicing with Tkinter for Graphical User Interfaces in Python + +-----------------------------------BASICS------------------------------------------------ +Python = is a Dynamically Typed, Object Oriented Programming Language +----------------------------------------------------------------------------------------- +Tkinter = Inbuilt Python module --> to create simple GUI apps + = Standard Python interface to Tk GUI toolkit. + + Tkinter is the standard GUI library for Python. + Python when combined with Tkinter provides a fast and easy way to create GUI applications. + +Tk = is the toolkit + +mainloop() = Most important function while working with Tkinter. = You must call mainloop only one time. = It is an infinite loop. + +-----------------------------BASIC Code for Tkinter---------------------------------- + +from tkinter import * +root = Tk() # 'root' is object of 'Tk' class + # creates a basic gui # basic default compoments present in GUI + # A base is created -> for GUI Development + # we can create button, menu bar,etc on this base + +root.mainloop() # event loop -> called only once +-------------------------------------------------------------------------------------------