forked from miphreal/python-rofi-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
230 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .constants import * | ||
from .contrib import * | ||
from .main import run | ||
from .menu import Menu, NestedMenu, Item, BackItem, ExitItem, Operation | ||
from .menu import Menu, NestedMenu, Item, BackItem, ExitItem, Operation, Delimiter |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
MENU_ITEM_META_DELIM = "\r!" | ||
|
||
FLAG_STYLE_URGENT = "URGENT" | ||
FLAG_STYLE_ACTIVE = "ACTIVE" | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
def get_rofi_mode(version: str): | ||
ver = tuple(int(part) for part in version.split(".")) | ||
|
||
if ver < (1, 6): | ||
from . import rofi_mode_15 | ||
|
||
return rofi_mode_15 | ||
|
||
if ver >= (1, 6): | ||
from . import rofi_mode_16 | ||
|
||
return rofi_mode_16 | ||
|
||
raise RuntimeError("Wrong version configuration") |
Oops, something went wrong.