code: def get_width(self):
          
  
          return self.__margin + \
                 self.__editor.fontMetrics().width(foundations.strings.to_string(max(1, self.__editor.blockCount())))
docs: Returns the Widget target width.
  
          :return: Widget target width.
          :rtype: int