Welcome to CodersLegacy!

Learn! Develop! Contribute!

Welcome to CodersLegacy, a coding site aimed primarily towards aspiring new programmers looking to expand their skill set. How do we intend to achieve this? Read the article to find out!

Creating a Login Form with PyQt6

In this tutorial, we’ll walk through the process of creating a simple login form using PyQt6, a set of Python bindings for Qt, a powerful GUI toolkit. We’ll create a window with a title, username and password fields, and buttons for registration and login. Additionally, we’ll implement a basic login functionality to check if the … Read more

JavaScript SQLite3 Tutorial for Beginners (Node.js)

In this tutorial we will explore how to set up, install and use the SQLite3 Database in JavaScript. What is SQLite? SQLite is a lightweight, serverless, and embedded relational database management system (RDBMS) that is widely used, especially in applications with moderate data storage needs. SQLite offers several benefits that make it a popular choice … Read more

Switching between Multiple Screens in Tkinter (dynamically)

The following article demonstrates a useful trick in Tkinter to create multiple “screens” (e.g. a login screen, register screen, main page screen) within a single window! Instead of creating a new window for each screen, we will use a single tkinter window, which swaps dynamically between multiple “screens” (represented by frames). This is more efficient … Read more

Pyinstaller EXE detected as Virus? (Solutions and Alternatives)

PyInstaller, a popular tool for converting Python scripts into standalone executables, has become a go-to choice for developers seeking to distribute their applications. However, a rising concern among users revolves around their PyInstaller EXE files being detected and flagged as a Virus by Antivirus software. In this article, we’ll delve into the reasons behind this … Read more

Selenium: How to scroll to the Bottom of the Page (Python)

In this tutorial, we will explore how to use Selenium in Python to scroll to the bottom of a webpage gradually. Scrolling is often required when dealing with dynamically loading content or capturing data from a website that requires scrolling to access all information. Common examples of such sites are YouTube (shorts) where videos are … Read more

How to disable the Cache in Selenium

Selenium is a powerful tool for automating web applications, but one common challenge faced by automation testers is dealing with browser caching. Caching can sometimes interfere with the accuracy of your Selenium tests, leading to unexpected results. In this tutorial, we’ll explore how to disable the cache in Selenium to ensure that your automated tests … Read more

Selenium Dynamic XPath Tutorial (All Commands)

Welcome to the Dynamic XPath Tutorial using Selenium. In this tutorial we will explore over 20 different code snippets using XPath commands to retrieve elements from a web page in Selenium. Prerequisites The prerequisites to this tutorial is that you have Selenium setup properly on your system. For those who do not, here is a … Read more

Python __init__.py – Best Practices and Customizations

The __init__.py file is a special Python script that is executed when a package or module is imported. Its primary purpose is to initialize the package or module and define the package’s namespace. In this tutorial we will discuss various best practices and customizations involving the __init__.py file that you can do when creating your … Read more

Pytest Tutorial: Mastering Unit Testing in Python

Welcome to a ALL-IN-ONE Tutorial designed to meet all your testing requirements. Whether you’re just starting with the fundamentals to build a solid conceptual foundation or aiming to craft professional-grade test cases for entire projects, this guide has got you covered. The focus of this tutorial will be around the popular “Pytest” library. Understanding Unit … Read more

Setting up Jest for React Apps with Vite and TypeScript

Testing is a crucial part of the development process, ensuring that your React applications are robust and bug-free. Jest is a popular testing framework that simplifies the testing workflow for React applications. In this guide, we’ll walk through the steps to set up Jest for a React application created using Vite and TypeScript. Installing Jest … Read more

pyJWT Tutorial: Token Authentication in Python

In the ever-evolving landscape of web development, securing your applications and ensuring user authenticity is paramount. One of the widely adopted methods for achieving this is through token-based authentication. JSON Web Tokens (JWT) have emerged as a popular choice due to their simplicity, scalability, and versatility. In the Python ecosystem, the pyJWT library stands out … Read more

pydub Tutorial: Audio Manipulation in Python

In this comprehensive tutorial, we will explore the powerful pydub library, a Python package that simplifies the process of working with audio files. Whether you are a music enthusiast, a data scientist, or a developer looking to integrate audio processing into your applications, pydub has got you covered. Getting Started with Pydub Before we dive … Read more