eric7.EricWidgets.EricAutoResizeTextBrowser

Module implementing a QTextBrowser widget that resizes automatically.

Global Attributes

None

Classes

EricAutoResizeTextBrowser Class implementing a QTextBrowser widget that adjusts its size automatically to the contained text.

Functions

None


EricAutoResizeTextBrowser

Class implementing a QTextBrowser widget that adjusts its size automatically to the contained text.

Derived from

QTextBrowser

Class Attributes

None

Class Methods

None

Methods

EricAutoResizeTextBrowser Constructor
__copyAllAs Private method to extract the contained text in the given text format and copy it to the system clipboard.
__copySelectionAs Private method to extract the selected text in the given text format and copy it to the system clipboard.
__showContextMenu Private slot to show the context menu.
resizeEvent Protected method to handle resize events.
updateGeometry Public method to update the geometry depending on the current text.

Static Methods

None

EricAutoResizeTextBrowser (Constructor)

EricAutoResizeTextBrowser(parent=None)

Constructor

parent (QWidget (optional))
reference to the parent widget (defaults to None)

EricAutoResizeTextBrowser.__copyAllAs

__copyAllAs(textFormat)

Private method to extract the contained text in the given text format and copy it to the system clipboard.

textFormat (str)
text format

EricAutoResizeTextBrowser.__copySelectionAs

__copySelectionAs(textFormat)

Private method to extract the selected text in the given text format and copy it to the system clipboard.

textFormat (str)
text format

EricAutoResizeTextBrowser.__showContextMenu

__showContextMenu(pos)

Private slot to show the context menu.

pos (QPoint)
position to show the menu at

EricAutoResizeTextBrowser.resizeEvent

resizeEvent(evt)

Protected method to handle resize events.

evt (QResizeEvent)
reference to the resize event

EricAutoResizeTextBrowser.updateGeometry

updateGeometry()

Public method to update the geometry depending on the current text.

Up