forked from chstan/arpes
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💬 Fix pyproject.toml & Update type hints
- Loading branch information
Showing
15 changed files
with
165 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
if TYPE_CHECKING: | ||
from PySide6.QtGui import QKeyEvent | ||
from PySide6.QtWidgets import QGridLayout, QGroupBox, QLabel, QVBoxLayout | ||
|
||
from arpes.utilities.ui import KeyBinding | ||
__all__ = ("BasicHelpDialog",) | ||
|
@@ -26,13 +27,15 @@ def __init__(self, shortcuts: list[KeyBinding] | None = None) -> None: | |
if shortcuts is None: | ||
shortcuts = [] | ||
|
||
self.layout = QtWidgets.QVBoxLayout() | ||
self.layout: QVBoxLayout = QtWidgets.QVBoxLayout() | ||
|
||
keyboard_shortcuts_info = QtWidgets.QGroupBox(title="Keyboard Shortcuts") | ||
keyboard_shortcuts_layout = QtWidgets.QGridLayout() | ||
keyboard_shortcuts_info: QGroupBox = QtWidgets.QGroupBox(title="Keyboard Shortcuts") | ||
keyboard_shortcuts_layout: QGridLayout = QtWidgets.QGridLayout() | ||
for i, shortcut in enumerate(shortcuts): | ||
the_label: QLabel = label(", ".join(PRETTY_KEYS[k] for k in shortcut.chord)) | ||
the_label.setWordWrap(on=True) | ||
keyboard_shortcuts_layout.addWidget( | ||
label(", ".join(PRETTY_KEYS[k] for k in shortcut.chord), wordWrap=True), | ||
the_label, | ||
i, | ||
0, | ||
) | ||
|
@@ -41,18 +44,17 @@ def __init__(self, shortcuts: list[KeyBinding] | None = None) -> None: | |
keyboard_shortcuts_info.setLayout(keyboard_shortcuts_layout) | ||
|
||
aboutInfo: QtWidgets.QGroupBox = QtWidgets.QGroupBox(title="About") | ||
vertical( | ||
label( | ||
"QtTool is the work of Conrad Stansbury, with much inspiration " | ||
"and thanks to the authors of ImageTool. QtTool is distributed " | ||
"as part of the PyARPES data analysis framework.", | ||
wordWrap=True, | ||
), | ||
label( | ||
"Complaints and feature requests should be directed to [email protected].", | ||
wordWrap=True, | ||
), | ||
the_label1 = label( | ||
"QtTool is the work of Conrad Stansbury, with much inspiration " | ||
"and thanks to the authors of ImageTool. QtTool is distributed " | ||
"as part of the PyARPES data analysis framework.", | ||
) | ||
the_label1.setWordWrap(on=True) | ||
the_label2 = label( | ||
"Complaints and feature requests should be directed to [email protected].", | ||
) | ||
the_label2.setWordWrap(on=True) | ||
vertical(the_label1, the_label2) | ||
|
||
from . import qt_info | ||
|
||
|
Oops, something went wrong.