PyCScrollView.SetScaleToFitSize

SetScaleToFitSize(size)

Scales the viewport size to the current window size automatically.

Parameters

size : (x,y)

The horizontal and vertical sizes to which the view is to be scaled. The scroll view's size is measured in logical units.