fsleyes_widgets.placeholder_textctrl
This module provides the PlaceholderTextCtrl which is a
wx.TextCtrl that displays some placeholder text when it is empty
and unfocused.
- class fsleyes_widgets.placeholder_textctrl.PlaceholderTextCtrl(*args, **kwargs)[source]
Bases:
TextCtrlthe
PlaceholderTextCtrlis awx.TextCtrlthat displays some placeholder text when it is empty and unfocused.I wrote this class as a substitute for the
wx.SearchCtrlwhich, under OSX Cocoa (wxPython 3.0.2.0) has focusing bugs that make it unusable.Create a
PlaceholderTextCtrl.- Parameters:
placeholder – The text to display when the control is empty and unfocused.
placeholderColour – Colour to display the placeholder text in.
All other arguments are passed to
wx.TextCtrl.__init__.