initial commit

This commit is contained in:
ksyasuda
2022-10-21 23:23:23 -07:00
commit f0bec148c3
8 changed files with 1286 additions and 0 deletions

23
tests/test.py Executable file
View File

@@ -0,0 +1,23 @@
#!/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()