def METHOD_NAME(self):
    ps.pixelsize[0] = float(self.tPixelSizeX.GetValue())
    ps.pixelsize[1] = float(self.tPixelSizeY.GetValue())
    ps.pixels[0] = int(self.tXPixels.GetValue())
    ps.pixels[1] = int(self.tYPixels.GetValue())