-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d5d58a
commit 7059007
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
color 0a | ||
:run | ||
python -m pip install -r requirements.txt | ||
goto run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PyQt6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |