~ubuntu-branches/ubuntu/raring/mnemosyne/raring

« back to all changes in this revision

Viewing changes to mnemosyne/pyqt_ui/card_type_wdgt_generic.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-04-18 20:43:08 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130418204308-tiwzzs0n1n79qhyt
Tags: 2.2.1-0ubuntu1
New upstream bugfix release (LP: #1169634)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        self.vboxlayout = QtGui.QVBoxLayout()
22
22
        self.fact_key_for_edit_box = {}
23
23
        self.top_edit_box = None
 
24
        self.edit_boxes = []
24
25
        self.fact_data_before_edit = {}
25
26
        # Does this card type need to deal with the hiding of pronunciation
26
27
        # keys?
38
39
                self.pronunciation_label = l
39
40
                self.pronunciation_label.setVisible(not pronunciation_hiding)
40
41
            t = QTextEdit2(self, pronunciation_hiding)
 
42
            self.edit_boxes.append(t)
41
43
            t.setTabChangesFocus(True)
42
44
            t.setUndoRedoEnabled(True)
43
45
            t.setReadOnly(False)
82
84
            checked, self.card_type)
83
85
        self.pronunciation_label.setVisible(not checked)
84
86
        self.pronunciation_box.setVisible(not checked)
85
 
        self.pronunciation_box.pronunciation_hiding = checked
 
87
        for edit_box in self.edit_boxes:
 
88
            edit_box.pronunciation_hiding = checked
86
89
 
87
90
    def update_formatting(self, edit_box):
88
91
        # Font colour.