AddNotesWidget

Author:Neil Wallace (neil@openmolar.com)
Release:2.0.906~hg207
Date:April 18, 2013
AddNotesWidget

This widget combines a CompletionTextEdit and a QtGui.QPushButton

Allows rapid text entry (using the system dictionary), and emits a Save signal when the pushbutton is pressed. See emit_save()

Note

see DictionaryCompleter about the paths for your dictionary.

methods and attributes

class lib_openmolar.client.qt4.widgets.add_notes_widget.AddNotesWidget(parent=None)[source]

Bases: PyQt4.QtGui.QWidget

A custom widget to take text entry and signal when completed.

__init__(self, parent=None)[source]
emit_save()[source]

this function is called when user clicks the save button

>>> self.emit(QtCore.SIGNAL("Save Requested"))
minimumSizeHint()[source]

overwrite the base class method return QtCore.QSize(200,50)

set_text(text)[source]

A convenience function to access CompletionTextEdit component’s setText functionality

sizeHint()[source]

overwrite the base class method return QtCore.QSize(500,120)

text[source]

A convenience function to access CompletionTextEdit component’s current text

text_edit = None

a pointer to the CompletionTextEdit component

Table Of Contents

Previous topic

Client Classes

Next topic

AddressDialog