Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def qareviewer::QAReviewer::toggle_preview_cb (   self,
  action,
  extra 
)

Toggles between checklist view and output view.

Keyword -- arguments:
action: The action that invoked the callback.
extra: user data.  Unused.

We have two view modes at the moment.  One displays the output
in line with the checklist items.  The other displays the items
as they will appear in the QA Review.  This callback toggles between
the two sets.

Definition at line 311 of file qareviewer.py.

00311                                               :
        '''Toggles between checklist view and output view.

        Keyword -- arguments:
        action: The action that invoked the callback.
        extra: user data.  Unused.

        We have two view modes at the moment.  One displays the output
        in line with the checklist items.  The other displays the items
        as they will appear in the QA Review.  This callback toggles between
        the two sets.
        '''
        if self.grabArrow.get_property('arrow-type') == gtk.ARROW_LEFT:
            self.grabArrow.set(gtk.ARROW_RIGHT, gtk.SHADOW_NONE)
            self.checkView.display_output(False)
            self.reviewScroll.show()
        else:
            self.grabArrow.set(gtk.ARROW_LEFT, gtk.SHADOW_NONE)
            self.checkView.display_output(True)
            self.reviewScroll.hide()
    
    #
    # Modified action group


Generated by  Doxygen 1.6.0   Back to index