schrodinger.ui.qt.standard_widgets.sketcher_text_widget module

class schrodinger.ui.qt.standard_widgets.sketcher_text_widget.SketcherTextWidget(*args, **kwargs)

Bases: schrodinger.models.mappers.MapperMixin, schrodinger.ui.qt.basewidgets.BaseWidget

Widget that allows for displaying a LineEdit and a button that opens a sketcher dialog. The LineEdit can be edited directly or populated using the SMARTS pattern returned by sketcher.

ui_module = <module 'schrodinger.ui.qt.standard_widgets.sketcher_text_widget_ui' from '/scr/buildbot/savedbuilds/2024-4/NB/build-117/internal/lib/python3.11/site-packages/schrodinger/ui/qt/standard_widgets/sketcher_text_widget_ui.py'>
initSetUp()

Creates widget from ui and stores it ui_widget.

Suggested subclass use: create and initialize subwidgets, and connect signals.

value() str

Get the text that is currently displayed

setValue(data: str)

Set the text displayed in the LineEdit

Parameters

data – new text to display

onSketcherBtnClicked()

Open sketcher and set the LineEdit’s text to the returned SMARTS pattern