Dev Prakash Sharma has Published 556 Articles

How to move a Tkinter canvas with Mouse?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 18-Jun-2021 13:24:04

4K+ Views

Tkinter Canvas widget is one of the versatile widgets in the Tkinter library. It is used to create different shapes, images, and animating objects. We can move images in a particular direction on the Canvas widget using the move() method.Define the image and the coordinates as a parameter in the move(Image, ... Read More

How to Move an Image in Tkinter canvas with Arrow Keys?

Dev Prakash Sharma

Dev Prakash Sharma

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

4K+ Views

Tkinter Canvas widget is one of the versatile widgets in the Tkinter library. It is used to create different shapes, images, and animating objects. We can provide a dynamic attribute to the image defined in a Canvas widget by using the move() method.Define the image and the coordinates as a parameter ... Read More

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

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

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

734 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

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

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

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

Advertisements