mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
docs
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from argenta import App
|
||||
from argenta.app.autocompleter import AutoCompleter
|
||||
from argenta.app import AutoCompleter
|
||||
|
||||
# Настройка автодополнения с сохранением истории в файл
|
||||
# Setting up autocompletion with saving history to a file
|
||||
my_autocompleter = AutoCompleter(history_filename="argenta_history.txt")
|
||||
|
||||
# Передача настроенного автокомплитера в приложение
|
||||
# Passing the configured autocompleter to the application
|
||||
app = App(autocompleter=my_autocompleter)
|
||||
|
||||
# ... остальная логика приложения
|
||||
# ... the rest of the application logic
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
from argenta import App
|
||||
from argenta.app import DynamicDividingLine, StaticDividingLine
|
||||
|
||||
# Создание статической линии из символов "=" длиной 40
|
||||
static_line = StaticDividingLine(unit_part="=", length=40)
|
||||
|
||||
# Создание динамической линии из символов "*"
|
||||
dynamic_line = DynamicDividingLine(unit_part="*")
|
||||
|
||||
# Приложение со статической линией
|
||||
app_with_static_line = App(dividing_line=static_line)
|
||||
|
||||
# Приложение с динамической линией (поведение по умолчанию, но с кастомным символом)
|
||||
app_with_dynamic_line = App(dividing_line=dynamic_line)
|
||||
Reference in New Issue
Block a user