taurus taurus

Previous topic

taurus.qt.qtgui.ui

Next topic

ActionFactory

This Page

taurus.qt.qtgui.util

This package provides a set of taurus wiget utilities like color management, configuration, actions.

Classes

Functions

getWidgetsOfType(widget, class_or_type_or_tuple)

Returns all widgets in a hierarchy of a certain type

Parameters:
  • widget (Qt.QWidget) – the widget to be inspected
  • class-or-type-or-tuple (type class or a tuple of type classes) – type to be checked
Returns:

a sequence containning all widgets in the hierarchy that match the given type

Return type:

seq<Qt.QWidget>

grabWidget(widget, fileName, period=None)

Grabs the given widget into the given image filename. If period is not given (or given with None) means grab immediately once and return. If period is given and >0 means grab the image every period seconds

Parameters:
  • widget (:class:~`Qt.QWidget`) – the qt widget to be grabbed
  • fileName (:class:~`str`) – the name of the image file
  • period (:class:~`float`) – period (seconds)