Mods
This commit is contained in:
parent
99b2e85c3c
commit
876140252b
|
@ -11,6 +11,8 @@ from .argspec import ArgSpec
|
||||||
class Args:
|
class Args:
|
||||||
names: Path | None = None
|
names: Path | None = None
|
||||||
images: bool = True
|
images: bool = True
|
||||||
|
header: bool = True
|
||||||
|
footer: bool = True
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def prepare() -> None:
|
def prepare() -> None:
|
||||||
|
@ -22,6 +24,8 @@ class Args:
|
||||||
|
|
||||||
other_name = [
|
other_name = [
|
||||||
("no_images", "images"),
|
("no_images", "images"),
|
||||||
|
("no_header", "header"),
|
||||||
|
("no_footer", "footer"),
|
||||||
]
|
]
|
||||||
|
|
||||||
for r_item in other_name:
|
for r_item in other_name:
|
||||||
|
|
|
@ -81,3 +81,15 @@ class ArgSpec:
|
||||||
action="store_false",
|
action="store_false",
|
||||||
info="Don't show the images on the left",
|
info="Don't show the images on the left",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ArgSpec.add_argument(
|
||||||
|
"no_header",
|
||||||
|
action="store_false",
|
||||||
|
info="Don't show the header controls",
|
||||||
|
)
|
||||||
|
|
||||||
|
ArgSpec.add_argument(
|
||||||
|
"no_footer",
|
||||||
|
action="store_false",
|
||||||
|
info="Don't show the footer controls",
|
||||||
|
)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"title": "Cromulant",
|
"title": "Cromulant",
|
||||||
"program": "cromulant",
|
"program": "cromulant",
|
||||||
"author": "madprops",
|
"author": "madprops",
|
||||||
|
|
|
@ -30,6 +30,7 @@ from PySide6.QtMultimedia import QMediaPlayer # type: ignore
|
||||||
from PySide6.QtMultimedia import QAudioOutput
|
from PySide6.QtMultimedia import QAudioOutput
|
||||||
|
|
||||||
from .config import Config
|
from .config import Config
|
||||||
|
from .args import Args
|
||||||
from .utils import Utils
|
from .utils import Utils
|
||||||
|
|
||||||
|
|
||||||
|
@ -284,6 +285,10 @@ class Window:
|
||||||
container.addWidget(Window.filter, 1)
|
container.addWidget(Window.filter, 1)
|
||||||
|
|
||||||
root.setLayout(container)
|
root.setLayout(container)
|
||||||
|
|
||||||
|
if not Args.header:
|
||||||
|
root.setVisible(False)
|
||||||
|
|
||||||
Window.root.addWidget(root)
|
Window.root.addWidget(root)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -375,6 +380,10 @@ class Window:
|
||||||
Window.info.setMinimumSize(35, 35)
|
Window.info.setMinimumSize(35, 35)
|
||||||
container.addWidget(Window.info)
|
container.addWidget(Window.info)
|
||||||
root.setLayout(container)
|
root.setLayout(container)
|
||||||
|
|
||||||
|
if not Args.footer:
|
||||||
|
root.setVisible(False)
|
||||||
|
|
||||||
Window.root.addWidget(root)
|
Window.root.addWidget(root)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue