Skip to content

Commit c27c9d7

Browse files
committed
Added get_fmt_widget for PostTiming formatoption
1 parent 9e7c295 commit c27c9d7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

psyplot/plotter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,15 @@ def validate(value):
786786
def update(self, value):
787787
pass
788788

789+
def get_fmt_widget(self, parent, project):
790+
from psyplot_gui.compat.qtcompat import QComboBox
791+
combo = QComboBox(parent)
792+
combo.addItems(['never', 'always', 'replot'])
793+
combo.setCurrentText(
794+
next((plotter[self.key] for plotter in project.plotters), 'never'))
795+
combo.currentTextChanged.connect(parent.set_obj)
796+
return combo
797+
789798

790799
class PostProcDependencies(object):
791800
"""The dependencies of this formatoption"""

0 commit comments

Comments
 (0)