diff --git a/Code/Wrappers/PyQt/otbapp/maingui.py b/Code/Wrappers/PyQt/otbapp/maingui.py index 2c1f4e8c73c69941cdc81773e7a953da62c1e528..735179f46fe8cbe767ba236f6b2f9fdc5c6d1f23 100644 --- a/Code/Wrappers/PyQt/otbapp/maingui.py +++ b/Code/Wrappers/PyQt/otbapp/maingui.py @@ -8,8 +8,6 @@ class QParameterModel(QtCore.QObject): def __init__(self, app): super(QParameterModel, self).__init__() self._app = app - print self._app.GetName() - print self._app.GetDescription() def GetApplication(self): return self._app @@ -62,8 +60,7 @@ class QParameterView(QtGui.QMainWindow): description.setText(self._app.GetDescription()) h.addWidget(description) - g.setLayout(h) - + g.setLayout(h) return g def CreateInputWidgets(self): diff --git a/Code/Wrappers/PyQt/otbapp/widgets.py b/Code/Wrappers/PyQt/otbapp/widgets.py index 7c72f401c2e89f0900a9b127a725fe624e3f5bd4..be70170f8aeb40cfe644058c00d62feec8aef029 100644 --- a/Code/Wrappers/PyQt/otbapp/widgets.py +++ b/Code/Wrappers/PyQt/otbapp/widgets.py @@ -28,12 +28,10 @@ class QParameterLabel(QParameterBase): app = self.GetModel().GetApplication() self.label.setText( app.GetParameterName(paramKey)) self.label.setToolTip( app.GetParameterDescription(paramKey) ) - print self.label.toolTip() self.labelLayout = QtGui.QVBoxLayout() self.labelLayout.setSpacing(0) self.labelLayout.setContentsMargins(0,0,0,0) self.labelLayout.addWidget(self.label) - print self.labelLayout.spacing() self.setLayout(self.labelLayout) self.setWindowTitle('box layout') @@ -85,7 +83,6 @@ class QParameterInt(QParameterBase): self.setLayout(h) def SetValue(self, val): - print val app = self.GetModel().GetApplication() app.SetParameterInt(self._paramKey, val) @@ -96,7 +93,6 @@ class QParameterChoice(QParameterBase): self._paramKey = paramKey def DoCreateWidget(self): - print 'QParameterChoice DoCreateWidget' app = self.GetModel().GetApplication() layout = QtGui.QVBoxLayout() @@ -108,14 +104,12 @@ class QParameterChoice(QParameterBase): stack = QtGui.QStackedWidget() allparams = app.GetParametersKeys() - print 'allparams = ' + str(allparams) subgroups = set() for paramKey in allparams: if paramKey.startswith(self._paramKey): choiceSubParam = paramKey.partition(self._paramKey + '.')[2].partition('.')[0] if choiceSubParam: subgroups.add(choiceSubParam.partition('.')[0]) - print str(subgroups) for subgroup in subgroups: combo.addItem(subgroup, subgroup) @@ -157,7 +151,6 @@ class QParameterFloat(QParameterBase): self.setLayout(h) def SetValue(self, val): - print val app = self.GetModel().GetApplication() app.SetParameterFloat(self._paramKey, val) @@ -182,7 +175,6 @@ class QParameterString(QParameterBase): self.setLayout(h) def SetValue(self, val): - print val app = self.GetModel().GetApplication() app.SetParameterString(self._paramKey, str(val)) @@ -215,7 +207,6 @@ class QParameterInputFilename(QParameterBase): self.setLayout(h) def SetFilename(self, val): - print val app = self.GetModel().GetApplication() app.SetParameterString(self._paramKey, str(val)) @@ -256,7 +247,6 @@ class QParameterDirectory(QParameterBase): self.setLayout(h) def SetDirname(self, val): - print val app = self.GetModel().GetApplication() app.SetParameterString(self._paramKey, str(val)) @@ -297,7 +287,6 @@ class QParameterOutputImage(QParameterBase): self.setLayout(h) def SetFilename(self, val): - print val app = self.GetModel().GetApplication() app.SetParameterString(self._paramKey, str(val)) @@ -313,14 +302,11 @@ class QParameterGroup(QParameterBase): def __init__(self, model, paramKey = None): super(QParameterGroup, self).__init__(model) self._paramKey = paramKey - if paramKey: - print 'QParameterGroup ' + paramKey def DoUpdateGUI(self): pass def DoCreateWidget(self): - print "QParameterGroup DoCreateWidget" grid = QtGui.QGridLayout() grid.setSpacing(1) grid.setContentsMargins(0,0,0,0) @@ -353,7 +339,6 @@ class QParameterGroup(QParameterBase): i = 0 for key in keys: widgetClass = paramTypeToWidget[app.GetParameterType(key)] - print "widgetClass " + str(widgetClass) grid.addWidget( QParameterLabel(self._model, key), i, 0 ) w = widgetClass(self._model, key) w.CreateWidget() diff --git a/Example/otbSmoothing.cxx b/Example/otbSmoothing.cxx index 2a5786f54c2b0d269456ae560260b35ad5f6d483..8f5fb646b0dc9dd89484a7ca987338d4811f2ab4 100644 --- a/Example/otbSmoothing.cxx +++ b/Example/otbSmoothing.cxx @@ -61,7 +61,6 @@ private: virtual ~Smoothing() { - std::cout << "~Smoothing" << std::endl; } void DoCreateParameters() diff --git a/Example/otbTestApplication.cxx b/Example/otbTestApplication.cxx index bbbba192f8fd152ef731fcf86e46329b4c5146bc..84c42256b5e4ae7fa9c9cdc92b547f8d36c66d72 100644 --- a/Example/otbTestApplication.cxx +++ b/Example/otbTestApplication.cxx @@ -42,13 +42,10 @@ private: { SetName("TestApplication"); SetDescription("This application demonstrate the use of all parameters types"); - - std::cout << ">>>>>>>>>>>>>> TestApplication" << std::endl; } virtual ~TestApplication() { - std::cout << ">>>>>>>>>>>>>> ~TestApplication" << std::endl; } void DoCreateParameters()