Use Window Manager wm_attributes in Tkinter

Dev Prakash Sharma
Updated on 05-Aug-2021 14:13:10

5K+ Views

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

Passing Arguments to a Tkinter Button Command

Dev Prakash Sharma
Updated on 05-Aug-2021 14:11:57

6K+ Views

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

What is Kiting? Definition and Example

M S Faisal
Updated on 05-Aug-2021 14:11:43

781 Views

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

Get a Popup Dialog in Tkinter Python

Dev Prakash Sharma
Updated on 05-Aug-2021 14:10:23

4K+ Views

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

What Exactly is a Kiosk?

M S Faisal
Updated on 05-Aug-2021 14:09:46

834 Views

Generally speaking, a kiosk is a tiny, temporary, stand-alone booth that is placed in high-traffic locations for the purpose of marketing. A kiosk is often staffed by one or two people who work together to draw attention to the booth in order to get new clients.Key Points BrieflyKiosk is used by small and large businesses and they are generally temporary, stand alone booth located to attract consumers and promote brand.There could be just a couple of people incharge of a Kiosk or in some modern situations, they are automated.These are considered to be cost-effective solitons for small businesses and attract ... Read More

Use PIL with Tkinter

Dev Prakash Sharma
Updated on 05-Aug-2021 14:06:51

4K+ Views

The PIL or Pillow package in Python provides a way to process images in a program. We can open an image, manipulate the image for different use, and can use it to visualize the data as well. In order to use the PIL package in Tkinter, you've to install the Python Pillow library in your environment.To install Pillow, just type pip install pillow. Once the installation has been successful, you can import the module in your project and use it for further implementation.ExampleIn this example, we've displayed an image in the canvas widget using Python Pillow package.# Import the required ... Read More

Kin Currency Analysis and How to Use

M S Faisal
Updated on 05-Aug-2021 14:05:39

113 Views

The popular messaging service application Kik introduced their own cryptocurrency to reward users, and it is called Kin. This could be earned by several members who participate on the messaging platform of Kik as reward points. The incentive provided by the company is to use these points to make other purchases.Key Points BrieflyThe social media application Kik offered its users a cryptocurrency in 2017 through an initial coin offering.The company has claimed to have raised over $100 Million from that offering.The company enjoyed great success mainly because of the vast number of users that they enjoy when compared to other ... Read More

Add a Separator in Menu Item in Tkinter

Dev Prakash Sharma
Updated on 05-Aug-2021 14:04:36

3K+ Views

The Tkinter Menu widget is used to create a dropdown menu in an application. With menu widgets, we can select an item from the menu and run a specific task in the application.In many applications, we see a dotted separator line that separates the menu items in the menu. The separator separates the menu item of one type from another, and we can use it to visualize the hierarchy of the menu items. To create a separator among the menu items, you can use the add_separator() method.Example# Import the required libraries from tkinter import * from tkinter import ttk ... Read More

Draw a Dot on Canvas on Click Event in Tkinter Python

Dev Prakash Sharma
Updated on 05-Aug-2021 14:02:52

4K+ Views

Consider a case for creating a GUI application such that when we click on the window with a mouse button, it stores the coordinates and draws a dot. Tkinter provides events that allow the user to bind the keys or buttons with the functions.To draw a dot on click event, we can follow these general steps −Create a canvas widget and pack it to display in the window.Define a function draw_dot() that works as the event when the user does the click event.Create a global variable that counts the number of clicks in the canvas.If the count becomes two, then ... Read More

What is the Kenyan Shilling (KES) and How it Works in Finance Management

M S Faisal
Updated on 05-Aug-2021 14:00:34

338 Views

The Kenyan Shilling (KES) is the main currency of the Republic of Kenya. It is also used in Kenya, the Sudan, and Somalia, among other countries in Africa. The shilling is subdivided into 100 cents, with each cent representing one penny. Prices often contain the abbreviation KSh, as in "100 KSh" to refer to one hundred shillings, or "100 KSh" to refer to one hundred shillings. KES is the trade symbol for the foreign exchange market (FX).KES/USD exchange rates touched a record high in 2009 at about 75 shillings per US dollar, but the rate steadily declined over the following ... Read More

Advertisements