Implement frequency filters

This commit is contained in:
alessandro90
2018-10-13 19:17:59 +02:00
parent 3ae47a09e1
commit 09fcffa64b
5 changed files with 711 additions and 515 deletions

16
double_text_button.py Normal file
View File

@@ -0,0 +1,16 @@
from PyQt5.QtWidgets import QPushButton
class DoubleTextButton(QPushButton):
def __init__(self, parent = None):
super().__init__(parent)
self.clicked.connect(self.change_text)
def set_texts(self, text_a, text_b):
self.text_a = text_a
self.text_b = text_b
def change_text(self):
if self.isChecked():
self.setText(self.text_b)
else:
self.setText(self.text_a)