Working out the implementation of textwidgets