def __init__(self, actioncollection, parent=None, flags=0):
        """Construct a new dialog for the given action collection

        :param actioncollection: the action collection to report
        :type actioncollection: :class:`jukeboxcore.action.ActionCollection`
        :param parent: Optional - the parent of the window - default is None
        :type parent: QWidget
        :param flags: the window flags
        :type flags: QtCore.Qt.WindowFlags
        :raises: None
        """
        super(ActionReportDialog, self).__init__(parent, flags)
        self.setupUi(self)
        self._actioncollection = actioncollection
        self._parent = parent
        self._flags = flags

        status = self._actioncollection.status()
        self.status_lb.setText(status.value)
        self.message_lb.setText(status.message)
        self.traceback_pte.setPlainText(status.traceback)

        self.traceback_pte.setVisible(False)

        model = create_action_model(self._actioncollection)
        self.actions_tablev = WD_TableView(self)
        self.actions_tablev.setModel(model)
        self.verticalLayout.insertWidget(1, self.actions_tablev)

        self.msgdelegate = ActionUnitMessageDelegate(self)
        self.tbdelegate = ActionUnitTracebackDelegate(self)
        self.actions_tablev.setItemDelegateForColumn(3, self.msgdelegate)
        self.actions_tablev.setItemDelegateForColumn(4, self.tbdelegate)

        self.actions_tablev.horizontalHeader().setStretchLastSection(True)
def __init__ ( self , actioncollection , parent = None , flags = 0 ) : super ( ActionReportDialog , self ) . __init__ ( parent , flags ) self . setupUi ( self ) self . _actioncollection = actioncollection self . _parent = parent self . _flags = flags status = self . _actioncollection . status ( ) self . status_lb . setText ( status . value ) self . message_lb . setText ( status . message ) self . traceback_pte . setPlainText ( status . traceback ) self . traceback_pte . setVisible ( False ) model = create_action_model ( self . _actioncollection ) self . actions_tablev = WD_TableView ( self ) self . actions_tablev . setModel ( model ) self . verticalLayout . insertWidget ( 1 , self . actions_tablev ) self . msgdelegate = ActionUnitMessageDelegate ( self ) self . tbdelegate = ActionUnitTracebackDelegate ( self ) self . actions_tablev . setItemDelegateForColumn ( 3 , self . msgdelegate ) self . actions_tablev . setItemDelegateForColumn ( 4 , self . tbdelegate ) self . actions_tablev . horizontalHeader ( ) . setStretchLastSection ( True )
Construct a new dialog for the given action collection

        :param actioncollection: the action collection to report
        :type actioncollection: :class:`jukeboxcore.action.ActionCollection`
        :param parent: Optional - the parent of the window - default is None
        :type parent: QWidget
        :param flags: the window flags
        :type flags: QtCore.Qt.WindowFlags
        :raises: None