Changeset 833:f300ebc45a7f for src/mlx/gui/faultexplain.py
- Timestamp:
- 04/15/17 12:32:05 (7 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/faultexplain.py
r620 r833 94 94 buffer.get_end_iter(), True) 95 95 96 @explanation.setter 97 def explanation(self, explanation): 98 """Set the explanation.""" 99 self._explanation.get_buffer().set_text(explanation) 100 96 101 @property 97 102 def hasExplanation(self): … … 126 131 127 132 class FaultExplainWidget(gtk.Frame): 128 """The widget for the fa ilts and their explanations."""133 """The widget for the faults and their explanations.""" 129 134 @staticmethod 130 135 def getFaultFrame(alignment): … … 235 240 numExplanations = self._numExplanations - 236 241 (1 if hasExplanation else 0)) 242 243 def setExplanation(self, id, explanation): 244 """Set the explanation for the fault with the given ID""" 245 self._faultWidgets[id][1].explanation = explanation 237 246 238 247 def reset(self):
Note:
See TracChangeset
for help on using the changeset viewer.