Skip to content

Commit

Permalink
cleanup and minor adjustments for the TUI
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-al-balochi committed Sep 21, 2021
1 parent 42c2ccb commit 69d1569
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LibreGaming/LibreGaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def main():
if args.itch:
itch()
if args.stl:
os.system(PackageManager + " -S steamtinkerlaunch -y") ##gawk git unzip wget xdotool xxd yad
os.system(PackageManager + " -S steamtinkerlaunch -y --needed --noconfirm") ##gawk git unzip wget xdotool xxd yad
if args.athenaeum:
os.system("flatpak install flathub com.gitlab.librebob.Athenaeum -y")

Expand Down
14 changes: 7 additions & 7 deletions LibreGaming/TUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ def create(self):
'Option 6: will install Steam Tinker Launch(For Arch Linux only)',
])
def myFunction(*args):
F = LibreGamingTUI(name = "LibreGaming TUI")
F.edit()
s = str(F.options.get_selected_objects())
Form = LibreGamingTUI(name = "LibreGaming TUI")
Form.edit()
Option = str(Form.options.get_selected_objects())
numbers = []
for item in s:
for item in Option:
for subitem in item.split():
if(subitem.isdigit()):
numbers.append(subitem)
return numbers

def main():
s = (npyscreen.wrapper_basic(myFunction))
print("You Selected " + str(s))
for i in s:
Option = (npyscreen.wrapper_basic(myFunction))
print("You Selected " + str(Option))
for i in Option:
if i == "1":
print("\n==>> Executing Option " + str(i) + "\n")
os.system("libregaming -g")
Expand Down

0 comments on commit 69d1569

Please sign in to comment.