To create a list of items with a scrollable widget, Tkinter provides the Listbox widget. With the Listbox widget, we can create a list that contains items called List items. Depending upon the configuration, the user can select one or multiple items from the list.If we want to clear the items in the Listbox widget, we can use the delete(0, END) method. Besides deleting all the items in the Listbox, we can delete a single item as well by selecting an item from the Listbox, i.e., by using currselection() method to select an item and delete it using the delete() ... Read More
The Tkinter Toplevel window creates an additional window apart from the main window. We can add widgets and components to the newly created top-level window. It supports all the properties of the parent or main window.Sometimes the Toplevel window is also referred to as the child window. To put the child window in front of the parent window, we can use the wm_transient() method.Example# Import the required libraries from tkinter import * from tkinter import ttk # Create an instance of tkinter frame or window win=Tk() # Set the size of the window win.geometry("700x350") win.title("Parent Window") # ... Read More
The treeview widget in Tkinter provides a way to represent the data in a hierarchical structure. With the Treeview widget, we can insert our data in the form of a table. The table can have rows and columns in which we can insert the data instantly.We can also configure the properties of the treeview widget such as its color, size, column width, height, row width & height, etc. To set the row height of the Treeview widget, you can create an instance of ttk themed widget where you can specify the rowheight property. The rowheight property will add internal padding ... Read More
The Scrollbar widget in tkinter is one of the useful widgets that is used to pack the container elements and their contents with a scrollbar. With Scrollbars, we can view large sets of data very efficiently.Generally, Tkinter allows to add vertical and horizontal scrollbar in the application. By default, the vertical scrollbars are available in the constructor and we don't need to have an orientation for the scrollbar. To attach a vertical scrollbar in a Tkinter text widget, you can use xscrollcommand and yscrollcommmand to set the value of vertical and horizontal scrollbars.Example# Import the required library from tkinter import ... Read More
The Scrollbar widget in tkinter is one of the useful widgets that is used to pack the container elements and their contents with a scrollbar. With Scrollbars, we can view large sets of data very efficiently.Generally, Tkinter allows to add vertical and horizontal scrollbars. To add a horizontal scrollbar in an application, we've to use the orientation as Horizontal in the scrollbar constructor.ExampleLet us create a text editor that contains a horizontal scrollbar in it.# Import the required library from tkinter import * from tkinter import ttk from tkinter import messagebox # Create an instance of tkinter frame win=Tk() ... Read More
When it comes to consumption and production, the knowledge economy refers to a system founded on intellectual capital. The capacity to profit on scientific discoveries, as well as fundamental and applied research, is specifically referred to as innovation. These activities have grown to constitute a significant portion of all business growth in most industrialized nations.There are intangible assets that every employer monitor and some examples is the knowledge and intellectual property provided by the employees as it may contributesignificantly to the growth of the company.Key Points BrieflyMost developed countries around the world lay importance on academic and scientific research that ... Read More
The Window Manager is a toolkit available in Tcl/Tk that can be accessed with the command 'wm'. The 'wm' command allows you to set the appearance and geometry of the Tkinter window. We can control the title, color, size, and other attributes with this command. The 'wm' command has numerous keywords that can be used to modify its property.Example# Import the required library from tkinter import * from tkinter import ttk from tkinter import messagebox # Create an instance of tkinter frame win=Tk() # Set the geometry win.geometry("700x350") Label(win, text="This window is disabled.", font=("Calibri, 24")).pack() ... Read More
The Button widget in Tkinter is generally used for pushing an event defined in an application. We can bind the events with buttons that allow them to execute and run whenever an action is triggered by the user.However, sharing the data and variables outside the function and events seems difficult sometimes. With the Button widget, we can pass arguments and data that allows the user to share and execute the event.In general, passing the arguments to a button widget allows the event to pick the arguments and use them further in the program.Example# Import the required library from tkinter import ... Read More
Kiting is the deceptive use of a financial asset to acquire extra credit that has not been approved by the lender in advance. Kiting is comprised of two major kinds of deception −Despite insufficient balance in the bank checque get’s issued or altered.Misrepresenting the worth of a financial asset for the aim of prolongating credit obligations or growing financial leverage is considered fraud in the financial industry.Key Points BrieflyKiting is the unlawful use of financial products in order to acquire more credit by deceiving the lending institution.Cheque kiting is a kind of fraud that targets banks or merchants by issuing ... Read More
Tkinter is a standard Python library that is used to create and develop GUI-based applications. We can create an application in Tkinter and add widgets to it that make the application more interactive.Let's suppose we want to show a popup dialog in an application. In this case, we can use the built-in messagebox module in tkinter. It allows us to show the various dialog boxes such as errors, info box, confirmation boxes, etc.ExampleIn this example, we've created a button, which upon clicking will show a popup message on the screen.# Import the required library from tkinter import * from tkinter ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP