Phoenix Logo

phoenix_title wx.lib.wordwrap

function_summary Functions Summary

wordwrap Returns a copy of text with newline characters inserted where long

Functions



wordwrap(text, width, dc, breakLongWords=True, margin=0)

Returns a copy of text with newline characters inserted where long lines should be broken such that they will fit within the given width, with the given margin left and right, on the given wx.DC using its current font settings. By default words that are wider than the margin-adjusted width will be broken at the nearest character boundary, but this can be disabled by passing False for the breakLongWords parameter.