mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Fixed for clear screen
This commit is contained in:
parent
93e54fd109
commit
f48f1f37ae
1 changed files with 9 additions and 16 deletions
|
@ -491,14 +491,14 @@ class Argparse(Configs):
|
|||
text: str = f'There are {len(choices)} packages:'
|
||||
code, tags = self.dialogbox.checklist(text, packages, title, height,
|
||||
width, list_height, choices)
|
||||
os.system('clear')
|
||||
|
||||
if code == 'cancel':
|
||||
raise SystemExit()
|
||||
|
||||
if not tags:
|
||||
if not tags or not code:
|
||||
return packages
|
||||
|
||||
os.system('clear')
|
||||
|
||||
return list(set(tags))
|
||||
|
||||
def help(self) -> None:
|
||||
|
@ -826,19 +826,12 @@ def main():
|
|||
'-t': argparse.tracking
|
||||
}
|
||||
|
||||
# try:
|
||||
# arguments[args[0]]()
|
||||
# except (KeyError, IndexError) as err:
|
||||
# logger = logging.getLogger(__name__)
|
||||
# logger.info('%s: %s', main.__name__, err)
|
||||
# usage.help_short(1)
|
||||
|
||||
# For development mode.
|
||||
try:
|
||||
arguments[args[0]]()
|
||||
except (KeyError, IndexError) as err:
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info('%s: %s', main.__name__, err)
|
||||
usage.help_short(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Reference in a new issue