+
+ def home(self):
+ self.currPos = 0
+ self.update()
+
+ def end(self):
+ self.currPos = len(self.Text) - 1
+ self.update()
+
+ def tab(self):
+ if self.currPos == len(self.Text) - 1:
+ self.Text=self.Text+ " "
+ self.end()
+ else:
+ self.Text = self.Text[0:self.currPos] + " " + self.Text[self.currPos:]
+ self.update()