def set_ui_text(self, text, type=None):
		"""Convert an ui string to input howdy-gtk understands"""
		typedec = "M"

		if type == self.UI_SUBTEXT:
			typedec = "S"

		return self.send_ui_raw(typedec + "=" + text)
Convert an ui string to input howdy-gtk understands
howdy/src/rubberstamps/__init__.py