Found 10784 Articles for Python

How to Set Border of Tkinter Label Widget

Tapas Kumar Ghosh
Updated on 14-Aug-2023 10:55:37

1K+ Views

In Python, Tkinter is GUI(Graphical User Interface) based library that accesses easier and faster ways to build the GUI application. The Tkinter Label Widget will be used to build the border that helps to improve the visibility of the user interface. A Tkinter Label Widget is such type of area that shows the text or images. In Python, we have some built−in functions such as Label(), TK(), Frame(), pack(), and, config() will be used to Set the Border of Tkinter Label Widget. Syntax The following syntax is used in the examples- Tk() The Tk() is a built−in function in ... Read More

How to Set up Multiple Subplots with Group Legends using Plotly in Python

Tapas Kumar Ghosh
Updated on 14-Aug-2023 10:51:49

703 Views

The multiple subplots are defined by assigning different graph plots. Plotly is a powerful Python library for creating interactive visualizations for data research and presentation. Its capacity to put up multiple subplots, that are independent plots placed within a single figure, is one of its primary characteristics. This feature allows us to compare and display various datasets or variables side by side, giving us a simple overview of the data. In Python, we have some built−in functions− add_trace, update_layout, and, show which can be used to set up multiple subplots with group legends using Plotly in Python. Syntax The ... Read More

Python sorted containers - An Introduction

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:32:27

453 Views

Python offers a wide range of data structures to efficiently organize and manipulate data. When it comes to handling sorted data, sorted containers play a crucial role. Sorted containers are data structures that maintain the elements in a sorted order, providing fast access, insertion, and deletion operations. They offer an effective solution for scenarios where maintaining a sorted order is essential. In this blog post, we will explore the world of Python sorted containers and understand their significance in various applications. We will delve into the different types of sorted containers, such as sorted lists, sorted sets, and sorted dicts, ... Read More

Python Seaborn - Strip plot illustration using Catplot

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:24:15

135 Views

Data visualization plays a crucial role in understanding and communicating patterns, trends, and insights from data. Python, with its rich ecosystem of libraries, offers powerful tools for creating visually appealing and informative plots. Seaborn, a popular data visualization library built on top of Matplotlib, provides a high-level interface for creating beautiful statistical graphics. In this article, we will explore one of Seaborn's versatile plot types - the strip plot. Strip plots are useful for visualizing the distribution of a continuous variable against a categorical variable. They display individual data points along an axis, making it easy to observe patterns, clusters, ... Read More

Python Script to Shutdown Computer

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:22:30

4K+ Views

In today's fast-paced digital world, being able to automate computer tasks can greatly enhance productivity and convenience. One such task is shutting down a computer, which can be time-consuming if done manually. Thankfully, Python provides us with a powerful set of tools to interact with the system and automate such tasks. In this blog post, we will explore how to write a Python script to shut down a computer with ease. Whether you want to schedule automatic shutdowns, initiate a shutdown remotely, or simply save time by avoiding manual shutdowns, this script will come in handy. Importing Required Modules Before ... Read More

Python Script to Restart Computer

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:20:32

3K+ Views

Restarting a computer is a common task that we often perform to troubleshoot issues, install updates, or apply system changes. While there are various ways to restart a computer, using a Python script can provide automation and convenience. In this article, we will explore how to create a Python script that can restart a computer with a simple execution. We will start by discussing the importance of restarting a computer and the benefits it can offer. Then, we will delve into the implementation details of the Python script, explaining the necessary modules and functions involved. Throughout the article, we will ... Read More

Python Script to Shutdown your PC using Voice Commands

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:17:22

225 Views

In today's world of automation and smart devices, voice control has become increasingly popular. From smartphones to virtual assistants, voice commands offer a convenient and hands-free way to interact with technology. What if you could extend this convenience to your PC as well? Imagine being able to shut down your computer with a simple voice command, saving you the trouble of manually navigating through menus or using the mouse. In this blog post, we will explore how to use Python to create a script that allows you to shut down your PC using voice commands. By leveraging the power of ... Read More

Python script to shows Laptop Battery Percentage

Mrudgandha Kulkarni
Updated on 11-Aug-2023 17:14:38

496 Views

Monitoring the battery percentage of your laptop is essential to keep track of its power level and ensure uninterrupted usage. Whether you're working on the go or relying on your laptop for extended periods, having a Python script to display the battery percentage can be incredibly useful. In this blog post, we will explore how to create a Python script that shows the laptop battery percentage. In the following sections, we will discuss the prerequisites for running the script, explore how to retrieve the battery information, and demonstrate how to display the battery percentage in a graphical user interface (GUI). ... Read More

Python Script to Open a Web Browser

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:34:03

3K+ Views

In today's digital world, web browsing has become an integral part of our daily lives. Whether it's researching information, shopping online, or accessing web-based applications, we spend a significant amount of time using web browsers. As a Python developer, wouldn't it be great to automate web browser operations and save time and effort? In this blog post, we'll explore how to create a Python script that opens a web browser and performs various operations. With the help of the Selenium library, we can interact with web browsers programmatically, allowing us to automate tasks such as navigating to a specific URL, ... Read More

Python script to monitor website changes

Mrudgandha Kulkarni
Updated on 11-Aug-2023 16:32:47

2K+ Views

In today's digital age, staying up to date with the latest changes on a website is crucial for various purposes, such as tracking updates on a competitor's site, monitoring product availability, or staying informed about important information. Manually checking websites for changes can be time-consuming and inefficient. That's where automation comes in. In this blog post, we will explore how to create a Python script to monitor website changes. By leveraging the power of Python and some handy libraries, we can automate the process of retrieving website content, comparing it with previous versions, and notifying us of any changes. This ... Read More

Advertisements