diff --git a/LICENSE b/LICENSE index cff7145..73991c1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Sobhan +Copyright (c) 2023 Sobhan-SRZA(Mr.SIN RE#1528) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 39652e9..69a75d5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # Calculator Application A calculator app build with python and using QT library. + +# How to use? +- first of all open `install.cmd` to install all libraries. +- open cmd from source path then send this `python src/main.py` + +Enjoy ❤ +Build with love and hard work + +© Sobhan-SRZA \ No newline at end of file diff --git a/install.cmd b/install.cmd new file mode 100644 index 0000000..1b16263 --- /dev/null +++ b/install.cmd @@ -0,0 +1,5 @@ +@echo off +color 0a +:run +python -m pip install -r requirements.txt +goto run \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9f92236 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +PyQt6 \ No newline at end of file diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..eb52ac1 --- /dev/null +++ b/src/main.py @@ -0,0 +1,28 @@ +import sys +from PyQt6 import QtGui +from PyQt6.QtGui import QFont +from PyQt6.QtWidgets import QLabel, QWidget, QVBoxLayout, QApplication +from PyQt6.QtCore import QTimer, Qt + +class Window(QWidget): + def __init__(self): + super().__init__() + layout = QVBoxLayout() + self.label = QLabel() + self.label.setAlignment(Qt.AlignmentFlag.AlignCenter) + self.label.setFont(QFont("calibri", 40, -1, False)) + layout.addWidget(self.label) + self.newLabel = QLabel() + self.newLabel.setText("© Sobhan-SRZA") + self.newLabel.setAlignment(Qt.AlignmentFlag.AlignCenter) + self.newLabel.setFont(QFont("arial", 20, -1, False)) + layout.addWidget(self.newLabel) + self.setWindowTitle("Calculator Application") + self.setWindowIcon(QtGui.QIcon('icon.png')) + self.setGeometry(100, 100, 800, 400) + self.setLayout(layout) + +app = QApplication(sys.argv) +window = Window() +window.show() +app.exec() \ No newline at end of file