Dev Prakash Sharma has Published 556 Articles

Word Dictionary using Python Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 09:14:21

2K+ Views

In this article, we will create a GUI-based dictionary using PyDictionary and Tkinter Module.PyDictionary is a Python Module that helps to get meaning translations, antonyms and synonyms of words. It uses WordNet for getting meanings, Google for translations, and synonym.com for getting synonyms and antonyms. PyDictionary uses BeautifulSoup, Requests module ... Read More

Window Resizer Control Panel in Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 09:08:53

286 Views

In this article, we will create a GUI-based window resizer control panel that will have a pane to resize the window by its height or width.In order to create the application, we will first create a slider that will help to resize the window size. The sliders are available in ... Read More

What does the 'tearoff' attribute do in a Tkinter Menu?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 09:04:56

686 Views

Using Tkinter.Menu, we can create menus and submenus. Also, there are some other properties which are used with tkinter menus.Tearoff property makes the menus in the window as tearable. tearoff attribute accepts a Boolean value to separate the menu from the main window or the parent window. With tearoff attribute, ... Read More

Tkinter bell() method

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 09:02:27

459 Views

Tkinter bell() method produces the default event or dialogue sound of the system. This method can be invoked in the default window or frame. We can change the sound of the window by going to the system configuration.In this example, we will create a button that will make the default ... Read More

Ratio Calculator GUI using Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 09:01:23

348 Views

In this article, we will see how to create a functional application that calculates the ratio. In order to make it fully functional, we will use SpinBox method that generally creates an ideal spinner for a value. This value can be modified using the spinner widget in the frame. Thus, ... Read More

Python program to find the sum of sine series

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 08:59:33

2K+ Views

Let us consider that we have a value x and we have to calculate the sum of sine(x) series. In a sine(x) series, there are multiple terms such that, sine(x) = x− x^3/fact(3) + x^5/fact(5) −x^7/fact(7)....In order to solve the particular series-based problem, we will first take the degree as ... Read More

Python program to calculate the number of digits and letters in a string

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 08:57:30

9K+ Views

Let us suppose that we have a string and we have to calculate the total number of digits and letters present in the string.For ExampleInput −s = “tutorialsP0int”Output −Letters: 13 Digits: 1Explanation −Total number of letters and digits present in the given string are 13 and 1.Approach to Solve this ProblemTo calculate ... Read More

On/Off Toggle Button Switch in Tkinter

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 08:55:37

2K+ Views

Tkinter provides features for adding different kinds of widgets necessary for an application. Some of these widgets are: Button widget, Entry Widget, Text Box, Slider, etc. In this article, we will see how we can create an application with a button such that it can either be on or off.In ... Read More

How to use Unicode and Special Characters in Tkinter?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 08:51:51

946 Views

Sometimes we need to add unicode and special charset in our Tkinter application. We can add unicode characters in our labels or widgets concatenating the signature as, u ‘/’. You can find the list of all unicode characters from hereIn this example, we will add a unicode character in the ... Read More

How to use Thread in Tkinter Python?

Dev Prakash Sharma

Dev Prakash Sharma

Updated on 06-Mar-2021 08:48:20

6K+ Views

With Tkinter, we can call multiple functions at a time using Threading. It provides asynchronous execution of some functions in an application.In order to use a thread in Python, we can import a module called threading and subclass its Thread class. Inside our new class, we need to overwrite the ... Read More

Advertisements