1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. module:: wx.lib.wordwrap
.. currentmodule:: wx.lib.wordwrap
.. highlight:: python
.. _wx.lib.wordwrap:
==========================================================================================================================================
|phoenix_title| **wx.lib.wordwrap**
==========================================================================================================================================
|function_summary| Functions Summary
====================================
================================================================================ ================================================================================
:func:`~wx.lib.wordwrap.wordwrap` Returns a copy of text with newline characters inserted where long
================================================================================ ================================================================================
|
Functions
------------
.. function:: 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.
|