Skip to content

Commit

Permalink
Fix preference pane example
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jul 4, 2017
1 parent 485a1d0 commit b003fae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ v0.11.0 (unreleased)
both in terms of number of lines and in terms of the number of
connections/callbacks that need to be set up manually. [#1278, #1289]

v0.10.5 (unreleased)
--------------------

* Fix example of setting up a custom preferences pane. [#1326]

v0.10.4 (2017-05-23)
--------------------

Expand Down
10 changes: 5 additions & 5 deletions doc/customizing_guide/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,19 @@ then set any settings appropriately in the application state. The following is
an example of a custom preference pane::

from glue.config import settings, preference_panes
from glue.external.qt import QtGui
from qtpy import QtWidgets


class MyPreferences(QtGui.QWidget):
class MyPreferences(QtWidgets.QWidget):

def __init__(self, parent=None):

super(MyPreferences, self).__init__(parent=parent)

self.layout = QtGui.QFormLayout()
self.layout = QtWidgets.QFormLayout()

self.option1 = QtGui.QLineEdit()
self.option2 = QtGui.QCheckBox()
self.option1 = QtWidgets.QLineEdit()
self.option2 = QtWidgets.QCheckBox()

self.layout.addRow("Option 1", self.option1)
self.layout.addRow("Option 2", self.option2)
Expand Down

0 comments on commit b003fae

Please sign in to comment.