conductor.clarisse.scripted_class.preview_ui module

Provide a window in which to display a preview submission.

This is required because Clarisse’s attribute editor doesn’t allow custom UI to be embedded.

class conductor.clarisse.scripted_class.preview_ui.PreviewWindow(submission)

Bases: sphinx.ext.autodoc.importer._MockObject

The entire window.

Holds the panel plus buttons to Submit or Cancel and so on.

on_add_but(sender, eventid)
on_apply_but(sender, eventid)

Submit and keep the window visible.

on_close_but(sender, eventid)

Hide only.

Don’t destroy because hide will cause the event loop to end and destroy will kick in afterwards.

on_go_but(sender, eventid)

Submit and hide(destroy) the window.

conductor.clarisse.scripted_class.preview_ui.build(submission)

Show the window.

Populate it with submission args for each job. Listen for events until the window is hidden.