mirror of
https://github.com/nqrduck/nqrduck-broadband.git
synced 2024-12-31 20:08:16 +00:00
Fixed infobox display
This commit is contained in:
parent
1dce515259
commit
8f16ea8c4d
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
from PyQt6.QtCore import pyqtSlot, pyqtSignal
|
from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt
|
||||||
from PyQt6.QtWidgets import QWidget, QMessageBox, QApplication, QLabel, QVBoxLayout
|
from PyQt6.QtWidgets import QWidget, QMessageBox, QApplication, QLabel, QVBoxLayout
|
||||||
|
|
||||||
from nqrduck.module.module_view import ModuleView
|
from nqrduck.module.module_view import ModuleView
|
||||||
|
@ -27,6 +27,7 @@ class BroadbandView(ModuleView):
|
||||||
self.init_plots()
|
self.init_plots()
|
||||||
|
|
||||||
self._ui_form.scrollAreaWidgetContents.setLayout(QVBoxLayout())
|
self._ui_form.scrollAreaWidgetContents.setLayout(QVBoxLayout())
|
||||||
|
self._ui_form.scrollAreaWidgetContents.layout().setAlignment(Qt.AlignmentFlag.AlignTop)
|
||||||
|
|
||||||
def _connect_signals(self) -> None:
|
def _connect_signals(self) -> None:
|
||||||
self._ui_form.start_frequencyField.editingFinished.connect(
|
self._ui_form.start_frequencyField.editingFinished.connect(
|
||||||
|
@ -174,6 +175,6 @@ class BroadbandView(ModuleView):
|
||||||
|
|
||||||
def add_info_text(self, text):
|
def add_info_text(self, text):
|
||||||
text_label = QLabel(text)
|
text_label = QLabel(text)
|
||||||
text_label.setStyleSheet("font-size: 14px;")
|
text_label.setStyleSheet("font-size: 20px;")
|
||||||
self._ui_form.scrollAreaWidgetContents.layout().addWidget(text_label)
|
self._ui_form.scrollAreaWidgetContents.layout().addWidget(text_label)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue