24 lines
596 B
Python
24 lines
596 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
from rofi import Rofi
|
||
|
|
||
|
|
||
|
def test_basic():
|
||
|
# rofi = Rofi()
|
||
|
# rofi = Rofi(
|
||
|
# config_file="~/.config/rofi/aniwrapper.rasi",
|
||
|
# theme_str="window { width: 25%; }",
|
||
|
# )
|
||
|
rofi = Rofi(
|
||
|
config_file="~/.config/rofi/aniwrapper-dracula.rasi",
|
||
|
theme_str="window { width: 25%; }",
|
||
|
)
|
||
|
# rofi = Rofi(config_file="~/.config/rofi/aniwrapper-dracula.rasi")
|
||
|
name = rofi.text_entry("What is your name?")
|
||
|
print("Hello, {}!".format(name))
|
||
|
assert name and name != "", "Name is empty"
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
test_basic()
|