Category Archives: Uncategorized

PyQt Program To Add Remove Clear Items From List

PyQt Program To Add Remove Clear Items From List – Source Code import sys from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, QPushButton, QLineEdit, QListWidget, QLabel class FruitListApp(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setWindowTitle(‘Fruit List’) self.setGeometry(100, 100, 400, 300) self.fruit_list = QListWidget(self) self.add_button = QPushButton(‘Add Fruit’, self) self.remove_button = QPushButton(‘Remove Fruit’, self) self.clear_button = QPushButton(‘Clear… Read More: PyQt Program To Add Remove Clear Items From List »

Loading

Using Call by Reference Swap Numbers

Using Call by Reference Swap Numbers – Write a C program to swap two values by call by reference method of parameter passing. Program for Passing Parameters – Call By Reference #include <stdio.h> void swap2numbers(int *n1, int *n2); int main() { int num1,num2; printf(“\n\n Using C Pointers : Swap Numbers Using Call by Reference :\n”);… Read More: Using Call by Reference Swap Numbers »

Loading

Python Density of Cylinder Program

Python Density of Cylinder Program Write a program to input mass and volume of a cylinder and find the density of this cylinder using the formula d = m / v: Formulae of Density of Cylinder We will use the following formula for the calculation of density of the cylinder. Density = Mass / Volume… Read More: Python Density of Cylinder Program »

Loading

Python 3 Four Function Calculator Program tkinter GUI

Topic: Python 3 Four Function Calculator Program tkinter GUI Widgets used in Simple 4 Function Calculator We have used here: Label widgets to display labels for entry widgets for example. We use a label widget for showing result of addition, subtraction, multiplication or division. Last label simply displays ‘www.EasycodeBook.com for Python GUI Tutorials’. Two Entry… Read More: Python 3 Four Function Calculator Program tkinter GUI »

Loading

Python Decimal to Hexadecimal Conversion Program

Python Decimal to Hexadecimal Conversion Program – This Python tutorial will explain the actual logic to convert a decimal number to corresponding hexadecimal number. It will also explain the important statements of the Python program for conversion of decimal to hexadecimal number. How to Convert Decimal to Hexadecimal Number We know that the hexadecimal number… Read More: Python Decimal to Hexadecimal Conversion Program »

Loading

How To Run Python on Windows

How To Run Python on Windows – The minimum requirement to do so is to Install Python on Windows. Here is a simple and easy to understand Python Installation Tutorial With Pictures. How To Download and Install Python On Windows You can easily download and install Python on Windows by following the steps described in… Read More: How To Run Python on Windows »

Loading