Skip to content

Commit

Permalink
Remove label
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanOu committed Mar 18, 2024
1 parent 6df6698 commit 826f528
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions window/scene/LoadingScene.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
class LoadingScene(QWidget):
def __init__(self):
super().__init__()


# Create a QLabel widget
label = QLabel("Loading...")

label.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
label.setAlignment(Qt.AlignCenter)


self.labelState = QLabel("")
self.labelState = QLabel("Loading...")

self.labelState.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
self.labelState.setAlignment(Qt.AlignCenter)
Expand All @@ -26,16 +20,17 @@ def __init__(self):
self.stateCount = len(TranscriptionState)


# Create a layout and add the label to it
layout = QVBoxLayout()

layout.addWidget(label)
layout.setContentsMargins(200, 200, 200, 200)

layout.minimumHeightForWidth(300)

layout.addWidget(self.labelState)
layout.addWidget(self.progress)

# Set the layout for the widget
self.setLayout(layout)

self.setLayout(layout)

self.showIdleState()
self.showDownloadState()
Expand Down

0 comments on commit 826f528

Please sign in to comment.