eye.widgets.misc module

class eye.widgets.misc.LogWidget(parent=None)[source]

Bases: QPlainTextEdit

class LogHandler(widget)[source]

Bases: Handler

Initializes the instance - basically setting the formatter to None and the filter list to empty.

emit(record)[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

install()[source]
uninstall()[source]
class eye.widgets.misc.PositionIndicator(format=None, **kwargs)[source]

Bases: QLabel, WidgetMixin

Widget indicating cursor position of currently focused editor

When cursor position changes or focus goes to another editor widget, the text of this label is refreshed.

focus_changed(_, new)[source]

This slot has signature focus_changed('QWidget*', 'QWidget*').

format = '{percent:3.0f}% {line:5d}:{vcol:3d}'

Text format of the label

Uses PEP-3101 string formatting. Usable keys are line, col, percent, offset, path, title and editor.

update_label()[source]

This slot has signature update_label().

class eye.widgets.misc.WidgetPicker[source]

Bases: QWidget

Widget for letting user point at another widget.

mouseMoveEvent(ev)[source]
mousePressEvent(ev)[source]
run()[source]
selected = Signal()
eye.widgets.misc.interactiveWidgetPick()[source]

Let user peek a widget by clicking on it.

The user can point at open EYE widgets and click on one. Return the widget that was clicked by the user.