text_edit

class camelot.view.action_steps.text_edit.EditTextDocument(document)[source]

Display a rich text editor to edit a text document.

Parameters:document – a QtGui.QTextDocument object.

When this action step is constructed, the thread affinity of the document is changed to be the gui thread. when the editing of the document is finished, the affinity is returned to the current thread. There is no Cancel button on the dialog because the document is changed when the user is editing it, and this cannot be undone.

This action step can be customised using these attributes :

window_title

the window title of the dialog shown

title

the title of the dialog shown

subtitle

the subtitle of the dialog shown

../../../_images/text_document.png
render()[source]

create the text edit dialog. this method is used to unit test the action step.

Previous topic

select_object

Next topic

update_progress

This Page