- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Dev Prakash Sharma has Published 556 Articles
Dev Prakash Sharma
19K+ Views
The frame widget in Tkinter works like a container where we can place widgets and all the other GUI components. To change the frame width dynamically, we can use the configure() method and define the width property in it.ExampleIn this example, we have created a button that is packed inside ... Read More
Dev Prakash Sharma
13K+ Views
We can use the Tkinter Label widget to display text and images. By configuring the label widget, we can dynamically change the text, images, and other properties of the widget.To dynamically update the Label widget, we can use either config(**options) or an inline configuration method such as for updating the ... Read More
Dev Prakash Sharma
1K+ Views
A color gradient defines the range of position-dependent colors. To be more specific, if you want to create a rectangular scale in an application that contains some color ranges in it (gradient), then we can follow these steps −Create a rectangle with a canvas widget and define its width and ... Read More
Dev Prakash Sharma
9K+ Views
The radiobutton widget in Tkinter allows the user to make a selection for only one option from a set of given choices. The radiobutton has only two values, either True or False.If we want to get the output to check which option the user has selected, then we can use ... Read More
Dev Prakash Sharma
3K+ Views
Tkinter comes with a handy built-in functionality to handle common text and images related objects. A label widget annotates the user interface with text and images. We can provide any text or images to the label widget so that it displays in the application window.Let us suppose that for a ... Read More
Dev Prakash Sharma
8K+ Views
In tkinter, we can create text widgets using Text attributes using packages. However, while creating a GUI application, sometimes we need to capture the input from a text widget.We can get the input from the user in a text widget using the .get() method. We need to specify the input ... Read More
Dev Prakash Sharma
7K+ Views
Tkinter Label widgets are generally used to display text or images. In this example, we will see how to add a hyperlink on a Label widget in an application.In order to add a hyperlink, we can bind the label text with a button that makes it clickable. The open_new(url) method ... Read More
Dev Prakash Sharma
2K+ Views
The OptionMenu allows users to select an option from the given menu of items. To prepare an OptionMenu, we use the OptionMenu(arguments) constructor, which takes the parent widget, a variable to store the options, the default option, and selectable options. However, in some cases, we can find that the options width ... Read More
Dev Prakash Sharma
14K+ Views
Tkinter provides a way to bind the widget to perform certain operations. These operations are defined in a function that can be called by a particular widget. The bind(, function()) method is used to bind the keyboard key to handle such operations. We can also bind a particular key to ... Read More
Dev Prakash Sharma
19K+ Views
Tkinter label widgets are used to display text and images in the application. We can also configure the properties of Label widget that are created by default in a tkinter application.If we want to delete a label that is defined in a tkinter application, then we have to use the ... Read More