Toggles line wrapping in the label. If wrap is true, the lines exceeding the size of the widget will be automatically wrapped. Where wrap is false, those lines will be cut off at the widget's edge.
$label->set_line_wrap(true);