extools.ui.bare

class extools.ui.bare.BareUI[source]

Bases: object

Am empty UI for running scripts without displayinga window.

extools.ui.bare.bareui(close=True)[source]

Get a BareUI instance temporarily.

Useful for running scripts that pop up messages but don’t need to leave the UI window lingering.

Parameters:close (bool) – whether to automatically close the UI. Disable to capture lingering errors.
# myextenderscript.py
from accpac import *
from extools.exui.bare import bareui

def main(*args, **kwargs):
    with bareui():
        showMessageBox("This will be displayed!")
        # ...