Skip to content
Permalink
Browse files

Merge ParametersDialog & Ui_ParametersDialog. (Remnant from QT Design…

…er?)

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@299 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
cpolymeris@gmail.com
cpolymeris@gmail.com committed Jul 13, 2012
1 parent ea2b7fa commit d40660cdefeea420b836c6102f97c6d999a99934
Showing with 5 additions and 8 deletions.
  1. +3 −6 src/sextante/gui/ParametersDialog.py
  2. +2 −2 src/sextante/tests/test.py
@@ -37,17 +37,14 @@
_fromUtf8 = lambda s: s

class ParametersDialog(QtGui.QDialog):

NOT_SELECTED = "[Not selected]"
'''the default parameters dialog, to be used when an algorithm is called from the toolbox'''
def __init__(self, alg):
QtGui.QDialog.__init__(self, None, QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint)
self.ui = Ui_ParametersDialog()
self.ui.setupUi(self, alg)
self.setupUi(self, alg)
self.executed = False

class Ui_ParametersDialog(object):

NOT_SELECTED = "[Not selected]"

def setupUi(self, dialog, alg):
self.alg = alg
self.dialog = dialog
@@ -151,9 +151,9 @@ def runalg_parameters(self):
if not dlg:
dlg = ParametersDialog(self.alg)
# hack to handle that hacky code...
dlg.ui.setParamValues = lambda: True
dlg.setParamValues = lambda: True
dlg.show()
dlg.ui.accept()
dlg.accept()
while (not dlg.executed):
time.sleep(.5)

0 comments on commit d40660c

Please sign in to comment.
You can’t perform that action at this time.