From: Carlos P. <cpa...@ce...> - 2015-12-23 11:37:32
|
Applied to develop On Fri 11 December 2015 15:19:03 cpa...@ce... wrote: > From: cpascual <cpa...@ce...> > > Taurustrend2d raises an exception when using the model chooser tool, > not allowing to change models from the GUI. Fix it by setting the > singleModel property of the tool to True. > --- > lib/taurus/qt/qtgui/extra_guiqwt/taurustrend2d.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/taurus/qt/qtgui/extra_guiqwt/taurustrend2d.py > b/lib/taurus/qt/qtgui/extra_guiqwt/taurustrend2d.py index > 6f36f35..ec184b0 100644 > --- a/lib/taurus/qt/qtgui/extra_guiqwt/taurustrend2d.py > +++ b/lib/taurus/qt/qtgui/extra_guiqwt/taurustrend2d.py > @@ -64,6 +64,7 @@ class TaurusTrend2DDialog(ImageDialog, > TaurusBaseWidget): #add some tools > for toolklass in (TaurusModelChooserTool,AutoScrollTool): > self.add_tool(toolklass) > + self.get_tool(TaurusModelChooserTool).singleModel = True > self.setModifiableByUser(self._modifiableByUser) > > def keyPressEvent(self,event): -- +----------------------------------------------------+ Carlos Pascual Izarra Scientific Software Coordinator Computing Division ALBA Synchrotron [http://www.albasynchrotron.es] Carrer de la Llum 2-26 E-08290 Cerdanyola del Valles (Barcelona), Spain E-mail: cpa...@ce... Phone: +34 93 592 4428 +----------------------------------------------------+ |