widgets¶
Package Contents¶
Classes¶
-
class
Widget_image
(image_b64)¶ Bases:
PyQt5.QtWidgets.QLabel
-
eventFilter
(source, event)¶
-
set_image
(image_b64)¶ Set new image to widget
-
-
class
Widget_lineDrawer
(minWinHeight=300, minWinWidth=300, is_light=True)¶ Bases:
PyQt5.QtWidgets.QWidget
Widget allowing to display several lines easily
-
signal_must_update
¶
-
on_update_signal
(listOfLines)¶
-
delete_lines
(key_id)¶ Dele the lines :param key_id: id to delete :return:
-
set_lines
(listOfLines, key_id=0, pen=None)¶ Set the lines to display :param listOfLines: list of [x1, y1, x2, y2] corresponding to lines :param key_id: id of the trace :param pen: pen used to draw the lines :return:
-
paintEvent
(event, painter=None)¶
-
get_extrema_lines
()¶
-
-
class
Widget_listWithSearch
(*args, **kwargs)¶ Bases:
PyQt5.QtWidgets.QWidget
-
get_index_selected
()¶
-
get_name_selected
()¶
-
set_list
(names)¶
-
_filter_list
()¶
-
_iter_items
()¶
-
Bases:
PyQt5.QtWidgets.QMenu
Same as QMenu, but integrates it behind a button more easily.
-
class
Widget_openGL
(parent=None)¶ Bases:
PyQt5.QtWidgets.QOpenGLWidget
Interface that provides opengl capabilities. Ensures zoom, light, rotation, etc.
-
sizeHint
()¶
-
minimumSizeHint
()¶
-
set_deviceDrawer
(theDeviceDrawer)¶ Set a drawer
optimeed.visualize.widgets.openGL.deviceDrawerInterface.DeviceDrawerInterface
-
set_deviceToDraw
(theDeviceToDraw)¶ Set the device to draw
-
initializeGL
()¶
-
paintGL
()¶
-
resizeGL
(w, h)¶
-
mousePressEvent
(event)¶
-
mouseMoveEvent
(event)¶
-
keyPressEvent
(event)¶
-
wheelEvent
(QWheelEvent)¶
-
-
class
Widget_tableWithSearch
(*args, **kwargs)¶ Bases:
PyQt5.QtWidgets.QWidget
-
cellChanged
¶
-
hideRow
(row)¶
-
showRow
(row)¶
-
force_hide_row
(row)¶
-
remove_forced_hide_row
(row)¶
-
get_entries_selected
()¶
-
_cellChanged
()¶
-
set_entries
(names, numColumns=3, hidden=False)¶
-
get_shown_entries
()¶
-
set_item
(row, col, item)¶
-
get_item
(row, col)¶
-
_filter_list
()¶
-
_iter_items
()¶
-
-
class
Widget_text
(theText, is_light=False, convertToHtml=False)¶ Bases:
PyQt5.QtWidgets.QLabel
Widget able to display a text
-
set_text
(theText, convertToHtml=False)¶ Set the text to display
-
-
class
Widget_text_scrollable
(theText, is_light=False, convertToHtml=False)¶ Bases:
PyQt5.QtWidgets.QWidget
Same as
widget_text
but scrollable-
set_text
(theText, convertToHtml=False)¶
-