Dev Prakash Sharma has Published 414 Articles

Save File Dialog Box in Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 20-Aug-2021 16:20:01

15K+ Views

We often use Open and Save Dialog. They are common across many applications and we already know how these dialogs work and behave. For instance, if we click on open, it will open a dialog to traverse the location of the file. Similarly, we have the Save Dialog.We can create ... Read More

How to create a Tkinter error message box?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 07:40:41

21K+ Views

The Tkinter library has many built-in functions and methods which can be used to implement the functional part of an application. We can use messagebox module in Tkinter to create various popup dialog boxes. The messagebox property has different types of built-in popup windows that the users can use in ... Read More

How to reconfigure Tkinter canvas items?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:45:03

11K+ Views

Using the Canvas widget, we can create text, images, graphics, and visual content to add to the Canvas widget. If you need to configure the Canvas item dynamically, then tkinter provides itemconfig(**options) method. You can use this method to configure the properties and attributes of the Canvas items. For example, ... Read More

How to set justification on Tkinter Text box?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:40:30

4K+ Views

The Text widget supports multiline user input from the user. We can configure the Text widget properties such as its font properties, text color, background, etc., by using the configure() method.To set the justification of our text inside the Text widget, we can use tag_add() and tag_configure() properties. We will ... Read More

How to get the widget name in the event in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:37:34

3K+ Views

Tkinter is a Python library that is used to create and develop functional GUI-based applications. Tkinter provides widgets that can be used for constructing the visual and functional representation of the application.Let us suppose that we have defined some widgets in our application. If we want to get a widget's ... Read More

How to delete lines from a Python tkinter canvas?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:34:33

4K+ Views

The Canvas widget has many use-cases in GUI application development. We can use a Canvas widget to draw shapes, creating graphics, images, and many other things. To draw a line in Canvas, we can use create_line(x, y, x1, y1, **options) method. In Tkinter, we can draw two types of lines ... Read More

How to insert the current time in an Entry Widget in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:31:55

3K+ Views

To work with the date and time module, Python provides the 'datetime' package. Using the 'DateTime' package, we can display the date, manipulate the datetime object and use it to write the additional functionality in the application.To display the current date in a Tkinter window, we've to first import the ... Read More

How to display an image/screenshot in a Python Tkinter window without saving it?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:27:38

1K+ Views

Tkinter is a standard Python library that is used to create and develop GUI-based applications. To display an image, we use the PIL or Pillow library.Let us suppose that we want to create an application that will take a screenshot of the window and display the captured image in another ... Read More

How to change Entry.get() into an integer in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:20:46

20K+ Views

The Entry widget in Tkinter is generally used to accept one-line input in the text field. We can get the output from the Entry widget using .get() method. However, the .get() method returns the output in string format. For example, if the user types an integer number in the Entry ... Read More

How to configure default Mouse Double-Click behavior in a Tkinter text widget?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Aug-2021 06:15:17

816 Views

The Text widget in Tkinter is used to add a text editor-like functionality in the application. The Text widget supports multiline user input from the user. We can configure the text widget properties such as its font properties, text color, background, etc., by using the configure() method.The Text widget also ... Read More

Previous 1 ... 3 4 5 6 7 ... 42 Next
Advertisements