22
33"""
44***************************************************************************
5- wrappers.py
5+ wrappers.py - Standard parameters widget wrappers
66 ---------------------
77 Date : May 2016
88 Copyright : (C) 2016 by Arnaud Morvan, Victor Olaya
1717* *
1818***************************************************************************
1919"""
20- from builtins import str
21- from builtins import range
2220
2321
2422__author__ = 'Arnaud Morvan'
@@ -101,14 +99,14 @@ class WidgetWrapper(QObject):
10199
102100 widgetValueHasChanged = pyqtSignal (object )
103101
104- def __init__ (self , param , dialog , row = 0 , col = 0 ):
102+ def __init__ (self , param , dialog , row = 0 , col = 0 , ** kwargs ):
105103 QObject .__init__ (self )
106104 self .param = param
107105 self .dialog = dialog
108106 self .row = row
109107 self .col = col
110108 self .dialogType = dialogTypes .get (dialog .__class__ .__name__ , DIALOG_STANDARD )
111- self .widget = self .createWidget ()
109+ self .widget = self .createWidget (** kwargs )
112110 if param .default is not None :
113111 self .setValue (param .default )
114112
@@ -123,7 +121,7 @@ def comboValue(self, validator=None, combobox=None):
123121 return v
124122 return combobox .currentData ()
125123
126- def createWidget (self ):
124+ def createWidget (self , ** kwargs ):
127125 pass
128126
129127 def setValue (self , value ):
0 commit comments