NACA, Python e PyQt5…

I profili alari NACA sono particolari forme di profilo alare studiati dalla National Advisory Committee for Aeronautics (NACA) statunitense. La forma di un profilo alare NACA è descritta mediante la parola “NACA” seguita da un numero. I valori presenti in tale codice numerico possono essere inseriti nelle equazioni per calcolare le proprietà della sezione alare.…

Continua a leggere →

How to Create a Translator with Python

In the following lines, we will learn how to create a simple dictionary in a few lines of Python code. First, we need the translate package. translate is a simple but powerful translation tool written in Python with support for multiple translation providers. It offers integration with Microsoft Translation API, MyMemory API, LibreTranslate, and DeepL’s…

Continua a leggere →

Generatore di QrCode…

Il codice Python qui proposto sfrutta le librerie grafiche QtPy5, per generare un QrCode. Vediamo, dapprima, la struttura del programma in Qt Designer: Sia al bottone (pB_genera) che alla QLineEdit (lE_testo) è stato associato il metodo pB_valutaClick() della classe Ui(QWidget). La classe Ui(QWidget) è così costruita: Il codice provvede a costruire l’oggetto window, istanza della…

Continua a leggere →

Working with PyQt: an empty GUI window

The following code walks you through the steps to create an empty GUI window. Your initial window should look similar to the one in the following figure depending upon your operating system. Walking through the code, we first start by importing the sys and PyQt5 modules that we need to create a window. We commonly…

Continua a leggere →