Dev Prakash Sharma has Published 548 Articles

How to code the tkinter "scrolledtext" module?

Dev Prakash Sharma

Dev Prakash Sharma

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

2K+ 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

17K+ 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

4K+ 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

2K+ 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

1K+ 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

505 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

4K+ 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

TkInter keypress, keyrelease events

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:18:36

13K+ Views

Tkinter Events are generally used to provide an interface that works as a bridge between the User and the application logic. We can use Events in any Tkinter application to make it more interactive and functional. Events like and are used to call a specific function only when ... Read More

List of All Tkinter Events

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 07-Jun-2021 11:16:11

14K+ Views

Tkinter is a Python library which is used to create GUI-based application. Tkinter comes with many inbuilt features and extensions which can be used to optimize the application performance and behaviour. Tkinter Events are generally used to provide an interface that works as a bridge between the User and the ... Read More

Advertisements