5.1.1.4.2.4. DiffWidgetConfig

This modules defines colour styles used by the Diff Viewer for text blocks.

class CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyle(background_colour, line_colour)[source]

Bases: object

This class defines colour style for a text block.

Public attributes:

background_colour
background colour of the text block
line_colour
top and bottom line colour of the text block
class CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyles[source]

Bases: dict

This class implements a dictionary of Text Block Styles indexed by the frame type.

add(frame_type, background_colour, line_colour)[source]
CodeReview.GUI.DiffViewer.DiffWidgetConfig.intra_difference_background_colour = <PyQt5.QtGui.QColor object>

Defines the background colour for intra-difference

CodeReview.GUI.DiffViewer.DiffWidgetConfig.text_block_styles = {equal: <CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyle object>, insert: <CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyle object>, delete: <CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyle object>, replace: <CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyle object>, equal_block: <CodeReview.GUI.DiffViewer.DiffWidgetConfig.TextBlockStyle object>}

Defines the default text block styles