PreferencesDialog

Incomplete documentation - sorry!

Note

Neil - please put some data in technical/class_headings/PreferencesDialog.rst

methods and attributes

class lib_openmolar.common.qt4.dialogs.preferences_dialog.PreferencesDialog(parent=None)[source]

Bases: PyQt4.QtGui.QDialog, lib_openmolar.common.qt4.widgets.advisor_notification.Advisor

A custom dialog providing a listWidget and a connected panel

__init__(parent=None)[source]
add_font_option()[source]

this is so useful, I include it by default

add_preference_dialog(preference)[source]

takes a single instance of Preference class and adds it to the dialog

insert_preference_dialog(index, preference)[source]

takes a single instance of Preference class and adds it to the dialog

iter_items()

a hack because I couldn’t get QListWidget.items() to work!!

minimumSizeHint()[source]
select_preference(preference)

pass in a string, and if it exists in the list, it will be selected typical usage would be PreferencesDialog.show_preference(_(“Fonts”))

sizeHint()[source]

Table Of Contents

Previous topic

Preference

Next topic

PrintedForm