Skip to content

Commit

Permalink
Merge pull request #22 from djdt/cubehelix
Browse files Browse the repository at this point in the history
Cubehelix
  • Loading branch information
djdt authored Sep 13, 2024
2 parents 294c2c6 + 47acdd8 commit 78acfde
Show file tree
Hide file tree
Showing 5 changed files with 2,850 additions and 587 deletions.
3 changes: 3 additions & 0 deletions pewpew/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def qActionGroup(
actions: list[str],
func: Callable,
statuses: list[str] | None = None,
icons: list[QtGui.QIcon] | None = None,
checked: str | None = None,
) -> QtGui.QActionGroup:
"""Create a QActionGroup.
Expand All @@ -39,6 +40,8 @@ def qActionGroup(
action = group.addAction(name)
if statuses is not None:
action.setStatusTip(statuses[i])
if icons is not None:
action.setIcon(icons[i])
if checked is not None:
action.setCheckable(True)
if name == checked:
Expand Down
Loading

0 comments on commit 78acfde

Please sign in to comment.