@@ -237,7 +237,8 @@ def add_combo_menu(self, name, label='', items=None, tooltip=None,
237
237
#: redraw node to address calls outside the "__init__" func.
238
238
self .view .draw_node ()
239
239
240
- def add_text_input (self , name , label = '' , text = '' , tooltip = None , tab = None ):
240
+ def add_text_input (self , name , label = '' , text = '' , placeholder_text = '' ,
241
+ tooltip = None , tab = None ):
241
242
"""
242
243
Creates a custom property with the :meth:`NodeObject.create_property`
243
244
function and embeds a :class:`PySide2.QtWidgets.QLineEdit` widget
@@ -250,7 +251,8 @@ def add_text_input(self, name, label='', text='', tooltip=None, tab=None):
250
251
Args:
251
252
name (str): name for the custom property.
252
253
label (str): label to be displayed.
253
- text (str): pre filled text.
254
+ text (str): pre-filled text.
255
+ placeholder_text (str): placeholder text.
254
256
tooltip (str): widget tooltip.
255
257
tab (str): name of the widget tab to display in.
256
258
"""
@@ -261,7 +263,7 @@ def add_text_input(self, name, label='', text='', tooltip=None, tab=None):
261
263
widget_tooltip = tooltip ,
262
264
tab = tab
263
265
)
264
- widget = NodeLineEdit (self .view , name , label , text )
266
+ widget = NodeLineEdit (self .view , name , label , text , placeholder_text )
265
267
widget .setToolTip (tooltip or '' )
266
268
widget .value_changed .connect (lambda k , v : self .set_property (k , v ))
267
269
self .view .add_widget (widget )
0 commit comments