-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexercise_widget.py
40 lines (34 loc) · 1.21 KB
/
exercise_widget.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtCore import QSize
from PySide6.QtWidgets import (
QPushButton,
QLabel,
)
from main_window import MainWindow
WINDOW_HEIGHT = 693
WINDOW_WIDTH = 320
LABEL_HEIGHT = 40
LABEL_WIDTH = 119
class Exercise(MainWindow):
def __init__(self):
super().__init__()
self.footer()
exercise = QLabel(self)
exercise.setPixmap(QPixmap("./Resources/exercisetop.jpg"))
exercise.move(0, 16)
exercise.resize(320, 104)
nature_button = QPushButton(self)
nature_button.setIcon(QIcon("./Resources/walknature.jpg"))
nature_button.setIconSize(QSize(296, 148))
nature_button.move(12, 136)
nature_button.resize(296, 148)
workout_button = QPushButton(self)
workout_button.setIcon(QIcon("./Resources/quickworkout.jpg"))
workout_button.setIconSize(QSize(296, 148))
workout_button.move(12, 300)
workout_button.resize(296, 148)
stretch_button = QPushButton(self)
stretch_button.setIcon(QIcon("./Resources/stretchbody.jpg"))
stretch_button.setIconSize(QSize(296, 149))
stretch_button.move(12, 464)
stretch_button.resize(296, 149)