Dev Prakash Sharma has Published 548 Articles

How to set the background color of a ttk.Combobox in tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:54:20

9K+ Views

Tkinter supports ttk widget which is used to change the style and properties of any widget in a tkinter application. We can set the background color, foreground color, and other attributes of the Combobox widget by visiting the configure function in ttk and passing 'TCombobox' as the first parameter.ExampleIn this ... Read More

How do I change the overall theme of a tkinter application?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:50:02

2K+ Views

The ttk themed widget in Tkinter is introduced to design the external properties and styles of a widget in application. The ttk uses Tcl/Tk interpreter to give the user access to the interface that has many inbuilt attributes and features useful for any widget or application. Now, if we compare ... Read More

Programmatically opening URLs in a web browser in Python (tkinter)

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:47:09

683 Views

Python has a rich library of extensions and modules which are used for multiple purposes. To work with web-based content, Python provides a webbrowser module. The module creates an environment which enables the user to display web-based content in the application. To work with webbrowser, you have to make sure ... Read More

How to bind to shift+tab in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:43:00

2K+ Views

Tkinter Events are very useful for any application where we need to perform a certain task or action. In Tkinter, the events are generally created by defining the function which contains the piece of code and the logic for the certain event. To call the event, we generally bind the ... Read More

Change the color of "tab header" in ttk.Notebook (tkinter)

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:40:58

7K+ Views

Tabs are very useful for a multipurpose GUI application. It helps to isolate the several tasks or processes within the application in the form of tabs. Tabs are very useful for processing multiple tasks at a time. With the help of Tkinter Notebook widget, we can create Tabs in our ... Read More

How do you overlap widgets/frames in Python tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:39:47

5K+ Views

There are three general ways through which we can align and position a particular widget in a Tkinter application. Let us suppose that we want to overlap two or more widgets or frames one on another, then we can use place() geometry manager. What place() geometry manager does is that ... Read More

How to edit the style of a heading in Treeview (Python ttk)?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:37:56

10K+ Views

Python Treeview widget is introduced for creating a Table look-like GUI in application. It includes many inbuilt features and functions which can be used to configure the properties. However, to configure the style of a tkinter widget, we generally refer to use ttk themed widget. This allows you to edit ... Read More

How to display LaTex in real time in a text box in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:36:26

3K+ Views

Python Matplotlib library is useful in applications where we need to visualize the data points and draw graphs and plots to analyze the data. Let us suppose that we want to create a tkinter application where we can process LaTex syntax.LaTex syntax is used for preparing scientific documentation such as, ... Read More

How to show webcam in TkInter Window?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:33:33

7K+ Views

Python libraries are independent and thus they all can be used for different purposes while building a particular featured application. In this example, we will build an application using OpenCV and Tkinter library. OpenCV is a Python library that is used to work with Computer Vision and other artificial artifacts. ... Read More

How can I vary a shape's alpha with Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 08-Jun-2021 09:31:31

2K+ Views

The Canvas widget is one of the multilateral widgets in tkinter library which is used to provide graphics for any application. It can be used to draw shapes, images, animating objects or any complex visuals. The alpha property of the shape defines that if we give the alpha value to ... Read More

Advertisements