File: wx.lib.wordwrap.txt

package info (click to toggle)
wxpython4.0 4.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 232,540 kB
  • sloc: cpp: 958,937; python: 233,059; ansic: 150,441; makefile: 51,662; sh: 8,687; perl: 1,563; javascript: 584; php: 326; xml: 200
file content (53 lines) | stat: -rw-r--r-- 1,785 bytes parent folder | download
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.