Dev Prakash Sharma has Published 548 Articles

How to take a screenshot of the window using Python?(Tkinter)

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:23:27

3K+ Views

Python has a rich library of modules and functions that allows us to build and develop featured applications. Tkinter is a well-known Python library that is used for creating GUIbased applications. If we want to develop an application that takes a screenshot of the window, then we can definitely use ... Read More

How to create a directly-executable cross-platform GUI app using Python(Tkinter)?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:13:32

2K+ Views

Python is a programming language which can be used to create cross-platform applications that are supported in various operating systems such as Microsoft Windows, Mac OS, and Linux.To create a GUI-based application, we can use the Tkinter library. However, Python provides different modules and extensions which convert a program into ... Read More

How to read multiple text files from a folder in Python?(Tkinter)

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:12:49

7K+ Views

Python is capable of handling files, objects, and creating different applications. We can use Python's extensions and packages to build and develop fully featured applications.Suppose you want to control the files in your system; then Python provides an OS Module which has system-enabled functionalities to allow you interact with the ... Read More

How do I get the background color of a Tkinter Canvas widget?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 10:14:06

2K+ Views

Tkinter canvas widget is used for many different purposes such as adding objects, drawing shapes, images and complex visuals to a graphical interface in an application. We can also configure its style such as background color, foreground color, and other properties using the configure properties or passing attributes.Suppose we want ... Read More

How to remove Ttk Notebook Tab Dashed Line? (tkinter)

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 10:12:19

1K+ Views

In order to work with Tabs and separate your workflow in an application, Tkinter provides a Notebook widget. We can use the Notebook widget to create Tabs in an application. Tabs are useful to isolate one particular frame or event from another.Generally, Notebook widget can be configured and styled using ... Read More

How to use rgb color codes in tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 10:09:02

7K+ Views

Tkinter has many inbuilt features and attributes that help the application developer to build a robust and featured application. We can set the attributes such as background color, foreground color, and other properties of a widget using the configure method in Tkinter.To set the background color or foreground color of ... Read More

How to bind the Escape key to close a window in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 10:06:45

6K+ Views

Tkinter Events are very useful for making an application interactive and functional. It provides a way to interact with the internal functionality of the application and helps them to rise whenever we perform a Click or Keypress event.In order to schedule the events in tkinter, we generally use the bind('Button', ... Read More

How to create a modal dialog in tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 10:04:45

6K+ Views

Dialog Boxes are a very essential component of any application. It is generally used to interact with the user and the application interface. We can create dialog boxes for any tkinter application using the Toplevel window and other widgets. The toplevel window pops up the stuff above all the other ... Read More

How to clear items from a ttk.Treeview widget?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 10:01:04

10K+ Views

Generally, Tkinter treeview widget is used to draft or construct tables for the given data points in the input. We can even add items in the treeview widget to maintain a nested list in an application. If we want to remove or clear all the items in a given treeview widget, ... Read More

How to show and hide widgets in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:57:23

17K+ Views

Tkinter is a Python library which is used to create and develop GUI-based applications.Let us suppose that we have to create an application such that we can show or hide the widgets.In order to display/show the widget, use pack() geometry managerTo hide any widget from the application, use pack_forget() method.ExampleLet ... Read More

Advertisements