1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
54 USE_TEXTATTREX
= _richtext
.USE_TEXTATTREX
58 __docfilter__
= wx
.__DocFilter
(globals())
59 RE_READONLY
= _richtext
.RE_READONLY
60 RE_MULTILINE
= _richtext
.RE_MULTILINE
61 RICHTEXT_SHIFT_DOWN
= _richtext
.RICHTEXT_SHIFT_DOWN
62 RICHTEXT_CTRL_DOWN
= _richtext
.RICHTEXT_CTRL_DOWN
63 RICHTEXT_ALT_DOWN
= _richtext
.RICHTEXT_ALT_DOWN
64 RICHTEXT_SELECTED
= _richtext
.RICHTEXT_SELECTED
65 RICHTEXT_TAGGED
= _richtext
.RICHTEXT_TAGGED
66 RICHTEXT_FOCUSSED
= _richtext
.RICHTEXT_FOCUSSED
67 RICHTEXT_IS_FOCUS
= _richtext
.RICHTEXT_IS_FOCUS
68 RICHTEXT_TYPE_ANY
= _richtext
.RICHTEXT_TYPE_ANY
69 RICHTEXT_TYPE_TEXT
= _richtext
.RICHTEXT_TYPE_TEXT
70 RICHTEXT_TYPE_XML
= _richtext
.RICHTEXT_TYPE_XML
71 RICHTEXT_TYPE_HTML
= _richtext
.RICHTEXT_TYPE_HTML
72 RICHTEXT_TYPE_RTF
= _richtext
.RICHTEXT_TYPE_RTF
73 RICHTEXT_TYPE_PDF
= _richtext
.RICHTEXT_TYPE_PDF
74 RICHTEXT_FIXED_WIDTH
= _richtext
.RICHTEXT_FIXED_WIDTH
75 RICHTEXT_FIXED_HEIGHT
= _richtext
.RICHTEXT_FIXED_HEIGHT
76 RICHTEXT_VARIABLE_WIDTH
= _richtext
.RICHTEXT_VARIABLE_WIDTH
77 RICHTEXT_VARIABLE_HEIGHT
= _richtext
.RICHTEXT_VARIABLE_HEIGHT
78 RICHTEXT_HITTEST_NONE
= _richtext
.RICHTEXT_HITTEST_NONE
79 RICHTEXT_HITTEST_BEFORE
= _richtext
.RICHTEXT_HITTEST_BEFORE
80 RICHTEXT_HITTEST_AFTER
= _richtext
.RICHTEXT_HITTEST_AFTER
81 RICHTEXT_HITTEST_ON
= _richtext
.RICHTEXT_HITTEST_ON
82 RICHTEXT_FORMATTED
= _richtext
.RICHTEXT_FORMATTED
83 RICHTEXT_UNFORMATTED
= _richtext
.RICHTEXT_UNFORMATTED
84 RICHTEXT_INSERT_NONE
= _richtext
.RICHTEXT_INSERT_NONE
85 RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE
= _richtext
.RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE
86 TEXT_ATTR_TEXT_COLOUR
= _richtext
.TEXT_ATTR_TEXT_COLOUR
87 TEXT_ATTR_BACKGROUND_COLOUR
= _richtext
.TEXT_ATTR_BACKGROUND_COLOUR
88 TEXT_ATTR_FONT_FACE
= _richtext
.TEXT_ATTR_FONT_FACE
89 TEXT_ATTR_FONT_SIZE
= _richtext
.TEXT_ATTR_FONT_SIZE
90 TEXT_ATTR_FONT_WEIGHT
= _richtext
.TEXT_ATTR_FONT_WEIGHT
91 TEXT_ATTR_FONT_ITALIC
= _richtext
.TEXT_ATTR_FONT_ITALIC
92 TEXT_ATTR_FONT_UNDERLINE
= _richtext
.TEXT_ATTR_FONT_UNDERLINE
93 TEXT_ATTR_FONT
= _richtext
.TEXT_ATTR_FONT
94 TEXT_ATTR_ALIGNMENT
= _richtext
.TEXT_ATTR_ALIGNMENT
95 TEXT_ATTR_LEFT_INDENT
= _richtext
.TEXT_ATTR_LEFT_INDENT
96 TEXT_ATTR_RIGHT_INDENT
= _richtext
.TEXT_ATTR_RIGHT_INDENT
97 TEXT_ATTR_TABS
= _richtext
.TEXT_ATTR_TABS
98 TEXT_ATTR_PARA_SPACING_AFTER
= _richtext
.TEXT_ATTR_PARA_SPACING_AFTER
99 TEXT_ATTR_PARA_SPACING_BEFORE
= _richtext
.TEXT_ATTR_PARA_SPACING_BEFORE
100 TEXT_ATTR_LINE_SPACING
= _richtext
.TEXT_ATTR_LINE_SPACING
101 TEXT_ATTR_CHARACTER_STYLE_NAME
= _richtext
.TEXT_ATTR_CHARACTER_STYLE_NAME
102 TEXT_ATTR_PARAGRAPH_STYLE_NAME
= _richtext
.TEXT_ATTR_PARAGRAPH_STYLE_NAME
103 TEXT_ATTR_BULLET_STYLE
= _richtext
.TEXT_ATTR_BULLET_STYLE
104 TEXT_ATTR_BULLET_NUMBER
= _richtext
.TEXT_ATTR_BULLET_NUMBER
105 TEXT_ATTR_BULLET_SYMBOL
= _richtext
.TEXT_ATTR_BULLET_SYMBOL
106 TEXT_ATTR_BULLET_STYLE_NONE
= _richtext
.TEXT_ATTR_BULLET_STYLE_NONE
107 TEXT_ATTR_BULLET_STYLE_ARABIC
= _richtext
.TEXT_ATTR_BULLET_STYLE_ARABIC
108 TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
= _richtext
.TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
109 TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
= _richtext
.TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
110 TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
= _richtext
.TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
111 TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
= _richtext
.TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
112 TEXT_ATTR_BULLET_STYLE_SYMBOL
= _richtext
.TEXT_ATTR_BULLET_STYLE_SYMBOL
113 TEXT_ATTR_BULLET_STYLE_BITMAP
= _richtext
.TEXT_ATTR_BULLET_STYLE_BITMAP
114 TEXT_ATTR_BULLET_STYLE_PARENTHESES
= _richtext
.TEXT_ATTR_BULLET_STYLE_PARENTHESES
115 TEXT_ATTR_BULLET_STYLE_PERIOD
= _richtext
.TEXT_ATTR_BULLET_STYLE_PERIOD
116 TEXT_ATTR_LINE_SPACING_NORMAL
= _richtext
.TEXT_ATTR_LINE_SPACING_NORMAL
117 TEXT_ATTR_LINE_SPACING_HALF
= _richtext
.TEXT_ATTR_LINE_SPACING_HALF
118 TEXT_ATTR_LINE_SPACING_TWICE
= _richtext
.TEXT_ATTR_LINE_SPACING_TWICE
119 TEXT_ALIGNMENT_DEFAULT
= _richtext
.TEXT_ALIGNMENT_DEFAULT
120 TEXT_ALIGNMENT_LEFT
= _richtext
.TEXT_ALIGNMENT_LEFT
121 TEXT_ALIGNMENT_CENTRE
= _richtext
.TEXT_ALIGNMENT_CENTRE
122 TEXT_ALIGNMENT_CENTER
= _richtext
.TEXT_ALIGNMENT_CENTER
123 TEXT_ALIGNMENT_RIGHT
= _richtext
.TEXT_ALIGNMENT_RIGHT
124 TEXT_ALIGNMENT_JUSTIFIED
= _richtext
.TEXT_ALIGNMENT_JUSTIFIED
125 class RichTextRange(object):
127 RichTextRange is a data structure that represents a range of text
128 within a `RichTextCtrl`. It simply contains integer ``start`` and
129 ``end`` properties and a few operations useful for dealing with
130 ranges. In most places in wxPython where a RichTextRange is expected a
131 2-tuple containing (start, end) can be used instead.
133 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
134 __repr__
= _swig_repr
135 def __init__(self
, *args
, **kwargs
):
137 __init__(self, long start=0, long end=0) -> RichTextRange
139 Creates a new range object.
141 _richtext
.RichTextRange_swiginit(self
,_richtext
.new_RichTextRange(*args
, **kwargs
))
142 __swig_destroy__
= _richtext
.delete_RichTextRange
143 __del__
= lambda self
: None;
144 def __eq__(*args
, **kwargs
):
146 __eq__(self, PyObject other) -> bool
148 Test for equality of RichTextRange objects.
150 return _richtext
.RichTextRange___eq__(*args
, **kwargs
)
152 def __sub__(*args
, **kwargs
):
153 """__sub__(self, RichTextRange range) -> RichTextRange"""
154 return _richtext
.RichTextRange___sub__(*args
, **kwargs
)
156 def __add__(*args
, **kwargs
):
157 """__add__(self, RichTextRange range) -> RichTextRange"""
158 return _richtext
.RichTextRange___add__(*args
, **kwargs
)
160 def SetRange(*args
, **kwargs
):
161 """SetRange(self, long start, long end)"""
162 return _richtext
.RichTextRange_SetRange(*args
, **kwargs
)
164 def SetStart(*args
, **kwargs
):
165 """SetStart(self, long start)"""
166 return _richtext
.RichTextRange_SetStart(*args
, **kwargs
)
168 def GetStart(*args
, **kwargs
):
169 """GetStart(self) -> long"""
170 return _richtext
.RichTextRange_GetStart(*args
, **kwargs
)
172 start
= property(GetStart
, SetStart
)
173 def SetEnd(*args
, **kwargs
):
174 """SetEnd(self, long end)"""
175 return _richtext
.RichTextRange_SetEnd(*args
, **kwargs
)
177 def GetEnd(*args
, **kwargs
):
178 """GetEnd(self) -> long"""
179 return _richtext
.RichTextRange_GetEnd(*args
, **kwargs
)
181 end
= property(GetEnd
, SetEnd
)
182 def IsOutside(*args
, **kwargs
):
184 IsOutside(self, RichTextRange range) -> bool
186 Returns true if this range is completely outside 'range'
188 return _richtext
.RichTextRange_IsOutside(*args
, **kwargs
)
190 def IsWithin(*args
, **kwargs
):
192 IsWithin(self, RichTextRange range) -> bool
194 Returns true if this range is completely within 'range'
196 return _richtext
.RichTextRange_IsWithin(*args
, **kwargs
)
198 def Contains(*args
, **kwargs
):
200 Contains(self, long pos) -> bool
202 Returns true if the given position is within this range. Allow for the
203 possibility of an empty range - assume the position is within this
206 return _richtext
.RichTextRange_Contains(*args
, **kwargs
)
208 def LimitTo(*args
, **kwargs
):
210 LimitTo(self, RichTextRange range) -> bool
212 Limit this range to be within 'range'
214 return _richtext
.RichTextRange_LimitTo(*args
, **kwargs
)
216 def GetLength(*args
, **kwargs
):
218 GetLength(self) -> long
220 Gets the length of the range
222 return _richtext
.RichTextRange_GetLength(*args
, **kwargs
)
224 def Swap(*args
, **kwargs
):
228 Swaps the start and end
230 return _richtext
.RichTextRange_Swap(*args
, **kwargs
)
232 def Get(*args
, **kwargs
):
236 Returns the start and end properties as a tuple.
238 return _richtext
.RichTextRange_Get(*args
, **kwargs
)
240 def __str__(self
): return str(self
.Get())
241 def __repr__(self
): return 'RichTextRange'+str(self
.Get())
242 def __len__(self
): return len(self
.Get())
243 def __getitem__(self
, index
): return self
.Get()[index
]
244 def __setitem__(self
, index
, val
):
245 if index
== 0: self
.start
= val
246 elif index
== 1: self
.end
= val
247 else: raise IndexError
248 def __nonzero__(self
): return self
.Get() != (0,0)
249 __safe_for_unpickling__
= True
250 def __reduce__(self
): return (RichTextRange
, self
.Get())
252 End
= property(GetEnd
,SetEnd
,doc
="See `GetEnd` and `SetEnd`")
253 Length
= property(GetLength
,doc
="See `GetLength`")
254 Start
= property(GetStart
,SetStart
,doc
="See `GetStart` and `SetStart`")
255 _richtext
.RichTextRange_swigregister(RichTextRange
)
257 class RichTextAttr(object):
259 The RichTextAttr class stored information about the various attributes
260 for a block of text, including font, colour, indents, alignments, and
263 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
264 __repr__
= _swig_repr
265 def __init__(self
, *args
, **kwargs
):
267 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
268 int alignment=TEXT_ALIGNMENT_DEFAULT) -> RichTextAttr
270 The RichTextAttr class stored information about the various attributes
271 for a block of text, including font, colour, indents, alignments, and
274 _richtext
.RichTextAttr_swiginit(self
,_richtext
.new_RichTextAttr(*args
, **kwargs
))
275 __swig_destroy__
= _richtext
.delete_RichTextAttr
276 __del__
= lambda self
: None;
277 def CreateFont(*args
, **kwargs
):
278 """CreateFont(self) -> Font"""
279 return _richtext
.RichTextAttr_CreateFont(*args
, **kwargs
)
281 def GetFontAttributes(*args
, **kwargs
):
282 """GetFontAttributes(self, Font font) -> bool"""
283 return _richtext
.RichTextAttr_GetFontAttributes(*args
, **kwargs
)
286 return self
.CreateFont()
287 def SetFont(self
, font
):
288 return self
.GetFontAttributes(font
)
290 def SetTextColour(*args
, **kwargs
):
291 """SetTextColour(self, Colour colText)"""
292 return _richtext
.RichTextAttr_SetTextColour(*args
, **kwargs
)
294 def SetBackgroundColour(*args
, **kwargs
):
295 """SetBackgroundColour(self, Colour colBack)"""
296 return _richtext
.RichTextAttr_SetBackgroundColour(*args
, **kwargs
)
298 def SetAlignment(*args
, **kwargs
):
299 """SetAlignment(self, int alignment)"""
300 return _richtext
.RichTextAttr_SetAlignment(*args
, **kwargs
)
302 def SetTabs(*args
, **kwargs
):
303 """SetTabs(self, wxArrayInt tabs)"""
304 return _richtext
.RichTextAttr_SetTabs(*args
, **kwargs
)
306 def SetLeftIndent(*args
, **kwargs
):
307 """SetLeftIndent(self, int indent, int subIndent=0)"""
308 return _richtext
.RichTextAttr_SetLeftIndent(*args
, **kwargs
)
310 def SetRightIndent(*args
, **kwargs
):
311 """SetRightIndent(self, int indent)"""
312 return _richtext
.RichTextAttr_SetRightIndent(*args
, **kwargs
)
314 def SetFontSize(*args
, **kwargs
):
315 """SetFontSize(self, int pointSize)"""
316 return _richtext
.RichTextAttr_SetFontSize(*args
, **kwargs
)
318 def SetFontStyle(*args
, **kwargs
):
319 """SetFontStyle(self, int fontStyle)"""
320 return _richtext
.RichTextAttr_SetFontStyle(*args
, **kwargs
)
322 def SetFontWeight(*args
, **kwargs
):
323 """SetFontWeight(self, int fontWeight)"""
324 return _richtext
.RichTextAttr_SetFontWeight(*args
, **kwargs
)
326 def SetFontFaceName(*args
, **kwargs
):
327 """SetFontFaceName(self, String faceName)"""
328 return _richtext
.RichTextAttr_SetFontFaceName(*args
, **kwargs
)
330 def SetFontUnderlined(*args
, **kwargs
):
331 """SetFontUnderlined(self, bool underlined)"""
332 return _richtext
.RichTextAttr_SetFontUnderlined(*args
, **kwargs
)
334 def SetFlags(*args
, **kwargs
):
335 """SetFlags(self, long flags)"""
336 return _richtext
.RichTextAttr_SetFlags(*args
, **kwargs
)
338 def SetCharacterStyleName(*args
, **kwargs
):
339 """SetCharacterStyleName(self, String name)"""
340 return _richtext
.RichTextAttr_SetCharacterStyleName(*args
, **kwargs
)
342 def SetParagraphStyleName(*args
, **kwargs
):
343 """SetParagraphStyleName(self, String name)"""
344 return _richtext
.RichTextAttr_SetParagraphStyleName(*args
, **kwargs
)
346 def SetParagraphSpacingAfter(*args
, **kwargs
):
347 """SetParagraphSpacingAfter(self, int spacing)"""
348 return _richtext
.RichTextAttr_SetParagraphSpacingAfter(*args
, **kwargs
)
350 def SetParagraphSpacingBefore(*args
, **kwargs
):
351 """SetParagraphSpacingBefore(self, int spacing)"""
352 return _richtext
.RichTextAttr_SetParagraphSpacingBefore(*args
, **kwargs
)
354 def SetLineSpacing(*args
, **kwargs
):
355 """SetLineSpacing(self, int spacing)"""
356 return _richtext
.RichTextAttr_SetLineSpacing(*args
, **kwargs
)
358 def SetBulletStyle(*args
, **kwargs
):
359 """SetBulletStyle(self, int style)"""
360 return _richtext
.RichTextAttr_SetBulletStyle(*args
, **kwargs
)
362 def SetBulletNumber(*args
, **kwargs
):
363 """SetBulletNumber(self, int n)"""
364 return _richtext
.RichTextAttr_SetBulletNumber(*args
, **kwargs
)
366 def SetBulletSymbol(*args
, **kwargs
):
367 """SetBulletSymbol(self, wxChar symbol)"""
368 return _richtext
.RichTextAttr_SetBulletSymbol(*args
, **kwargs
)
370 def GetTextColour(*args
, **kwargs
):
371 """GetTextColour(self) -> Colour"""
372 return _richtext
.RichTextAttr_GetTextColour(*args
, **kwargs
)
374 def GetBackgroundColour(*args
, **kwargs
):
375 """GetBackgroundColour(self) -> Colour"""
376 return _richtext
.RichTextAttr_GetBackgroundColour(*args
, **kwargs
)
378 def GetAlignment(*args
, **kwargs
):
379 """GetAlignment(self) -> int"""
380 return _richtext
.RichTextAttr_GetAlignment(*args
, **kwargs
)
382 def GetTabs(*args
, **kwargs
):
383 """GetTabs(self) -> wxArrayInt"""
384 return _richtext
.RichTextAttr_GetTabs(*args
, **kwargs
)
386 def GetLeftIndent(*args
, **kwargs
):
387 """GetLeftIndent(self) -> long"""
388 return _richtext
.RichTextAttr_GetLeftIndent(*args
, **kwargs
)
390 def GetLeftSubIndent(*args
, **kwargs
):
391 """GetLeftSubIndent(self) -> long"""
392 return _richtext
.RichTextAttr_GetLeftSubIndent(*args
, **kwargs
)
394 def GetRightIndent(*args
, **kwargs
):
395 """GetRightIndent(self) -> long"""
396 return _richtext
.RichTextAttr_GetRightIndent(*args
, **kwargs
)
398 def GetFlags(*args
, **kwargs
):
399 """GetFlags(self) -> long"""
400 return _richtext
.RichTextAttr_GetFlags(*args
, **kwargs
)
402 def GetFontSize(*args
, **kwargs
):
403 """GetFontSize(self) -> int"""
404 return _richtext
.RichTextAttr_GetFontSize(*args
, **kwargs
)
406 def GetFontStyle(*args
, **kwargs
):
407 """GetFontStyle(self) -> int"""
408 return _richtext
.RichTextAttr_GetFontStyle(*args
, **kwargs
)
410 def GetFontWeight(*args
, **kwargs
):
411 """GetFontWeight(self) -> int"""
412 return _richtext
.RichTextAttr_GetFontWeight(*args
, **kwargs
)
414 def GetFontUnderlined(*args
, **kwargs
):
415 """GetFontUnderlined(self) -> bool"""
416 return _richtext
.RichTextAttr_GetFontUnderlined(*args
, **kwargs
)
418 def GetFontFaceName(*args
, **kwargs
):
419 """GetFontFaceName(self) -> String"""
420 return _richtext
.RichTextAttr_GetFontFaceName(*args
, **kwargs
)
422 def GetCharacterStyleName(*args
, **kwargs
):
423 """GetCharacterStyleName(self) -> String"""
424 return _richtext
.RichTextAttr_GetCharacterStyleName(*args
, **kwargs
)
426 def GetParagraphStyleName(*args
, **kwargs
):
427 """GetParagraphStyleName(self) -> String"""
428 return _richtext
.RichTextAttr_GetParagraphStyleName(*args
, **kwargs
)
430 def GetParagraphSpacingAfter(*args
, **kwargs
):
431 """GetParagraphSpacingAfter(self) -> int"""
432 return _richtext
.RichTextAttr_GetParagraphSpacingAfter(*args
, **kwargs
)
434 def GetParagraphSpacingBefore(*args
, **kwargs
):
435 """GetParagraphSpacingBefore(self) -> int"""
436 return _richtext
.RichTextAttr_GetParagraphSpacingBefore(*args
, **kwargs
)
438 def GetLineSpacing(*args
, **kwargs
):
439 """GetLineSpacing(self) -> int"""
440 return _richtext
.RichTextAttr_GetLineSpacing(*args
, **kwargs
)
442 def GetBulletStyle(*args
, **kwargs
):
443 """GetBulletStyle(self) -> int"""
444 return _richtext
.RichTextAttr_GetBulletStyle(*args
, **kwargs
)
446 def GetBulletNumber(*args
, **kwargs
):
447 """GetBulletNumber(self) -> int"""
448 return _richtext
.RichTextAttr_GetBulletNumber(*args
, **kwargs
)
450 def GetBulletSymbol(*args
, **kwargs
):
451 """GetBulletSymbol(self) -> wxChar"""
452 return _richtext
.RichTextAttr_GetBulletSymbol(*args
, **kwargs
)
454 def HasTextColour(*args
, **kwargs
):
455 """HasTextColour(self) -> bool"""
456 return _richtext
.RichTextAttr_HasTextColour(*args
, **kwargs
)
458 def HasBackgroundColour(*args
, **kwargs
):
459 """HasBackgroundColour(self) -> bool"""
460 return _richtext
.RichTextAttr_HasBackgroundColour(*args
, **kwargs
)
462 def HasAlignment(*args
, **kwargs
):
463 """HasAlignment(self) -> bool"""
464 return _richtext
.RichTextAttr_HasAlignment(*args
, **kwargs
)
466 def HasTabs(*args
, **kwargs
):
467 """HasTabs(self) -> bool"""
468 return _richtext
.RichTextAttr_HasTabs(*args
, **kwargs
)
470 def HasLeftIndent(*args
, **kwargs
):
471 """HasLeftIndent(self) -> bool"""
472 return _richtext
.RichTextAttr_HasLeftIndent(*args
, **kwargs
)
474 def HasRightIndent(*args
, **kwargs
):
475 """HasRightIndent(self) -> bool"""
476 return _richtext
.RichTextAttr_HasRightIndent(*args
, **kwargs
)
478 def HasWeight(*args
, **kwargs
):
479 """HasWeight(self) -> bool"""
480 return _richtext
.RichTextAttr_HasWeight(*args
, **kwargs
)
482 def HasSize(*args
, **kwargs
):
483 """HasSize(self) -> bool"""
484 return _richtext
.RichTextAttr_HasSize(*args
, **kwargs
)
486 def HasItalic(*args
, **kwargs
):
487 """HasItalic(self) -> bool"""
488 return _richtext
.RichTextAttr_HasItalic(*args
, **kwargs
)
490 def HasUnderlined(*args
, **kwargs
):
491 """HasUnderlined(self) -> bool"""
492 return _richtext
.RichTextAttr_HasUnderlined(*args
, **kwargs
)
494 def HasFaceName(*args
, **kwargs
):
495 """HasFaceName(self) -> bool"""
496 return _richtext
.RichTextAttr_HasFaceName(*args
, **kwargs
)
498 def HasFont(*args
, **kwargs
):
499 """HasFont(self) -> bool"""
500 return _richtext
.RichTextAttr_HasFont(*args
, **kwargs
)
502 def HasParagraphSpacingAfter(*args
, **kwargs
):
503 """HasParagraphSpacingAfter(self) -> bool"""
504 return _richtext
.RichTextAttr_HasParagraphSpacingAfter(*args
, **kwargs
)
506 def HasParagraphSpacingBefore(*args
, **kwargs
):
507 """HasParagraphSpacingBefore(self) -> bool"""
508 return _richtext
.RichTextAttr_HasParagraphSpacingBefore(*args
, **kwargs
)
510 def HasLineSpacing(*args
, **kwargs
):
511 """HasLineSpacing(self) -> bool"""
512 return _richtext
.RichTextAttr_HasLineSpacing(*args
, **kwargs
)
514 def HasCharacterStyleName(*args
, **kwargs
):
515 """HasCharacterStyleName(self) -> bool"""
516 return _richtext
.RichTextAttr_HasCharacterStyleName(*args
, **kwargs
)
518 def HasParagraphStyleName(*args
, **kwargs
):
519 """HasParagraphStyleName(self) -> bool"""
520 return _richtext
.RichTextAttr_HasParagraphStyleName(*args
, **kwargs
)
522 def HasBulletStyle(*args
, **kwargs
):
523 """HasBulletStyle(self) -> bool"""
524 return _richtext
.RichTextAttr_HasBulletStyle(*args
, **kwargs
)
526 def HasBulletNumber(*args
, **kwargs
):
527 """HasBulletNumber(self) -> bool"""
528 return _richtext
.RichTextAttr_HasBulletNumber(*args
, **kwargs
)
530 def HasBulletSymbol(*args
, **kwargs
):
531 """HasBulletSymbol(self) -> bool"""
532 return _richtext
.RichTextAttr_HasBulletSymbol(*args
, **kwargs
)
534 def HasFlag(*args
, **kwargs
):
535 """HasFlag(self, long flag) -> bool"""
536 return _richtext
.RichTextAttr_HasFlag(*args
, **kwargs
)
538 def IsCharacterStyle(*args
, **kwargs
):
539 """IsCharacterStyle(self) -> bool"""
540 return _richtext
.RichTextAttr_IsCharacterStyle(*args
, **kwargs
)
542 def IsParagraphStyle(*args
, **kwargs
):
543 """IsParagraphStyle(self) -> bool"""
544 return _richtext
.RichTextAttr_IsParagraphStyle(*args
, **kwargs
)
546 def IsDefault(*args
, **kwargs
):
547 """IsDefault(self) -> bool"""
548 return _richtext
.RichTextAttr_IsDefault(*args
, **kwargs
)
550 Alignment
= property(GetAlignment
,SetAlignment
,doc
="See `GetAlignment` and `SetAlignment`")
551 BackgroundColour
= property(GetBackgroundColour
,SetBackgroundColour
,doc
="See `GetBackgroundColour` and `SetBackgroundColour`")
552 BulletNumber
= property(GetBulletNumber
,SetBulletNumber
,doc
="See `GetBulletNumber` and `SetBulletNumber`")
553 BulletStyle
= property(GetBulletStyle
,SetBulletStyle
,doc
="See `GetBulletStyle` and `SetBulletStyle`")
554 BulletSymbol
= property(GetBulletSymbol
,SetBulletSymbol
,doc
="See `GetBulletSymbol` and `SetBulletSymbol`")
555 CharacterStyleName
= property(GetCharacterStyleName
,SetCharacterStyleName
,doc
="See `GetCharacterStyleName` and `SetCharacterStyleName`")
556 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
557 Font
= property(GetFont
,SetFont
,doc
="See `GetFont` and `SetFont`")
558 FontAttributes
= property(GetFontAttributes
,doc
="See `GetFontAttributes`")
559 FontFaceName
= property(GetFontFaceName
,SetFontFaceName
,doc
="See `GetFontFaceName` and `SetFontFaceName`")
560 FontSize
= property(GetFontSize
,SetFontSize
,doc
="See `GetFontSize` and `SetFontSize`")
561 FontStyle
= property(GetFontStyle
,SetFontStyle
,doc
="See `GetFontStyle` and `SetFontStyle`")
562 FontUnderlined
= property(GetFontUnderlined
,SetFontUnderlined
,doc
="See `GetFontUnderlined` and `SetFontUnderlined`")
563 FontWeight
= property(GetFontWeight
,SetFontWeight
,doc
="See `GetFontWeight` and `SetFontWeight`")
564 LeftIndent
= property(GetLeftIndent
,SetLeftIndent
,doc
="See `GetLeftIndent` and `SetLeftIndent`")
565 LeftSubIndent
= property(GetLeftSubIndent
,doc
="See `GetLeftSubIndent`")
566 LineSpacing
= property(GetLineSpacing
,SetLineSpacing
,doc
="See `GetLineSpacing` and `SetLineSpacing`")
567 ParagraphSpacingAfter
= property(GetParagraphSpacingAfter
,SetParagraphSpacingAfter
,doc
="See `GetParagraphSpacingAfter` and `SetParagraphSpacingAfter`")
568 ParagraphSpacingBefore
= property(GetParagraphSpacingBefore
,SetParagraphSpacingBefore
,doc
="See `GetParagraphSpacingBefore` and `SetParagraphSpacingBefore`")
569 ParagraphStyleName
= property(GetParagraphStyleName
,SetParagraphStyleName
,doc
="See `GetParagraphStyleName` and `SetParagraphStyleName`")
570 RightIndent
= property(GetRightIndent
,SetRightIndent
,doc
="See `GetRightIndent` and `SetRightIndent`")
571 Tabs
= property(GetTabs
,SetTabs
,doc
="See `GetTabs` and `SetTabs`")
572 TextColour
= property(GetTextColour
,SetTextColour
,doc
="See `GetTextColour` and `SetTextColour`")
573 _richtext
.RichTextAttr_swigregister(RichTextAttr
)
574 cvar
= _richtext
.cvar
575 RICHTEXT_ALL
= cvar
.RICHTEXT_ALL
576 RICHTEXT_NONE
= cvar
.RICHTEXT_NONE
578 TEXT_ATTR_CHARACTER
= _richtext
.TEXT_ATTR_CHARACTER
579 TEXT_ATTR_PARAGRAPH
= _richtext
.TEXT_ATTR_PARAGRAPH
580 TEXT_ATTR_ALL
= _richtext
.TEXT_ATTR_ALL
581 class RichTextCtrl(_windows
.ScrolledWindow
):
582 """Proxy of C++ RichTextCtrl class"""
583 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
584 __repr__
= _swig_repr
585 def __init__(self
, *args
, **kwargs
):
587 __init__(self, Window parent, int id=-1, String value=EmptyString,
588 Point pos=DefaultPosition, Size size=DefaultSize,
589 long style=RE_MULTILINE) -> RichTextCtrl
591 _richtext
.RichTextCtrl_swiginit(self
,_richtext
.new_RichTextCtrl(*args
, **kwargs
))
592 self
._setOORInfo
(self
)
594 def Create(*args
, **kwargs
):
596 Create(self, Window parent, int id=-1, String value=EmptyString,
597 Point pos=DefaultPosition, Size size=DefaultSize,
598 long style=RE_MULTILINE) -> bool
600 return _richtext
.RichTextCtrl_Create(*args
, **kwargs
)
602 def GetValue(*args
, **kwargs
):
603 """GetValue(self) -> String"""
604 return _richtext
.RichTextCtrl_GetValue(*args
, **kwargs
)
606 def SetValue(*args
, **kwargs
):
607 """SetValue(self, String value)"""
608 return _richtext
.RichTextCtrl_SetValue(*args
, **kwargs
)
610 def GetRange(*args
, **kwargs
):
611 """GetRange(self, long from, long to) -> String"""
612 return _richtext
.RichTextCtrl_GetRange(*args
, **kwargs
)
614 def GetLineLength(*args
, **kwargs
):
615 """GetLineLength(self, long lineNo) -> int"""
616 return _richtext
.RichTextCtrl_GetLineLength(*args
, **kwargs
)
618 def GetLineText(*args
, **kwargs
):
619 """GetLineText(self, long lineNo) -> String"""
620 return _richtext
.RichTextCtrl_GetLineText(*args
, **kwargs
)
622 def GetNumberOfLines(*args
, **kwargs
):
623 """GetNumberOfLines(self) -> int"""
624 return _richtext
.RichTextCtrl_GetNumberOfLines(*args
, **kwargs
)
626 def IsModified(*args
, **kwargs
):
627 """IsModified(self) -> bool"""
628 return _richtext
.RichTextCtrl_IsModified(*args
, **kwargs
)
630 def IsEditable(*args
, **kwargs
):
631 """IsEditable(self) -> bool"""
632 return _richtext
.RichTextCtrl_IsEditable(*args
, **kwargs
)
634 def IsSingleLine(*args
, **kwargs
):
635 """IsSingleLine(self) -> bool"""
636 return _richtext
.RichTextCtrl_IsSingleLine(*args
, **kwargs
)
638 def IsMultiLine(*args
, **kwargs
):
639 """IsMultiLine(self) -> bool"""
640 return _richtext
.RichTextCtrl_IsMultiLine(*args
, **kwargs
)
642 def GetSelection(*args
, **kwargs
):
644 GetSelection() --> (start, end)
646 Returns the start and end positions of the current selection. If the
647 values are the same then there is no selection.
649 return _richtext
.RichTextCtrl_GetSelection(*args
, **kwargs
)
651 def GetStringSelection(*args
, **kwargs
):
652 """GetStringSelection(self) -> String"""
653 return _richtext
.RichTextCtrl_GetStringSelection(*args
, **kwargs
)
655 def GetFilename(*args
, **kwargs
):
656 """GetFilename(self) -> String"""
657 return _richtext
.RichTextCtrl_GetFilename(*args
, **kwargs
)
659 def SetFilename(*args
, **kwargs
):
660 """SetFilename(self, String filename)"""
661 return _richtext
.RichTextCtrl_SetFilename(*args
, **kwargs
)
663 def SetDelayedLayoutThreshold(*args
, **kwargs
):
665 SetDelayedLayoutThreshold(self, long threshold)
667 Set the threshold in character positions for doing layout optimization
670 return _richtext
.RichTextCtrl_SetDelayedLayoutThreshold(*args
, **kwargs
)
672 def GetDelayedLayoutThreshold(*args
, **kwargs
):
674 GetDelayedLayoutThreshold(self) -> long
676 Get the threshold in character positions for doing layout optimization
679 return _richtext
.RichTextCtrl_GetDelayedLayoutThreshold(*args
, **kwargs
)
681 def Clear(*args
, **kwargs
):
683 return _richtext
.RichTextCtrl_Clear(*args
, **kwargs
)
685 def Replace(*args
, **kwargs
):
686 """Replace(self, long from, long to, String value)"""
687 return _richtext
.RichTextCtrl_Replace(*args
, **kwargs
)
689 def Remove(*args
, **kwargs
):
690 """Remove(self, long from, long to)"""
691 return _richtext
.RichTextCtrl_Remove(*args
, **kwargs
)
693 def LoadFile(*args
, **kwargs
):
695 LoadFile(self, String file, int type=RICHTEXT_TYPE_ANY) -> bool
697 Load the contents of the document from the given filename.
699 return _richtext
.RichTextCtrl_LoadFile(*args
, **kwargs
)
701 def SaveFile(*args
, **kwargs
):
703 SaveFile(self, String file=EmptyString, int type=RICHTEXT_TYPE_ANY) -> bool
705 Save the contents of the document to the given filename, or if the
706 empty string is passed then to the filename set with `SetFilename`.
708 return _richtext
.RichTextCtrl_SaveFile(*args
, **kwargs
)
710 def MarkDirty(*args
, **kwargs
):
714 Sets the dirty flag, meaning that the contents of the control have
715 changed and need to be saved.
717 return _richtext
.RichTextCtrl_MarkDirty(*args
, **kwargs
)
719 def DiscardEdits(*args
, **kwargs
):
723 Clears the dirty flag.
726 return _richtext
.RichTextCtrl_DiscardEdits(*args
, **kwargs
)
728 def SetMaxLength(*args
, **kwargs
):
730 SetMaxLength(self, unsigned long len)
732 Set the max number of characters which may be entered in a single line
735 return _richtext
.RichTextCtrl_SetMaxLength(*args
, **kwargs
)
737 def WriteText(*args
, **kwargs
):
739 WriteText(self, String text)
741 Insert text at the current position.
743 return _richtext
.RichTextCtrl_WriteText(*args
, **kwargs
)
745 def AppendText(*args
, **kwargs
):
747 AppendText(self, String text)
749 Append text to the end of the document.
751 return _richtext
.RichTextCtrl_AppendText(*args
, **kwargs
)
753 def SetStyle(*args
, **kwargs
):
755 SetStyle(self, RichTextRange range, RichTextAttr style) -> bool
757 Set the style for the text in ``range`` to ``style``
759 return _richtext
.RichTextCtrl_SetStyle(*args
, **kwargs
)
761 def GetStyle(*args
, **kwargs
):
763 GetStyle(self, long position, RichTextAttr style) -> bool
765 Retrieve the style used at the given position. Copies the style
766 values at ``position`` into the ``style`` parameter and returns ``True``
767 if successful. Returns ``False`` otherwise.
769 return _richtext
.RichTextCtrl_GetStyle(*args
, **kwargs
)
771 def GetUncombinedStyle(*args
, **kwargs
):
773 GetUncombinedStyle(self, long position, RichTextAttr style) -> bool
775 Get the content (uncombined) attributes for this position. Copies the
776 style values at ``position`` into the ``style`` parameter and returns
777 ``True`` if successful. Returns ``False`` otherwise.
779 return _richtext
.RichTextCtrl_GetUncombinedStyle(*args
, **kwargs
)
781 def SetDefaultStyle(*args
, **kwargs
):
783 SetDefaultStyle(self, RichTextAttr style) -> bool
785 Set the style used by default for the rich text document.
787 return _richtext
.RichTextCtrl_SetDefaultStyle(*args
, **kwargs
)
789 def GetDefaultStyle(*args
, **kwargs
):
791 GetDefaultStyle(self) -> RichTextAttr
793 Retrieves a copy of the default style object.
795 return _richtext
.RichTextCtrl_GetDefaultStyle(*args
, **kwargs
)
797 def XYToPosition(*args
, **kwargs
):
799 XYToPosition(self, long x, long y) -> long
801 Translate a col,row coordinants into a document position.
803 return _richtext
.RichTextCtrl_XYToPosition(*args
, **kwargs
)
805 def PositionToXY(*args
, **kwargs
):
807 PositionToXY(self, long pos) --> (x, y)
809 Retrieves the col,row for the given position within the document
811 return _richtext
.RichTextCtrl_PositionToXY(*args
, **kwargs
)
813 def ShowPosition(*args
, **kwargs
):
815 ShowPosition(self, long position)
817 Ensure that the given position in the document is visible.
819 return _richtext
.RichTextCtrl_ShowPosition(*args
, **kwargs
)
821 def HitTest(*args
, **kwargs
):
823 HitTest(self, Point pt) --> (result, pos)
825 Returns the character position at the given point in pixels. Note
826 that ``pt`` should be given in device coordinates, and not be adjusted
827 for the client area origin nor for scrolling. The return value is a
828 tuple of the hit test result and the position.
830 return _richtext
.RichTextCtrl_HitTest(*args
, **kwargs
)
832 def HitTestXY(*args
, **kwargs
):
834 HitTestRC(self, Point pt) --> (result, col, row)
836 Returns the column and row of the given point in pixels. Note that
837 ``pt`` should be given in device coordinates, and not be adjusted for
838 the client area origin nor for scrolling. The return value is a tuple
839 of the hit test result and the column and row values.
841 return _richtext
.RichTextCtrl_HitTestXY(*args
, **kwargs
)
843 def Copy(*args
, **kwargs
):
847 Copies the selected text to the clipboard.
849 return _richtext
.RichTextCtrl_Copy(*args
, **kwargs
)
851 def Cut(*args
, **kwargs
):
855 Copies the selected text to the clipboard and removes the selection.
857 return _richtext
.RichTextCtrl_Cut(*args
, **kwargs
)
859 def Paste(*args
, **kwargs
):
863 Pastes text from the clipboard into the document at the current
866 return _richtext
.RichTextCtrl_Paste(*args
, **kwargs
)
868 def DeleteSelection(*args
, **kwargs
):
870 DeleteSelection(self)
872 Remove the current selection.
874 return _richtext
.RichTextCtrl_DeleteSelection(*args
, **kwargs
)
876 def CanCopy(*args
, **kwargs
):
878 CanCopy(self) -> bool
880 Returns ``True`` if the selection can be copied to the clipboard.
882 return _richtext
.RichTextCtrl_CanCopy(*args
, **kwargs
)
884 def CanCut(*args
, **kwargs
):
888 Returns ``True`` if the selection can be cut to the clipboard.
890 return _richtext
.RichTextCtrl_CanCut(*args
, **kwargs
)
892 def CanPaste(*args
, **kwargs
):
894 CanPaste(self) -> bool
896 Returns ``True`` if the current contents of the clipboard can be
897 pasted into the document.
899 return _richtext
.RichTextCtrl_CanPaste(*args
, **kwargs
)
901 def CanDeleteSelection(*args
, **kwargs
):
903 CanDeleteSelection(self) -> bool
905 Returns ``True`` if the selection can be removed from the document.
907 return _richtext
.RichTextCtrl_CanDeleteSelection(*args
, **kwargs
)
909 def Undo(*args
, **kwargs
):
913 If the last operation can be undone, undoes the last operation.
915 return _richtext
.RichTextCtrl_Undo(*args
, **kwargs
)
917 def Redo(*args
, **kwargs
):
921 If the last operation can be redone, redoes the last operation.
923 return _richtext
.RichTextCtrl_Redo(*args
, **kwargs
)
925 def CanUndo(*args
, **kwargs
):
927 CanUndo(self) -> bool
929 Returns ``True`` if the last operation can be undone.
931 return _richtext
.RichTextCtrl_CanUndo(*args
, **kwargs
)
933 def CanRedo(*args
, **kwargs
):
935 CanRedo(self) -> bool
937 Returns ``True`` if the last operation can be redone.
939 return _richtext
.RichTextCtrl_CanRedo(*args
, **kwargs
)
941 def SetInsertionPoint(*args
, **kwargs
):
943 SetInsertionPoint(self, long pos)
945 Sets the insertion point at the given position.
947 return _richtext
.RichTextCtrl_SetInsertionPoint(*args
, **kwargs
)
949 def SetInsertionPointEnd(*args
, **kwargs
):
951 SetInsertionPointEnd(self)
953 Moves the insertion point to the end of the document.
955 return _richtext
.RichTextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
957 def GetInsertionPoint(*args
, **kwargs
):
959 GetInsertionPoint(self) -> long
961 Returns the insertion point. This is defined as the zero based index
962 of the character position to the right of the insertion point.
964 return _richtext
.RichTextCtrl_GetInsertionPoint(*args
, **kwargs
)
966 def GetLastPosition(*args
, **kwargs
):
968 GetLastPosition(self) -> long
970 Returns the zero based index of the last position in the document.
972 return _richtext
.RichTextCtrl_GetLastPosition(*args
, **kwargs
)
974 def SetSelection(*args
, **kwargs
):
976 SetSelection(self, long from, long to)
978 Selects the text starting at the first position up to (but not
979 including) the character at the last position. If both parameters are
980 equal to -1 then all text in the control is selected.
982 return _richtext
.RichTextCtrl_SetSelection(*args
, **kwargs
)
984 def SelectAll(*args
, **kwargs
):
988 Select all text in the document.
990 return _richtext
.RichTextCtrl_SelectAll(*args
, **kwargs
)
992 def SetEditable(*args
, **kwargs
):
994 SetEditable(self, bool editable)
996 Makes the document editable or read-only, overriding the RE_READONLY
999 return _richtext
.RichTextCtrl_SetEditable(*args
, **kwargs
)
1001 def HasSelection(*args
, **kwargs
):
1002 """HasSelection(self) -> bool"""
1003 return _richtext
.RichTextCtrl_HasSelection(*args
, **kwargs
)
1005 def WriteImage(*args
, **kwargs
):
1006 """WriteImage(self, Image image, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
1007 return _richtext
.RichTextCtrl_WriteImage(*args
, **kwargs
)
1009 def WriteBitmap(*args
, **kwargs
):
1010 """WriteBitmap(self, Bitmap bitmap, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
1011 return _richtext
.RichTextCtrl_WriteBitmap(*args
, **kwargs
)
1013 def WriteImageFile(*args
, **kwargs
):
1014 """WriteImageFile(self, String filename, int bitmapType) -> bool"""
1015 return _richtext
.RichTextCtrl_WriteImageFile(*args
, **kwargs
)
1017 def WriteImageBlock(*args
, **kwargs
):
1018 """WriteImageBlock(self, wxRichTextImageBlock imageBlock) -> bool"""
1019 return _richtext
.RichTextCtrl_WriteImageBlock(*args
, **kwargs
)
1021 def Newline(*args
, **kwargs
):
1022 """Newline(self) -> bool"""
1023 return _richtext
.RichTextCtrl_Newline(*args
, **kwargs
)
1025 def SetBasicStyle(*args
, **kwargs
):
1026 """SetBasicStyle(self, RichTextAttr style)"""
1027 return _richtext
.RichTextCtrl_SetBasicStyle(*args
, **kwargs
)
1029 def EndStyle(*args
, **kwargs
):
1030 """EndStyle(self) -> bool"""
1031 return _richtext
.RichTextCtrl_EndStyle(*args
, **kwargs
)
1033 def EndAllStyles(*args
, **kwargs
):
1034 """EndAllStyles(self) -> bool"""
1035 return _richtext
.RichTextCtrl_EndAllStyles(*args
, **kwargs
)
1037 def BeginBold(*args
, **kwargs
):
1038 """BeginBold(self) -> bool"""
1039 return _richtext
.RichTextCtrl_BeginBold(*args
, **kwargs
)
1041 def EndBold(*args
, **kwargs
):
1042 """EndBold(self) -> bool"""
1043 return _richtext
.RichTextCtrl_EndBold(*args
, **kwargs
)
1045 def BeginItalic(*args
, **kwargs
):
1046 """BeginItalic(self) -> bool"""
1047 return _richtext
.RichTextCtrl_BeginItalic(*args
, **kwargs
)
1049 def EndItalic(*args
, **kwargs
):
1050 """EndItalic(self) -> bool"""
1051 return _richtext
.RichTextCtrl_EndItalic(*args
, **kwargs
)
1053 def BeginUnderline(*args
, **kwargs
):
1054 """BeginUnderline(self) -> bool"""
1055 return _richtext
.RichTextCtrl_BeginUnderline(*args
, **kwargs
)
1057 def EndUnderline(*args
, **kwargs
):
1058 """EndUnderline(self) -> bool"""
1059 return _richtext
.RichTextCtrl_EndUnderline(*args
, **kwargs
)
1061 def BeginFontSize(*args
, **kwargs
):
1062 """BeginFontSize(self, int pointSize) -> bool"""
1063 return _richtext
.RichTextCtrl_BeginFontSize(*args
, **kwargs
)
1065 def EndFontSize(*args
, **kwargs
):
1066 """EndFontSize(self) -> bool"""
1067 return _richtext
.RichTextCtrl_EndFontSize(*args
, **kwargs
)
1069 def BeginFont(*args
, **kwargs
):
1070 """BeginFont(self, Font font) -> bool"""
1071 return _richtext
.RichTextCtrl_BeginFont(*args
, **kwargs
)
1073 def EndFont(*args
, **kwargs
):
1074 """EndFont(self) -> bool"""
1075 return _richtext
.RichTextCtrl_EndFont(*args
, **kwargs
)
1077 def BeginTextColour(*args
, **kwargs
):
1078 """BeginTextColour(self, Colour colour) -> bool"""
1079 return _richtext
.RichTextCtrl_BeginTextColour(*args
, **kwargs
)
1081 def EndTextColour(*args
, **kwargs
):
1082 """EndTextColour(self) -> bool"""
1083 return _richtext
.RichTextCtrl_EndTextColour(*args
, **kwargs
)
1085 def BeginAlignment(*args
, **kwargs
):
1086 """BeginAlignment(self, int alignment) -> bool"""
1087 return _richtext
.RichTextCtrl_BeginAlignment(*args
, **kwargs
)
1089 def EndAlignment(*args
, **kwargs
):
1090 """EndAlignment(self) -> bool"""
1091 return _richtext
.RichTextCtrl_EndAlignment(*args
, **kwargs
)
1093 def BeginLeftIndent(*args
, **kwargs
):
1094 """BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool"""
1095 return _richtext
.RichTextCtrl_BeginLeftIndent(*args
, **kwargs
)
1097 def EndLeftIndent(*args
, **kwargs
):
1098 """EndLeftIndent(self) -> bool"""
1099 return _richtext
.RichTextCtrl_EndLeftIndent(*args
, **kwargs
)
1101 def BeginRightIndent(*args
, **kwargs
):
1102 """BeginRightIndent(self, int rightIndent) -> bool"""
1103 return _richtext
.RichTextCtrl_BeginRightIndent(*args
, **kwargs
)
1105 def EndRightIndent(*args
, **kwargs
):
1106 """EndRightIndent(self) -> bool"""
1107 return _richtext
.RichTextCtrl_EndRightIndent(*args
, **kwargs
)
1109 def BeginParagraphSpacing(*args
, **kwargs
):
1110 """BeginParagraphSpacing(self, int before, int after) -> bool"""
1111 return _richtext
.RichTextCtrl_BeginParagraphSpacing(*args
, **kwargs
)
1113 def EndParagraphSpacing(*args
, **kwargs
):
1114 """EndParagraphSpacing(self) -> bool"""
1115 return _richtext
.RichTextCtrl_EndParagraphSpacing(*args
, **kwargs
)
1117 def BeginLineSpacing(*args
, **kwargs
):
1118 """BeginLineSpacing(self, int lineSpacing) -> bool"""
1119 return _richtext
.RichTextCtrl_BeginLineSpacing(*args
, **kwargs
)
1121 def EndLineSpacing(*args
, **kwargs
):
1122 """EndLineSpacing(self) -> bool"""
1123 return _richtext
.RichTextCtrl_EndLineSpacing(*args
, **kwargs
)
1125 def BeginNumberedBullet(*args
, **kwargs
):
1127 BeginNumberedBullet(self, int bulletNumber, int leftIndent, int leftSubIndent,
1128 int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) -> bool
1130 return _richtext
.RichTextCtrl_BeginNumberedBullet(*args
, **kwargs
)
1132 def EndNumberedBullet(*args
, **kwargs
):
1133 """EndNumberedBullet(self) -> bool"""
1134 return _richtext
.RichTextCtrl_EndNumberedBullet(*args
, **kwargs
)
1136 def BeginSymbolBullet(*args
, **kwargs
):
1137 """BeginSymbolBullet(self, char symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
1138 return _richtext
.RichTextCtrl_BeginSymbolBullet(*args
, **kwargs
)
1140 def EndSymbolBullet(*args
, **kwargs
):
1141 """EndSymbolBullet(self) -> bool"""
1142 return _richtext
.RichTextCtrl_EndSymbolBullet(*args
, **kwargs
)
1144 def BeginCharacterStyle(*args
, **kwargs
):
1145 """BeginCharacterStyle(self, String characterStyle) -> bool"""
1146 return _richtext
.RichTextCtrl_BeginCharacterStyle(*args
, **kwargs
)
1148 def EndCharacterStyle(*args
, **kwargs
):
1149 """EndCharacterStyle(self) -> bool"""
1150 return _richtext
.RichTextCtrl_EndCharacterStyle(*args
, **kwargs
)
1152 def BeginParagraphStyle(*args
, **kwargs
):
1153 """BeginParagraphStyle(self, String paragraphStyle) -> bool"""
1154 return _richtext
.RichTextCtrl_BeginParagraphStyle(*args
, **kwargs
)
1156 def EndParagraphStyle(*args
, **kwargs
):
1157 """EndParagraphStyle(self) -> bool"""
1158 return _richtext
.RichTextCtrl_EndParagraphStyle(*args
, **kwargs
)
1160 def SetDefaultStyleToCursorStyle(*args
, **kwargs
):
1161 """SetDefaultStyleToCursorStyle(self) -> bool"""
1162 return _richtext
.RichTextCtrl_SetDefaultStyleToCursorStyle(*args
, **kwargs
)
1164 def SelectNone(*args
, **kwargs
):
1165 """SelectNone(self)"""
1166 return _richtext
.RichTextCtrl_SelectNone(*args
, **kwargs
)
1168 def SelectWord(*args
, **kwargs
):
1169 """SelectWord(self, long position) -> bool"""
1170 return _richtext
.RichTextCtrl_SelectWord(*args
, **kwargs
)
1172 def GetSelectionRange(*args
, **kwargs
):
1173 """GetSelectionRange(self) -> RichTextRange"""
1174 return _richtext
.RichTextCtrl_GetSelectionRange(*args
, **kwargs
)
1176 def SetSelectionRange(*args
, **kwargs
):
1177 """SetSelectionRange(self, RichTextRange range)"""
1178 return _richtext
.RichTextCtrl_SetSelectionRange(*args
, **kwargs
)
1180 def GetInternalSelectionRange(*args
, **kwargs
):
1181 """GetInternalSelectionRange(self) -> RichTextRange"""
1182 return _richtext
.RichTextCtrl_GetInternalSelectionRange(*args
, **kwargs
)
1184 def SetInternalSelectionRange(*args
, **kwargs
):
1185 """SetInternalSelectionRange(self, RichTextRange range)"""
1186 return _richtext
.RichTextCtrl_SetInternalSelectionRange(*args
, **kwargs
)
1188 def AddParagraph(*args
, **kwargs
):
1189 """AddParagraph(self, String text) -> RichTextRange"""
1190 return _richtext
.RichTextCtrl_AddParagraph(*args
, **kwargs
)
1192 def AddImage(*args
, **kwargs
):
1193 """AddImage(self, Image image) -> RichTextRange"""
1194 return _richtext
.RichTextCtrl_AddImage(*args
, **kwargs
)
1196 def LayoutContent(*args
, **kwargs
):
1197 """LayoutContent(self, bool onlyVisibleRect=False) -> bool"""
1198 return _richtext
.RichTextCtrl_LayoutContent(*args
, **kwargs
)
1200 def MoveCaret(*args
, **kwargs
):
1201 """MoveCaret(self, long pos, bool showAtLineStart=False) -> bool"""
1202 return _richtext
.RichTextCtrl_MoveCaret(*args
, **kwargs
)
1204 def MoveRight(*args
, **kwargs
):
1205 """MoveRight(self, int noPositions=1, int flags=0) -> bool"""
1206 return _richtext
.RichTextCtrl_MoveRight(*args
, **kwargs
)
1208 def MoveLeft(*args
, **kwargs
):
1209 """MoveLeft(self, int noPositions=1, int flags=0) -> bool"""
1210 return _richtext
.RichTextCtrl_MoveLeft(*args
, **kwargs
)
1212 def MoveUp(*args
, **kwargs
):
1213 """MoveUp(self, int noLines=1, int flags=0) -> bool"""
1214 return _richtext
.RichTextCtrl_MoveUp(*args
, **kwargs
)
1216 def MoveDown(*args
, **kwargs
):
1217 """MoveDown(self, int noLines=1, int flags=0) -> bool"""
1218 return _richtext
.RichTextCtrl_MoveDown(*args
, **kwargs
)
1220 def MoveToLineEnd(*args
, **kwargs
):
1221 """MoveToLineEnd(self, int flags=0) -> bool"""
1222 return _richtext
.RichTextCtrl_MoveToLineEnd(*args
, **kwargs
)
1224 def MoveToLineStart(*args
, **kwargs
):
1225 """MoveToLineStart(self, int flags=0) -> bool"""
1226 return _richtext
.RichTextCtrl_MoveToLineStart(*args
, **kwargs
)
1228 def MoveToParagraphEnd(*args
, **kwargs
):
1229 """MoveToParagraphEnd(self, int flags=0) -> bool"""
1230 return _richtext
.RichTextCtrl_MoveToParagraphEnd(*args
, **kwargs
)
1232 def MoveToParagraphStart(*args
, **kwargs
):
1233 """MoveToParagraphStart(self, int flags=0) -> bool"""
1234 return _richtext
.RichTextCtrl_MoveToParagraphStart(*args
, **kwargs
)
1236 def MoveHome(*args
, **kwargs
):
1237 """MoveHome(self, int flags=0) -> bool"""
1238 return _richtext
.RichTextCtrl_MoveHome(*args
, **kwargs
)
1240 def MoveEnd(*args
, **kwargs
):
1241 """MoveEnd(self, int flags=0) -> bool"""
1242 return _richtext
.RichTextCtrl_MoveEnd(*args
, **kwargs
)
1244 def PageUp(*args
, **kwargs
):
1245 """PageUp(self, int noPages=1, int flags=0) -> bool"""
1246 return _richtext
.RichTextCtrl_PageUp(*args
, **kwargs
)
1248 def PageDown(*args
, **kwargs
):
1249 """PageDown(self, int noPages=1, int flags=0) -> bool"""
1250 return _richtext
.RichTextCtrl_PageDown(*args
, **kwargs
)
1252 def WordLeft(*args
, **kwargs
):
1253 """WordLeft(self, int noPages=1, int flags=0) -> bool"""
1254 return _richtext
.RichTextCtrl_WordLeft(*args
, **kwargs
)
1256 def WordRight(*args
, **kwargs
):
1257 """WordRight(self, int noPages=1, int flags=0) -> bool"""
1258 return _richtext
.RichTextCtrl_WordRight(*args
, **kwargs
)
1260 def GetBuffer(*args
, **kwargs
):
1261 """GetBuffer(self) -> wxRichTextBuffer"""
1262 return _richtext
.RichTextCtrl_GetBuffer(*args
, **kwargs
)
1264 def BeginBatchUndo(*args
, **kwargs
):
1265 """BeginBatchUndo(self, String cmdName) -> bool"""
1266 return _richtext
.RichTextCtrl_BeginBatchUndo(*args
, **kwargs
)
1268 def EndBatchUndo(*args
, **kwargs
):
1269 """EndBatchUndo(self) -> bool"""
1270 return _richtext
.RichTextCtrl_EndBatchUndo(*args
, **kwargs
)
1272 def BatchingUndo(*args
, **kwargs
):
1273 """BatchingUndo(self) -> bool"""
1274 return _richtext
.RichTextCtrl_BatchingUndo(*args
, **kwargs
)
1276 def BeginSuppressUndo(*args
, **kwargs
):
1277 """BeginSuppressUndo(self) -> bool"""
1278 return _richtext
.RichTextCtrl_BeginSuppressUndo(*args
, **kwargs
)
1280 def EndSuppressUndo(*args
, **kwargs
):
1281 """EndSuppressUndo(self) -> bool"""
1282 return _richtext
.RichTextCtrl_EndSuppressUndo(*args
, **kwargs
)
1284 def SuppressingUndo(*args
, **kwargs
):
1285 """SuppressingUndo(self) -> bool"""
1286 return _richtext
.RichTextCtrl_SuppressingUndo(*args
, **kwargs
)
1288 def HasCharacterAttributes(*args
, **kwargs
):
1289 """HasCharacterAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
1290 return _richtext
.RichTextCtrl_HasCharacterAttributes(*args
, **kwargs
)
1292 def HasParagraphAttributes(*args
, **kwargs
):
1293 """HasParagraphAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
1294 return _richtext
.RichTextCtrl_HasParagraphAttributes(*args
, **kwargs
)
1296 def IsSelectionBold(*args
, **kwargs
):
1297 """IsSelectionBold(self) -> bool"""
1298 return _richtext
.RichTextCtrl_IsSelectionBold(*args
, **kwargs
)
1300 def IsSelectionItalics(*args
, **kwargs
):
1301 """IsSelectionItalics(self) -> bool"""
1302 return _richtext
.RichTextCtrl_IsSelectionItalics(*args
, **kwargs
)
1304 def IsSelectionUnderlined(*args
, **kwargs
):
1305 """IsSelectionUnderlined(self) -> bool"""
1306 return _richtext
.RichTextCtrl_IsSelectionUnderlined(*args
, **kwargs
)
1308 def IsSelectionAligned(*args
, **kwargs
):
1309 """IsSelectionAligned(self, int alignment) -> bool"""
1310 return _richtext
.RichTextCtrl_IsSelectionAligned(*args
, **kwargs
)
1312 def ApplyBoldToSelection(*args
, **kwargs
):
1313 """ApplyBoldToSelection(self) -> bool"""
1314 return _richtext
.RichTextCtrl_ApplyBoldToSelection(*args
, **kwargs
)
1316 def ApplyItalicToSelection(*args
, **kwargs
):
1317 """ApplyItalicToSelection(self) -> bool"""
1318 return _richtext
.RichTextCtrl_ApplyItalicToSelection(*args
, **kwargs
)
1320 def ApplyUnderlineToSelection(*args
, **kwargs
):
1321 """ApplyUnderlineToSelection(self) -> bool"""
1322 return _richtext
.RichTextCtrl_ApplyUnderlineToSelection(*args
, **kwargs
)
1324 def ApplyAlignmentToSelection(*args
, **kwargs
):
1325 """ApplyAlignmentToSelection(self, int alignment) -> bool"""
1326 return _richtext
.RichTextCtrl_ApplyAlignmentToSelection(*args
, **kwargs
)
1328 def SetStyleSheet(*args
, **kwargs
):
1329 """SetStyleSheet(self, wxRichTextStyleSheet styleSheet)"""
1330 return _richtext
.RichTextCtrl_SetStyleSheet(*args
, **kwargs
)
1332 def GetStyleSheet(*args
, **kwargs
):
1333 """GetStyleSheet(self) -> wxRichTextStyleSheet"""
1334 return _richtext
.RichTextCtrl_GetStyleSheet(*args
, **kwargs
)
1336 def ApplyStyleSheet(*args
, **kwargs
):
1337 """ApplyStyleSheet(self, wxRichTextStyleSheet styleSheet=None) -> bool"""
1338 return _richtext
.RichTextCtrl_ApplyStyleSheet(*args
, **kwargs
)
1340 Buffer
= property(GetBuffer
,doc
="See `GetBuffer`")
1341 DefaultStyle
= property(GetDefaultStyle
,SetDefaultStyle
,doc
="See `GetDefaultStyle` and `SetDefaultStyle`")
1342 DelayedLayoutThreshold
= property(GetDelayedLayoutThreshold
,SetDelayedLayoutThreshold
,doc
="See `GetDelayedLayoutThreshold` and `SetDelayedLayoutThreshold`")
1343 Filename
= property(GetFilename
,SetFilename
,doc
="See `GetFilename` and `SetFilename`")
1344 InsertionPoint
= property(GetInsertionPoint
,SetInsertionPoint
,doc
="See `GetInsertionPoint` and `SetInsertionPoint`")
1345 InternalSelectionRange
= property(GetInternalSelectionRange
,SetInternalSelectionRange
,doc
="See `GetInternalSelectionRange` and `SetInternalSelectionRange`")
1346 LastPosition
= property(GetLastPosition
,doc
="See `GetLastPosition`")
1347 NumberOfLines
= property(GetNumberOfLines
,doc
="See `GetNumberOfLines`")
1348 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
1349 SelectionRange
= property(GetSelectionRange
,SetSelectionRange
,doc
="See `GetSelectionRange` and `SetSelectionRange`")
1350 StringSelection
= property(GetStringSelection
,doc
="See `GetStringSelection`")
1351 StyleSheet
= property(GetStyleSheet
,SetStyleSheet
,doc
="See `GetStyleSheet` and `SetStyleSheet`")
1352 Value
= property(GetValue
,SetValue
,doc
="See `GetValue` and `SetValue`")
1353 _richtext
.RichTextCtrl_swigregister(RichTextCtrl
)
1355 def PreRichTextCtrl(*args
, **kwargs
):
1356 """PreRichTextCtrl() -> RichTextCtrl"""
1357 val
= _richtext
.new_PreRichTextCtrl(*args
, **kwargs
)
1360 wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
= _richtext
.wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
1361 wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
= _richtext
.wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
1362 wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
1363 wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
1364 wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
1365 wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
1366 wxEVT_COMMAND_RICHTEXT_RETURN
= _richtext
.wxEVT_COMMAND_RICHTEXT_RETURN
1367 EVT_RICHTEXT_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
, 1)
1368 EVT_RICHTEXT_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
, 1)
1369 EVT_RICHTEXT_LEFT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
, 1)
1370 EVT_RICHTEXT_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
, 1)
1371 EVT_RICHTEXT_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
, 1)
1372 EVT_RICHTEXT_LEFT_DCLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
, 1)
1373 EVT_RICHTEXT_RETURN
= wx
.PyEventBinder( wxEVT_COMMAND_RICHTEXT_RETURN
, 1)
1375 class RichTextEvent(_core
.NotifyEvent
):
1376 """Proxy of C++ RichTextEvent class"""
1377 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1378 __repr__
= _swig_repr
1379 def __init__(self
, *args
, **kwargs
):
1380 """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> RichTextEvent"""
1381 _richtext
.RichTextEvent_swiginit(self
,_richtext
.new_RichTextEvent(*args
, **kwargs
))
1382 def GetIndex(*args
, **kwargs
):
1383 """GetIndex(self) -> int"""
1384 return _richtext
.RichTextEvent_GetIndex(*args
, **kwargs
)
1386 def SetIndex(*args
, **kwargs
):
1387 """SetIndex(self, int n)"""
1388 return _richtext
.RichTextEvent_SetIndex(*args
, **kwargs
)
1390 def GetFlags(*args
, **kwargs
):
1391 """GetFlags(self) -> int"""
1392 return _richtext
.RichTextEvent_GetFlags(*args
, **kwargs
)
1394 def SetFlags(*args
, **kwargs
):
1395 """SetFlags(self, int flags)"""
1396 return _richtext
.RichTextEvent_SetFlags(*args
, **kwargs
)
1398 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
1399 Index
= property(GetIndex
,SetIndex
,doc
="See `GetIndex` and `SetIndex`")
1400 _richtext
.RichTextEvent_swigregister(RichTextEvent
)