Skip to content

All possible interfaces

Normally, you get an interface through mininterface.run but if you do not wish to parse CLI and config file, you can invoke one directly from mininterface.interfaces import *.

Apart from the default Mininterface, the base interface the others are fully compatible with, several interfaces exist:

How to invoke a specific interface.

from mininterface.interfaces import TuiInterface

with TuiInterface("My program") as m:
    number = m.ask_number("Returns number")

GuiInterface = TkInterface

A tkinter window.

TuiInterface

An interactive terminal.

TextualInterface

If textual installed, rich and mouse clickable interface is used.

TextInterface

Plain text only interface with no dependency as a fallback.

ReplInterface

A debug terminal. Invokes a breakpoint after every dialog.