Tighten up AudacityController type hints
This commit is contained in:
parent
d9abf72f6a
commit
205667faa1
@ -3,6 +3,7 @@ import os
|
||||
import psutil
|
||||
import socket
|
||||
import select
|
||||
from typing import Optional
|
||||
|
||||
# PyQt imports
|
||||
|
||||
@ -31,7 +32,7 @@ class AudacityController:
|
||||
"""
|
||||
|
||||
self.method = method
|
||||
self.path: str = ""
|
||||
self.path: Optional[str] = None
|
||||
self.timeout = timeout
|
||||
if method == "pipe":
|
||||
user_uid = os.getuid() # Get the user's UID
|
||||
|
||||
16
web.py
16
web.py
@ -1,16 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from PyQt6.QtWidgets import QApplication, QLabel
|
||||
from PyQt6.QtGui import QColor, QPalette
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
pal = app.palette()
|
||||
pal.setColor(QPalette.ColorRole.WindowText, QColor("#000000"))
|
||||
app.setPalette(pal)
|
||||
|
||||
label = QLabel("my label")
|
||||
label.resize(300, 200)
|
||||
|
||||
label.show()
|
||||
|
||||
sys.exit(app.exec())
|
||||
Loading…
Reference in New Issue
Block a user