gui

Various ActionStep subclasses that manipulate the GUI of the application.

class camelot.view.action_steps.gui.CloseView(accept=True)[source]

Close the view that triggered the action, if such a view is available.

Parameters:accept – a boolean indicating if the view’s widget should accept the close event. This defaults to True, when this is set to False, the view will trigger it’s corresponding close action instead of accepting the close event. The close action might involve validating if the view can be closed, or requesting confirmation from the user.
class camelot.view.action_steps.gui.MessageBox(text, icon=1, title=_('Message'), standard_buttons=<PyQt4.QtGui.StandardButtons object at 0x610bc20>)[source]

Popup a QtGui.QMessageBox and send it result back. The arguments of this action are the same as those of the QtGui.QMessageBox constructor.

Parameters:
  • text – the text to be displayed within the message box
  • icon – one of the QtGui.QMessageBox.Icon constants
  • title – the window title of the message box
  • standard_buttons – the buttons to be displayed on the message box, out of the QtGui.QMessageBox.StandardButton enumeration. by default an Ok and a button Cancel will be shown.

When the Cancel button is pressed, this action step will raise a CancelException

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

create the message box. this method is used to unit test the action step.

class camelot.view.action_steps.gui.OpenFormView(objects, admin)[source]

Open the form view for a list of objects, in a non blocking way :param objects: the list of objects to display in the form view :param admin: the admin class to use to display the form

class camelot.view.action_steps.gui.Refresh[source]

Refresh all the open screens on the desktop, this will reload queries from the database

class camelot.view.action_steps.gui.ShowChart(chart)[source]

Show a full screen chart.

Parameters:chart – a camelot.container.chartcontainer.FigureContainer or camelot.container.chartcontainer.AxesContainer
class camelot.view.action_steps.gui.ShowPixmap(pixmap)[source]

Show a full screen pixmap

Parameters:pixmap – a camelot.view.art.Pixmap object

Previous topic

change_object

Next topic

item_view

This Page