Skip to content

Commit 94b585c

Browse files
committed
added icon
1 parent ffaa128 commit 94b585c

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# TODOlist-v2
22
A revamped version of TODOlist that uses PyQt5
33

4+
<img src="./icon.png" height="80px" />
5+
46
<img src="./TODOlist_screenshot.png" height="400px" />
57

68
# Installation
79

810
* Clone the repository
9-
* Run TODOlist.py
11+
12+
Whilst in the directory:
13+
* `pip install -r requirements.txt`
14+
* `python3 TODOlist.py`
1015

1116
# Features
1217

@@ -19,5 +24,5 @@ A revamped version of TODOlist that uses PyQt5
1924
* Inserting an element (task or element) before or after a right-clicked element
2025
* Clear
2126
* Checked tasks in the current level
22-
* All checked tasks in the TODOlist
27+
* All checked tasks in the list or section
2328
* All elements in the list or section

icon.png

2.47 KB
Loading

view/view.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
from PyQt5.QtGui import QColor, QMouseEvent, QPalette, QCloseEvent
1+
from PyQt5.QtGui import QColor, QMouseEvent, QPalette, QCloseEvent, QIcon
22
from PyQt5.QtCore import QSize, Qt, pyqtSlot
33
from PyQt5.QtWidgets import QDialog, QMainWindow, QMessageBox, QVBoxLayout, QHBoxLayout, QWidget, QPushButton, QComboBox, QInputDialog, QAbstractButton
44
import view.widgetObjects as widgetObjects
55
from view.preferencesDialog import PreferencesDialog
66
from model.model import Model
7+
from os.path import join, dirname, realpath
8+
from sys import argv
79

810
class Window(QMainWindow):
911
"""Main Window."""
1012
def __init__(self, model):
1113
"""Initializer."""
1214
super().__init__()
13-
15+
self.setWindowIcon(QIcon(join(dirname(realpath(argv[0])), "icon.png")))
1416
self.model = model # type: Model
1517

1618
self._init_ui()

0 commit comments

Comments
 (0)