mirror of
https://github.com/nqrduck/nqrduck-broadband.git
synced 2024-12-23 08:07:50 +00:00
Tested slot decorator.
This commit is contained in:
parent
ee0276ec97
commit
f1fcd97c43
2 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "nqrduck-broadband"
|
name = "nqrduck-broadband"
|
||||||
version = "0.0.8"
|
version = "0.0.9"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Julia Pfitzer", email="git@jupfi.me" },
|
{ name="Julia Pfitzer", email="git@jupfi.me" },
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
from PyQt5.QtCore import pyqtSlot
|
||||||
from PyQt5.QtWidgets import QWidget
|
from PyQt5.QtWidgets import QWidget
|
||||||
from nqrduck.module.module_view import ModuleView
|
from nqrduck.module.module_view import ModuleView
|
||||||
from .broadband_widget import Ui_Form
|
from .broadband_widget import Ui_Form
|
||||||
|
@ -50,6 +51,7 @@ class BroadbandView(ModuleView):
|
||||||
self._ui_form.frequency_domainPlot.canvas.ax.set_xlabel("time in us")
|
self._ui_form.frequency_domainPlot.canvas.ax.set_xlabel("time in us")
|
||||||
self._ui_form.frequency_domainPlot.canvas.ax.set_ylabel("Amplitude a.u.")
|
self._ui_form.frequency_domainPlot.canvas.ax.set_ylabel("Amplitude a.u.")
|
||||||
|
|
||||||
|
@pyqtSlot(float)
|
||||||
def on_start_frequency_change(self, start_frequency):
|
def on_start_frequency_change(self, start_frequency):
|
||||||
self._ui_form.broadbandPlot.canvas.ax.set_xlim(left=start_frequency)
|
self._ui_form.broadbandPlot.canvas.ax.set_xlim(left=start_frequency)
|
||||||
self._ui_form.broadbandPlot.canvas.draw()
|
self._ui_form.broadbandPlot.canvas.draw()
|
||||||
|
|
Loading…
Reference in a new issue