@@ -0,0 +1,673 @@
+# -*- coding: utf-8 -*-%0A%0A## %5Cpackage custom.textinput%0A%0A# MIT licensing%0A# See: LICENSE.txt%0A%0A%0Aimport wx%0A%0A%0A## wx.TextCtrl derived class that sets 'Default' attribute & 'Reset' method%0Aclass TextCtrl(wx.TextCtrl):%0A    def __init__(self, parent, win_id=wx.ID_ANY, value=wx.EmptyString, pos=wx.DefaultPosition,%0A            size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=wx.TextCtrlNameStr):%0A        wx.TextCtrl.__init__(self, parent, win_id, value, pos, size, style, validator, name)%0A        %0A        self.Default = value%0A    %0A    %0A    ## TODO: Doxygen%0A    def Reset(self):%0A        self.SetValue(self.Default)%0A        %0A        return self.Value == self.Default%0A

Add custom.textinput.TextCtrl: