@@ -237,7 +237,8 @@ def add_combo_menu(self, name, label='', items=None, tooltip=None,
237237 #: redraw node to address calls outside the "__init__" func.
238238 self .view .draw_node ()
239239
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 ):
241242 """
242243 Creates a custom property with the :meth:`NodeObject.create_property`
243244 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):
250251 Args:
251252 name (str): name for the custom property.
252253 label (str): label to be displayed.
253- text (str): pre filled text.
254+ text (str): pre-filled text.
255+ placeholder_text (str): placeholder text.
254256 tooltip (str): widget tooltip.
255257 tab (str): name of the widget tab to display in.
256258 """
@@ -261,7 +263,7 @@ def add_text_input(self, name, label='', text='', tooltip=None, tab=None):
261263 widget_tooltip = tooltip ,
262264 tab = tab
263265 )
264- widget = NodeLineEdit (self .view , name , label , text )
266+ widget = NodeLineEdit (self .view , name , label , text , placeholder_text )
265267 widget .setToolTip (tooltip or '' )
266268 widget .value_changed .connect (lambda k , v : self .set_property (k , v ))
267269 self .view .add_widget (widget )
0 commit comments