Given this line, place the cursor on the first '3', hit cw. f3 = wx.StaticText(self, -1, "F3") Here's the result: f wx.StaticText(self, -1, "F3") It gobbles the current word, the space, the '=', and another space. Michael