FoxDot.lib.Workspace.Prompt

class FoxDot.lib.Workspace.Prompt.FoxDotComplete(name: str, type: str = 'FoxDot')[source]

Bases: object

docstring()[source]
name: str
type: str = 'FoxDot'
class FoxDot.lib.Workspace.Prompt.TextPrompt(root)[source]

Bases: object

anchor = None
autocomplete()[source]

Inserts the remainder of the currently highlited suggestion

clear()[source]
cycle_down()[source]
cycle_up()[source]
docstring_visible = False
escape()[source]

Hide prompt if visible.

find_suggestions(fuzzy=False)[source]
get_start_of_word()[source]

Returns the TK index and characters directly preceeding the INSERT marker

hide()[source]
in_word()[source]

Returns True if the next character is alphanumeric

property interpreter
move(x, y)[source]
property namespace
num_items = 6
pady = 2
selected = 0
show(force=False)[source]

Displays the prompt with suggestions.

tab()[source]

Tab complete action.

timeout = 2
toggle_docstring(helpers=None)[source]
toogle(force=False)[source]

Flags the prompt to show / not show automatically

update_docstring(helpers)[source]
update_values()[source]

Update values.

visible = True
class FoxDot.lib.Workspace.Prompt.Timeout(seconds: int = 1, error_message: str = 'Timeout')[source]

Bases: object

error_message: str = 'Timeout'
seconds: int = 1
FoxDot.lib.Workspace.Prompt.replace_player_signature(player: type[Player])[source]

Function to change a Player’s signature so that effects can be used as options in autocomplete.