This commit is contained in:
Auric Vente 2024-07-20 03:13:20 -06:00
parent 4b8c6e52de
commit 6450af91be
2 changed files with 5 additions and 4 deletions

View File

@ -1,14 +1,15 @@
from __future__ import annotations
from PySide6.QtWidgets import QWidget
from PySide6.QtWidgets import QWidget # type: ignore
from PySide6.QtGui import QKeyEvent # type: ignore
from .window import Window
class Filter:
@staticmethod
def get_value() -> str:
return Window.filter.text().lower().strip()
return str(Window.filter.text()).lower().strip()
@staticmethod
def filter(event: QKeyEvent | None = None) -> None:

View File

@ -8,7 +8,7 @@ from PySide6.QtWidgets import QHBoxLayout # type: ignore
from PySide6.QtWidgets import QVBoxLayout
from PySide6.QtWidgets import QLabel
from PySide6.QtWidgets import QWidget
from PySide6.QtGui import QPixmap
from PySide6.QtGui import QPixmap # type: ignore
from PySide6.QtCore import QTimer
from wonderwords import RandomSentence # type: ignore