items.widgets.thumb_capture#

The editor used to capture a part of the screen to use it as an item’s thumbnail.

Classes:

ScreenCapture(server, job, root, source, proxy)

Screen capture widget.

Functions:

close()

Closes the ScreenCapture editor.

show([server, job, root, source, proxy])

Opens the ScreenCapture editor.

class bookmarks.items.widgets.thumb_capture.ScreenCapture(server, job, root, source, proxy, parent=None)[source]#

Bases: QDialog

Screen capture widget.

Signals:

captureFinished (str): Emitted with a filepath to the captured image.

Methods:

capture()

Capture the screen using the current capture_rectangle.

fit_screen_geometry()

Compute the union of all screen geometries, and resize to fit.

keyPressEvent(event)

Key press event handler.

mouseMoveEvent(event)

Event handler.

mousePressEvent(event)

Event handler.

mouseReleaseEvent(event)

Event handler.

paintEvent(event)

Event handler.

save_image(image)

Saves the captured image to disk.

showEvent(event)

Event handler.

capture()[source]#

Capture the screen using the current capture_rectangle.

Saves the resulting pixmap as png and emits the captureFinished signal with the file’s path. The slot is called by the dialog’s accepted signal.

fit_screen_geometry()[source]#

Compute the union of all screen geometries, and resize to fit.

keyPressEvent(event)[source]#

Key press event handler.

mouseMoveEvent(event)[source]#

Event handler.

mousePressEvent(event)[source]#

Event handler.

mouseReleaseEvent(event)[source]#

Event handler.

paintEvent(event)[source]#

Event handler.

save_image(image)[source]#

Saves the captured image to disk.

showEvent(event)[source]#

Event handler.

bookmarks.items.widgets.thumb_capture.close()[source]#

Closes the ScreenCapture editor.

bookmarks.items.widgets.thumb_capture.show(server=None, job=None, root=None, source=None, proxy=False)[source]#

Opens the ScreenCapture editor.