def GetPositionTuple(self): ''' ''' if window is None or \ window.Handle is None: # Physical window not yet available (y_characters, x_characters) = (0, 0) else: # Physical window already available (y_characters, x_characters) = window.Handle.getyx() (x_pixels, y_pixels) = wx.tsGetPixelValues( x_characters, y_characters) self.tsSetPosition(wxPoint(x_pixels, y_pixels)) return (x_pixels, y_pixels)
def GetSizeTuple(self): ''' ''' # Ignore self.Size. It is always a single character (width, height) = wx.tsGetPixelValues(1, 1) return (width, height)