Dev Prakash Sharma has Published 556 Articles

How to use the "native" GUI look with Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:40:34

425 Views

We generally use Tkinter to develop standard GUI-based applications with default style and theme applied to all the widgets in it. To change the overall style of the application GUI, we use the ttk package. The Tkinter ttk is a themed widget which is used to style the tkinter widgets. ... Read More

What's the difference between "update" and "update_idletasks" in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:39:10

9K+ Views

Update method processes all the pending idle tasks, unvisited events, calling functions, and callbacks. The method is applicable for updating and processing all the events or tasks such as redrawing widgets, geometry management, configuring the widget property, etc.It also ensures that if the application has any pending tasks, then it ... Read More

How to code the tkinter "scrolledtext" module?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:37:17

1K+ Views

A widget in a Tkinter application can be configured easily by adding extensions and properties to it. The Text widget in tkinter is used to accept multiline user input. We can make the text inside the Text widget Scrollable by adding a scrollbar to it.The ScrolledText Widget is also available ... Read More

How to display multiple lines of text in Tkinter Label?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:34:35

13K+ Views

Tkinter Label widgets are created by defining the Label(parent, **options) constructor in the program. We use the Label widget to display Text or Images in any application. If we want to display a text, we have to assign a value to the text attribute in the constructor. You can also ... Read More

What is the correct way to implement a custom popup Tkinter dialog box?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:33:08

2K+ Views

Tkinter has many inbuilt functions and modules which are already implemented in Python. The MessageBox module in Tkinter is one of them that can be used in any application, just by using its associated function. The only limitation with these packages is that we cannot modify or change the MessageBox ... Read More

Specify the dimensions of a Tkinter text box in pixels

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:30:01

3K+ Views

You can set the position of a text widget by specifying its dimension using place(**option) geometry manager. Instantiating a widget inside a frame makes the widget independent throughout the application window. We then use the place()geometry manager to assign the width and height of the widget inside the window. The ... Read More

How can we run Matplotlib in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:28:29

1K+ Views

Python Matplotlib library is helpful in many applications for visualizing the given data and information in terms of graphs and plots. It is possible to run matplotlib in a Tkinter application. Generally, importing any Python library explicitly in an application gives access to all its functions and modules in the ... Read More

When do I need to call the main loop in a Tkinter application?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:23:58

821 Views

Python Tkinter is a standard library that is used to develop GUI-based featured and functional applications. Whenever we execute our application, it displays a general window that contains some widgets and a title bar in it. The mainloop() method is responsible for executing the script and displaying the output window. ... Read More

How do I use Tkinter in Python to create line-wrapped text that fills the width of the window?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:22:51

351 Views

Tkinter provides Text widget to input data in a text field. It can accept multiline user input. Tkinter includes many inbuilt properties and features that can be used to improve the look and feel of the context. The text written in Text widget can be wrapped with wrap property. The ... Read More

Creating a tkinter GUI layout using frames and grid

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:20:23

3K+ Views

Tkinter is a well-known Python library for creating GUI-based applications. You can create a fully featured application with the help of widgets, functions, and modules that are already present in Tkinter library.Sometimes, selecting the right GUI of the application becomes a daunting task for many of us. Tkinter comes with ... Read More

Advertisements