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
59 __docfilter__
= wx
.__DocFilter
(globals())
60 RE_READONLY
= _richtext
.RE_READONLY
61 RE_MULTILINE
= _richtext
.RE_MULTILINE
62 RICHTEXT_SHIFT_DOWN
= _richtext
.RICHTEXT_SHIFT_DOWN
63 RICHTEXT_CTRL_DOWN
= _richtext
.RICHTEXT_CTRL_DOWN
64 RICHTEXT_ALT_DOWN
= _richtext
.RICHTEXT_ALT_DOWN
65 RICHTEXT_SELECTED
= _richtext
.RICHTEXT_SELECTED
66 RICHTEXT_TAGGED
= _richtext
.RICHTEXT_TAGGED
67 RICHTEXT_FOCUSSED
= _richtext
.RICHTEXT_FOCUSSED
68 RICHTEXT_IS_FOCUS
= _richtext
.RICHTEXT_IS_FOCUS
69 RICHTEXT_TYPE_ANY
= _richtext
.RICHTEXT_TYPE_ANY
70 RICHTEXT_TYPE_TEXT
= _richtext
.RICHTEXT_TYPE_TEXT
71 RICHTEXT_TYPE_XML
= _richtext
.RICHTEXT_TYPE_XML
72 RICHTEXT_TYPE_HTML
= _richtext
.RICHTEXT_TYPE_HTML
73 RICHTEXT_TYPE_RTF
= _richtext
.RICHTEXT_TYPE_RTF
74 RICHTEXT_TYPE_PDF
= _richtext
.RICHTEXT_TYPE_PDF
75 RICHTEXT_FIXED_WIDTH
= _richtext
.RICHTEXT_FIXED_WIDTH
76 RICHTEXT_FIXED_HEIGHT
= _richtext
.RICHTEXT_FIXED_HEIGHT
77 RICHTEXT_VARIABLE_WIDTH
= _richtext
.RICHTEXT_VARIABLE_WIDTH
78 RICHTEXT_VARIABLE_HEIGHT
= _richtext
.RICHTEXT_VARIABLE_HEIGHT
79 RICHTEXT_HITTEST_NONE
= _richtext
.RICHTEXT_HITTEST_NONE
80 RICHTEXT_HITTEST_BEFORE
= _richtext
.RICHTEXT_HITTEST_BEFORE
81 RICHTEXT_HITTEST_AFTER
= _richtext
.RICHTEXT_HITTEST_AFTER
82 RICHTEXT_HITTEST_ON
= _richtext
.RICHTEXT_HITTEST_ON
83 RICHTEXT_FORMATTED
= _richtext
.RICHTEXT_FORMATTED
84 RICHTEXT_UNFORMATTED
= _richtext
.RICHTEXT_UNFORMATTED
85 TEXT_ATTR_TEXT_COLOUR
= _richtext
.TEXT_ATTR_TEXT_COLOUR
86 TEXT_ATTR_BACKGROUND_COLOUR
= _richtext
.TEXT_ATTR_BACKGROUND_COLOUR
87 TEXT_ATTR_FONT_FACE
= _richtext
.TEXT_ATTR_FONT_FACE
88 TEXT_ATTR_FONT_SIZE
= _richtext
.TEXT_ATTR_FONT_SIZE
89 TEXT_ATTR_FONT_WEIGHT
= _richtext
.TEXT_ATTR_FONT_WEIGHT
90 TEXT_ATTR_FONT_ITALIC
= _richtext
.TEXT_ATTR_FONT_ITALIC
91 TEXT_ATTR_FONT_UNDERLINE
= _richtext
.TEXT_ATTR_FONT_UNDERLINE
92 TEXT_ATTR_FONT
= _richtext
.TEXT_ATTR_FONT
93 TEXT_ATTR_ALIGNMENT
= _richtext
.TEXT_ATTR_ALIGNMENT
94 TEXT_ATTR_LEFT_INDENT
= _richtext
.TEXT_ATTR_LEFT_INDENT
95 TEXT_ATTR_RIGHT_INDENT
= _richtext
.TEXT_ATTR_RIGHT_INDENT
96 TEXT_ATTR_TABS
= _richtext
.TEXT_ATTR_TABS
97 TEXT_ATTR_PARA_SPACING_AFTER
= _richtext
.TEXT_ATTR_PARA_SPACING_AFTER
98 TEXT_ATTR_PARA_SPACING_BEFORE
= _richtext
.TEXT_ATTR_PARA_SPACING_BEFORE
99 TEXT_ATTR_LINE_SPACING
= _richtext
.TEXT_ATTR_LINE_SPACING
100 TEXT_ATTR_CHARACTER_STYLE_NAME
= _richtext
.TEXT_ATTR_CHARACTER_STYLE_NAME
101 TEXT_ATTR_PARAGRAPH_STYLE_NAME
= _richtext
.TEXT_ATTR_PARAGRAPH_STYLE_NAME
102 TEXT_ATTR_BULLET_STYLE
= _richtext
.TEXT_ATTR_BULLET_STYLE
103 TEXT_ATTR_BULLET_NUMBER
= _richtext
.TEXT_ATTR_BULLET_NUMBER
104 TEXT_ATTR_BULLET_SYMBOL
= _richtext
.TEXT_ATTR_BULLET_SYMBOL
105 TEXT_ATTR_BULLET_STYLE_NONE
= _richtext
.TEXT_ATTR_BULLET_STYLE_NONE
106 TEXT_ATTR_BULLET_STYLE_ARABIC
= _richtext
.TEXT_ATTR_BULLET_STYLE_ARABIC
107 TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
= _richtext
.TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
108 TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
= _richtext
.TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
109 TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
= _richtext
.TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
110 TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
= _richtext
.TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
111 TEXT_ATTR_BULLET_STYLE_SYMBOL
= _richtext
.TEXT_ATTR_BULLET_STYLE_SYMBOL
112 TEXT_ATTR_BULLET_STYLE_BITMAP
= _richtext
.TEXT_ATTR_BULLET_STYLE_BITMAP
113 TEXT_ATTR_BULLET_STYLE_PARENTHESES
= _richtext
.TEXT_ATTR_BULLET_STYLE_PARENTHESES
114 TEXT_ATTR_BULLET_STYLE_PERIOD
= _richtext
.TEXT_ATTR_BULLET_STYLE_PERIOD
115 TEXT_ATTR_LINE_SPACING_NORMAL
= _richtext
.TEXT_ATTR_LINE_SPACING_NORMAL
116 TEXT_ATTR_LINE_SPACING_HALF
= _richtext
.TEXT_ATTR_LINE_SPACING_HALF
117 TEXT_ATTR_LINE_SPACING_TWICE
= _richtext
.TEXT_ATTR_LINE_SPACING_TWICE
118 TEXT_ALIGNMENT_DEFAULT
= _richtext
.TEXT_ALIGNMENT_DEFAULT
119 TEXT_ALIGNMENT_LEFT
= _richtext
.TEXT_ALIGNMENT_LEFT
120 TEXT_ALIGNMENT_CENTRE
= _richtext
.TEXT_ALIGNMENT_CENTRE
121 TEXT_ALIGNMENT_CENTER
= _richtext
.TEXT_ALIGNMENT_CENTER
122 TEXT_ALIGNMENT_RIGHT
= _richtext
.TEXT_ALIGNMENT_RIGHT
123 TEXT_ALIGNMENT_JUSTIFIED
= _richtext
.TEXT_ALIGNMENT_JUSTIFIED
124 class RichTextRange(object):
126 RichTextRange is a data structure that represents a range of text
127 within a `RichTextCtrl`. It simply contains integer ``start`` and
128 ``end`` properties and a few operations useful for dealing with
129 ranges. In most places in wxPython where a RichTextRange is expected a
130 2-tuple containing (start, end) can be used instead.
132 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
133 __repr__
= _swig_repr
134 def __init__(self
, *args
, **kwargs
):
136 __init__(self, long start=0, long end=0) -> RichTextRange
138 Creates a new range object.
140 _richtext
.RichTextRange_swiginit(self
,_richtext
.new_RichTextRange(*args
, **kwargs
))
141 __swig_destroy__
= _richtext
.delete_RichTextRange
142 __del__
= lambda self
: None;
143 def __eq__(*args
, **kwargs
):
145 __eq__(self, PyObject other) -> bool
147 Test for equality of RichTextRange objects.
149 return _richtext
.RichTextRange___eq__(*args
, **kwargs
)
151 def __sub__(*args
, **kwargs
):
152 """__sub__(self, RichTextRange range) -> RichTextRange"""
153 return _richtext
.RichTextRange___sub__(*args
, **kwargs
)
155 def __add__(*args
, **kwargs
):
156 """__add__(self, RichTextRange range) -> RichTextRange"""
157 return _richtext
.RichTextRange___add__(*args
, **kwargs
)
159 def SetRange(*args
, **kwargs
):
160 """SetRange(self, long start, long end)"""
161 return _richtext
.RichTextRange_SetRange(*args
, **kwargs
)
163 def SetStart(*args
, **kwargs
):
164 """SetStart(self, long start)"""
165 return _richtext
.RichTextRange_SetStart(*args
, **kwargs
)
167 def GetStart(*args
, **kwargs
):
168 """GetStart(self) -> long"""
169 return _richtext
.RichTextRange_GetStart(*args
, **kwargs
)
171 start
= property(GetStart
, SetStart
)
172 def SetEnd(*args
, **kwargs
):
173 """SetEnd(self, long end)"""
174 return _richtext
.RichTextRange_SetEnd(*args
, **kwargs
)
176 def GetEnd(*args
, **kwargs
):
177 """GetEnd(self) -> long"""
178 return _richtext
.RichTextRange_GetEnd(*args
, **kwargs
)
180 end
= property(GetEnd
, SetEnd
)
181 def IsOutside(*args
, **kwargs
):
183 IsOutside(self, RichTextRange range) -> bool
185 Returns true if this range is completely outside 'range'
187 return _richtext
.RichTextRange_IsOutside(*args
, **kwargs
)
189 def IsWithin(*args
, **kwargs
):
191 IsWithin(self, RichTextRange range) -> bool
193 Returns true if this range is completely within 'range'
195 return _richtext
.RichTextRange_IsWithin(*args
, **kwargs
)
197 def Contains(*args
, **kwargs
):
199 Contains(self, long pos) -> bool
201 Returns true if the given position is within this range. Allow for the
202 possibility of an empty range - assume the position is within this
205 return _richtext
.RichTextRange_Contains(*args
, **kwargs
)
207 def LimitTo(*args
, **kwargs
):
209 LimitTo(self, RichTextRange range) -> bool
211 Limit this range to be within 'range'
213 return _richtext
.RichTextRange_LimitTo(*args
, **kwargs
)
215 def GetLength(*args
, **kwargs
):
217 GetLength(self) -> long
219 Gets the length of the range
221 return _richtext
.RichTextRange_GetLength(*args
, **kwargs
)
223 def Swap(*args
, **kwargs
):
227 Swaps the start and end
229 return _richtext
.RichTextRange_Swap(*args
, **kwargs
)
231 def Get(*args
, **kwargs
):
235 Returns the start and end properties as a tuple.
237 return _richtext
.RichTextRange_Get(*args
, **kwargs
)
239 def __str__(self
): return str(self
.Get())
240 def __repr__(self
): return 'RichTextRange'+str(self
.Get())
241 def __len__(self
): return len(self
.Get())
242 def __getitem__(self
, index
): return self
.Get()[index
]
243 def __setitem__(self
, index
, val
):
244 if index
== 0: self
.start
= val
245 elif index
== 1: self
.end
= val
246 else: raise IndexError
247 def __nonzero__(self
): return self
.Get() != (0,0)
248 __safe_for_unpickling__
= True
249 def __reduce__(self
): return (RichTextRange
, self
.Get())
251 _richtext
.RichTextRange_swigregister(RichTextRange
)
253 class RichTextAttr(object):
255 The RichTextAttr class stored information about the various attributes
256 for a block of text, including font, colour, indents, alignments, and
259 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
260 __repr__
= _swig_repr
261 def __init__(self
, *args
, **kwargs
):
263 __init__(self, Colour colText=NullColour, Colour colBack=NullColour,
264 int alignment=TEXT_ALIGNMENT_DEFAULT) -> RichTextAttr
266 The RichTextAttr class stored information about the various attributes
267 for a block of text, including font, colour, indents, alignments, and
270 _richtext
.RichTextAttr_swiginit(self
,_richtext
.new_RichTextAttr(*args
, **kwargs
))
271 __swig_destroy__
= _richtext
.delete_RichTextAttr
272 __del__
= lambda self
: None;
273 def CreateFont(*args
, **kwargs
):
274 """CreateFont(self) -> Font"""
275 return _richtext
.RichTextAttr_CreateFont(*args
, **kwargs
)
277 def GetFontAttributes(*args
, **kwargs
):
278 """GetFontAttributes(self, Font font) -> bool"""
279 return _richtext
.RichTextAttr_GetFontAttributes(*args
, **kwargs
)
282 return self
.CreateFont()
283 def SetFont(self
, font
):
284 return self
.GetFontAttributes(font
)
286 def SetTextColour(*args
, **kwargs
):
287 """SetTextColour(self, Colour colText)"""
288 return _richtext
.RichTextAttr_SetTextColour(*args
, **kwargs
)
290 def SetBackgroundColour(*args
, **kwargs
):
291 """SetBackgroundColour(self, Colour colBack)"""
292 return _richtext
.RichTextAttr_SetBackgroundColour(*args
, **kwargs
)
294 def SetAlignment(*args
, **kwargs
):
295 """SetAlignment(self, int alignment)"""
296 return _richtext
.RichTextAttr_SetAlignment(*args
, **kwargs
)
298 def SetTabs(*args
, **kwargs
):
299 """SetTabs(self, wxArrayInt tabs)"""
300 return _richtext
.RichTextAttr_SetTabs(*args
, **kwargs
)
302 def SetLeftIndent(*args
, **kwargs
):
303 """SetLeftIndent(self, int indent, int subIndent=0)"""
304 return _richtext
.RichTextAttr_SetLeftIndent(*args
, **kwargs
)
306 def SetRightIndent(*args
, **kwargs
):
307 """SetRightIndent(self, int indent)"""
308 return _richtext
.RichTextAttr_SetRightIndent(*args
, **kwargs
)
310 def SetFontSize(*args
, **kwargs
):
311 """SetFontSize(self, int pointSize)"""
312 return _richtext
.RichTextAttr_SetFontSize(*args
, **kwargs
)
314 def SetFontStyle(*args
, **kwargs
):
315 """SetFontStyle(self, int fontStyle)"""
316 return _richtext
.RichTextAttr_SetFontStyle(*args
, **kwargs
)
318 def SetFontWeight(*args
, **kwargs
):
319 """SetFontWeight(self, int fontWeight)"""
320 return _richtext
.RichTextAttr_SetFontWeight(*args
, **kwargs
)
322 def SetFontFaceName(*args
, **kwargs
):
323 """SetFontFaceName(self, String faceName)"""
324 return _richtext
.RichTextAttr_SetFontFaceName(*args
, **kwargs
)
326 def SetFontUnderlined(*args
, **kwargs
):
327 """SetFontUnderlined(self, bool underlined)"""
328 return _richtext
.RichTextAttr_SetFontUnderlined(*args
, **kwargs
)
330 def SetFlags(*args
, **kwargs
):
331 """SetFlags(self, long flags)"""
332 return _richtext
.RichTextAttr_SetFlags(*args
, **kwargs
)
334 def SetCharacterStyleName(*args
, **kwargs
):
335 """SetCharacterStyleName(self, String name)"""
336 return _richtext
.RichTextAttr_SetCharacterStyleName(*args
, **kwargs
)
338 def SetParagraphStyleName(*args
, **kwargs
):
339 """SetParagraphStyleName(self, String name)"""
340 return _richtext
.RichTextAttr_SetParagraphStyleName(*args
, **kwargs
)
342 def SetParagraphSpacingAfter(*args
, **kwargs
):
343 """SetParagraphSpacingAfter(self, int spacing)"""
344 return _richtext
.RichTextAttr_SetParagraphSpacingAfter(*args
, **kwargs
)
346 def SetParagraphSpacingBefore(*args
, **kwargs
):
347 """SetParagraphSpacingBefore(self, int spacing)"""
348 return _richtext
.RichTextAttr_SetParagraphSpacingBefore(*args
, **kwargs
)
350 def SetLineSpacing(*args
, **kwargs
):
351 """SetLineSpacing(self, int spacing)"""
352 return _richtext
.RichTextAttr_SetLineSpacing(*args
, **kwargs
)
354 def SetBulletStyle(*args
, **kwargs
):
355 """SetBulletStyle(self, int style)"""
356 return _richtext
.RichTextAttr_SetBulletStyle(*args
, **kwargs
)
358 def SetBulletNumber(*args
, **kwargs
):
359 """SetBulletNumber(self, int n)"""
360 return _richtext
.RichTextAttr_SetBulletNumber(*args
, **kwargs
)
362 def SetBulletSymbol(*args
, **kwargs
):
363 """SetBulletSymbol(self, wxChar symbol)"""
364 return _richtext
.RichTextAttr_SetBulletSymbol(*args
, **kwargs
)
366 def GetTextColour(*args
, **kwargs
):
367 """GetTextColour(self) -> Colour"""
368 return _richtext
.RichTextAttr_GetTextColour(*args
, **kwargs
)
370 def GetBackgroundColour(*args
, **kwargs
):
371 """GetBackgroundColour(self) -> Colour"""
372 return _richtext
.RichTextAttr_GetBackgroundColour(*args
, **kwargs
)
374 def GetAlignment(*args
, **kwargs
):
375 """GetAlignment(self) -> int"""
376 return _richtext
.RichTextAttr_GetAlignment(*args
, **kwargs
)
378 def GetTabs(*args
, **kwargs
):
379 """GetTabs(self) -> wxArrayInt"""
380 return _richtext
.RichTextAttr_GetTabs(*args
, **kwargs
)
382 def GetLeftIndent(*args
, **kwargs
):
383 """GetLeftIndent(self) -> long"""
384 return _richtext
.RichTextAttr_GetLeftIndent(*args
, **kwargs
)
386 def GetLeftSubIndent(*args
, **kwargs
):
387 """GetLeftSubIndent(self) -> long"""
388 return _richtext
.RichTextAttr_GetLeftSubIndent(*args
, **kwargs
)
390 def GetRightIndent(*args
, **kwargs
):
391 """GetRightIndent(self) -> long"""
392 return _richtext
.RichTextAttr_GetRightIndent(*args
, **kwargs
)
394 def GetFlags(*args
, **kwargs
):
395 """GetFlags(self) -> long"""
396 return _richtext
.RichTextAttr_GetFlags(*args
, **kwargs
)
398 def GetFontSize(*args
, **kwargs
):
399 """GetFontSize(self) -> int"""
400 return _richtext
.RichTextAttr_GetFontSize(*args
, **kwargs
)
402 def GetFontStyle(*args
, **kwargs
):
403 """GetFontStyle(self) -> int"""
404 return _richtext
.RichTextAttr_GetFontStyle(*args
, **kwargs
)
406 def GetFontWeight(*args
, **kwargs
):
407 """GetFontWeight(self) -> int"""
408 return _richtext
.RichTextAttr_GetFontWeight(*args
, **kwargs
)
410 def GetFontUnderlined(*args
, **kwargs
):
411 """GetFontUnderlined(self) -> bool"""
412 return _richtext
.RichTextAttr_GetFontUnderlined(*args
, **kwargs
)
414 def GetFontFaceName(*args
, **kwargs
):
415 """GetFontFaceName(self) -> String"""
416 return _richtext
.RichTextAttr_GetFontFaceName(*args
, **kwargs
)
418 def GetCharacterStyleName(*args
, **kwargs
):
419 """GetCharacterStyleName(self) -> String"""
420 return _richtext
.RichTextAttr_GetCharacterStyleName(*args
, **kwargs
)
422 def GetParagraphStyleName(*args
, **kwargs
):
423 """GetParagraphStyleName(self) -> String"""
424 return _richtext
.RichTextAttr_GetParagraphStyleName(*args
, **kwargs
)
426 def GetParagraphSpacingAfter(*args
, **kwargs
):
427 """GetParagraphSpacingAfter(self) -> int"""
428 return _richtext
.RichTextAttr_GetParagraphSpacingAfter(*args
, **kwargs
)
430 def GetParagraphSpacingBefore(*args
, **kwargs
):
431 """GetParagraphSpacingBefore(self) -> int"""
432 return _richtext
.RichTextAttr_GetParagraphSpacingBefore(*args
, **kwargs
)
434 def GetLineSpacing(*args
, **kwargs
):
435 """GetLineSpacing(self) -> int"""
436 return _richtext
.RichTextAttr_GetLineSpacing(*args
, **kwargs
)
438 def GetBulletStyle(*args
, **kwargs
):
439 """GetBulletStyle(self) -> int"""
440 return _richtext
.RichTextAttr_GetBulletStyle(*args
, **kwargs
)
442 def GetBulletNumber(*args
, **kwargs
):
443 """GetBulletNumber(self) -> int"""
444 return _richtext
.RichTextAttr_GetBulletNumber(*args
, **kwargs
)
446 def GetBulletSymbol(*args
, **kwargs
):
447 """GetBulletSymbol(self) -> wxChar"""
448 return _richtext
.RichTextAttr_GetBulletSymbol(*args
, **kwargs
)
450 def HasTextColour(*args
, **kwargs
):
451 """HasTextColour(self) -> bool"""
452 return _richtext
.RichTextAttr_HasTextColour(*args
, **kwargs
)
454 def HasBackgroundColour(*args
, **kwargs
):
455 """HasBackgroundColour(self) -> bool"""
456 return _richtext
.RichTextAttr_HasBackgroundColour(*args
, **kwargs
)
458 def HasAlignment(*args
, **kwargs
):
459 """HasAlignment(self) -> bool"""
460 return _richtext
.RichTextAttr_HasAlignment(*args
, **kwargs
)
462 def HasTabs(*args
, **kwargs
):
463 """HasTabs(self) -> bool"""
464 return _richtext
.RichTextAttr_HasTabs(*args
, **kwargs
)
466 def HasLeftIndent(*args
, **kwargs
):
467 """HasLeftIndent(self) -> bool"""
468 return _richtext
.RichTextAttr_HasLeftIndent(*args
, **kwargs
)
470 def HasRightIndent(*args
, **kwargs
):
471 """HasRightIndent(self) -> bool"""
472 return _richtext
.RichTextAttr_HasRightIndent(*args
, **kwargs
)
474 def HasWeight(*args
, **kwargs
):
475 """HasWeight(self) -> bool"""
476 return _richtext
.RichTextAttr_HasWeight(*args
, **kwargs
)
478 def HasSize(*args
, **kwargs
):
479 """HasSize(self) -> bool"""
480 return _richtext
.RichTextAttr_HasSize(*args
, **kwargs
)
482 def HasItalic(*args
, **kwargs
):
483 """HasItalic(self) -> bool"""
484 return _richtext
.RichTextAttr_HasItalic(*args
, **kwargs
)
486 def HasUnderlined(*args
, **kwargs
):
487 """HasUnderlined(self) -> bool"""
488 return _richtext
.RichTextAttr_HasUnderlined(*args
, **kwargs
)
490 def HasFaceName(*args
, **kwargs
):
491 """HasFaceName(self) -> bool"""
492 return _richtext
.RichTextAttr_HasFaceName(*args
, **kwargs
)
494 def HasFont(*args
, **kwargs
):
495 """HasFont(self) -> bool"""
496 return _richtext
.RichTextAttr_HasFont(*args
, **kwargs
)
498 def HasParagraphSpacingAfter(*args
, **kwargs
):
499 """HasParagraphSpacingAfter(self) -> bool"""
500 return _richtext
.RichTextAttr_HasParagraphSpacingAfter(*args
, **kwargs
)
502 def HasParagraphSpacingBefore(*args
, **kwargs
):
503 """HasParagraphSpacingBefore(self) -> bool"""
504 return _richtext
.RichTextAttr_HasParagraphSpacingBefore(*args
, **kwargs
)
506 def HasLineSpacing(*args
, **kwargs
):
507 """HasLineSpacing(self) -> bool"""
508 return _richtext
.RichTextAttr_HasLineSpacing(*args
, **kwargs
)
510 def HasCharacterStyleName(*args
, **kwargs
):
511 """HasCharacterStyleName(self) -> bool"""
512 return _richtext
.RichTextAttr_HasCharacterStyleName(*args
, **kwargs
)
514 def HasParagraphStyleName(*args
, **kwargs
):
515 """HasParagraphStyleName(self) -> bool"""
516 return _richtext
.RichTextAttr_HasParagraphStyleName(*args
, **kwargs
)
518 def HasBulletStyle(*args
, **kwargs
):
519 """HasBulletStyle(self) -> bool"""
520 return _richtext
.RichTextAttr_HasBulletStyle(*args
, **kwargs
)
522 def HasBulletNumber(*args
, **kwargs
):
523 """HasBulletNumber(self) -> bool"""
524 return _richtext
.RichTextAttr_HasBulletNumber(*args
, **kwargs
)
526 def HasBulletSymbol(*args
, **kwargs
):
527 """HasBulletSymbol(self) -> bool"""
528 return _richtext
.RichTextAttr_HasBulletSymbol(*args
, **kwargs
)
530 def HasFlag(*args
, **kwargs
):
531 """HasFlag(self, long flag) -> bool"""
532 return _richtext
.RichTextAttr_HasFlag(*args
, **kwargs
)
534 def IsCharacterStyle(*args
, **kwargs
):
535 """IsCharacterStyle(self) -> bool"""
536 return _richtext
.RichTextAttr_IsCharacterStyle(*args
, **kwargs
)
538 def IsParagraphStyle(*args
, **kwargs
):
539 """IsParagraphStyle(self) -> bool"""
540 return _richtext
.RichTextAttr_IsParagraphStyle(*args
, **kwargs
)
542 def IsDefault(*args
, **kwargs
):
543 """IsDefault(self) -> bool"""
544 return _richtext
.RichTextAttr_IsDefault(*args
, **kwargs
)
546 _richtext
.RichTextAttr_swigregister(RichTextAttr
)
547 cvar
= _richtext
.cvar
548 RICHTEXT_ALL
= cvar
.RICHTEXT_ALL
549 RICHTEXT_NONE
= cvar
.RICHTEXT_NONE
551 TEXT_ATTR_CHARACTER
= _richtext
.TEXT_ATTR_CHARACTER
552 TEXT_ATTR_PARAGRAPH
= _richtext
.TEXT_ATTR_PARAGRAPH
553 TEXT_ATTR_ALL
= _richtext
.TEXT_ATTR_ALL
554 class RichTextCtrl(_windows
.ScrolledWindow
):
555 """Proxy of C++ RichTextCtrl class"""
556 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
557 __repr__
= _swig_repr
558 def __init__(self
, *args
, **kwargs
):
560 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
561 Size size=DefaultSize, long style=RE_MULTILINE) -> RichTextCtrl
563 _richtext
.RichTextCtrl_swiginit(self
,_richtext
.new_RichTextCtrl(*args
, **kwargs
))
564 self
._setOORInfo
(self
)
566 def Create(*args
, **kwargs
):
568 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
569 Size size=DefaultSize, long style=RE_MULTILINE) -> bool
571 return _richtext
.RichTextCtrl_Create(*args
, **kwargs
)
573 def GetValue(*args
, **kwargs
):
574 """GetValue(self) -> String"""
575 return _richtext
.RichTextCtrl_GetValue(*args
, **kwargs
)
577 def SetValue(*args
, **kwargs
):
578 """SetValue(self, String value)"""
579 return _richtext
.RichTextCtrl_SetValue(*args
, **kwargs
)
581 def GetRange(*args
, **kwargs
):
582 """GetRange(self, long from, long to) -> String"""
583 return _richtext
.RichTextCtrl_GetRange(*args
, **kwargs
)
585 def GetLineLength(*args
, **kwargs
):
586 """GetLineLength(self, long lineNo) -> int"""
587 return _richtext
.RichTextCtrl_GetLineLength(*args
, **kwargs
)
589 def GetLineText(*args
, **kwargs
):
590 """GetLineText(self, long lineNo) -> String"""
591 return _richtext
.RichTextCtrl_GetLineText(*args
, **kwargs
)
593 def GetNumberOfLines(*args
, **kwargs
):
594 """GetNumberOfLines(self) -> int"""
595 return _richtext
.RichTextCtrl_GetNumberOfLines(*args
, **kwargs
)
597 def IsModified(*args
, **kwargs
):
598 """IsModified(self) -> bool"""
599 return _richtext
.RichTextCtrl_IsModified(*args
, **kwargs
)
601 def IsEditable(*args
, **kwargs
):
602 """IsEditable(self) -> bool"""
603 return _richtext
.RichTextCtrl_IsEditable(*args
, **kwargs
)
605 def IsSingleLine(*args
, **kwargs
):
606 """IsSingleLine(self) -> bool"""
607 return _richtext
.RichTextCtrl_IsSingleLine(*args
, **kwargs
)
609 def IsMultiLine(*args
, **kwargs
):
610 """IsMultiLine(self) -> bool"""
611 return _richtext
.RichTextCtrl_IsMultiLine(*args
, **kwargs
)
613 def GetSelection(*args
, **kwargs
):
615 GetSelection() --> (start, end)
617 Returns the start and end positions of the current selection. If the
618 values are the same then there is no selection.
620 return _richtext
.RichTextCtrl_GetSelection(*args
, **kwargs
)
622 def GetStringSelection(*args
, **kwargs
):
623 """GetStringSelection(self) -> String"""
624 return _richtext
.RichTextCtrl_GetStringSelection(*args
, **kwargs
)
626 def GetFilename(*args
, **kwargs
):
627 """GetFilename(self) -> String"""
628 return _richtext
.RichTextCtrl_GetFilename(*args
, **kwargs
)
630 def SetFilename(*args
, **kwargs
):
631 """SetFilename(self, String filename)"""
632 return _richtext
.RichTextCtrl_SetFilename(*args
, **kwargs
)
634 def SetDelayedLayoutThreshold(*args
, **kwargs
):
636 SetDelayedLayoutThreshold(self, long threshold)
638 Set the threshold in character positions for doing layout optimization
641 return _richtext
.RichTextCtrl_SetDelayedLayoutThreshold(*args
, **kwargs
)
643 def GetDelayedLayoutThreshold(*args
, **kwargs
):
645 GetDelayedLayoutThreshold(self) -> long
647 Get the threshold in character positions for doing layout optimization
650 return _richtext
.RichTextCtrl_GetDelayedLayoutThreshold(*args
, **kwargs
)
652 def Clear(*args
, **kwargs
):
654 return _richtext
.RichTextCtrl_Clear(*args
, **kwargs
)
656 def Replace(*args
, **kwargs
):
657 """Replace(self, long from, long to, String value)"""
658 return _richtext
.RichTextCtrl_Replace(*args
, **kwargs
)
660 def Remove(*args
, **kwargs
):
661 """Remove(self, long from, long to)"""
662 return _richtext
.RichTextCtrl_Remove(*args
, **kwargs
)
664 def LoadFile(*args
, **kwargs
):
666 LoadFile(self, String file, int type=RICHTEXT_TYPE_ANY) -> bool
668 Load the contents of the document from the given filename.
670 return _richtext
.RichTextCtrl_LoadFile(*args
, **kwargs
)
672 def SaveFile(*args
, **kwargs
):
674 SaveFile(self, String file=EmptyString, int type=RICHTEXT_TYPE_ANY) -> bool
676 Save the contents of the document to the given filename, or if the
677 empty string is passed then to the filename set with `SetFileName`.
679 return _richtext
.RichTextCtrl_SaveFile(*args
, **kwargs
)
681 def MarkDirty(*args
, **kwargs
):
685 Sets the dirty flag, meaning that the contents of the control have
686 changed and need to be saved.
688 return _richtext
.RichTextCtrl_MarkDirty(*args
, **kwargs
)
690 def DiscardEdits(*args
, **kwargs
):
694 Clears the dirty flag.
697 return _richtext
.RichTextCtrl_DiscardEdits(*args
, **kwargs
)
699 def SetMaxLength(*args
, **kwargs
):
701 SetMaxLength(self, unsigned long len)
703 Set the max number of characters which may be entered in a single line
706 return _richtext
.RichTextCtrl_SetMaxLength(*args
, **kwargs
)
708 def WriteText(*args
, **kwargs
):
710 WriteText(self, String text)
712 Insert text at the current position.
714 return _richtext
.RichTextCtrl_WriteText(*args
, **kwargs
)
716 def AppendText(*args
, **kwargs
):
718 AppendText(self, String text)
720 Append text to the end of the document.
722 return _richtext
.RichTextCtrl_AppendText(*args
, **kwargs
)
724 def SetStyle(*args
, **kwargs
):
726 SetStyle(self, RichTextRange range, RichTextAttr style) -> bool
728 Set the style for the text in ``range`` to ``style``
730 return _richtext
.RichTextCtrl_SetStyle(*args
, **kwargs
)
732 def GetStyle(*args
, **kwargs
):
734 GetStyle(self, long position, RichTextAttr style) -> bool
736 Retrieve the style used at the given position. Copies the style
737 values at ``position`` into the ``style`` parameter returns ``True``
738 if successful. Returns ``False`` otherwise.
740 return _richtext
.RichTextCtrl_GetStyle(*args
, **kwargs
)
742 def SetDefaultStyle(*args
, **kwargs
):
744 SetDefaultStyle(self, RichTextAttr style) -> bool
746 Set the style used by default for the rich text document.
748 return _richtext
.RichTextCtrl_SetDefaultStyle(*args
, **kwargs
)
750 def GetDefaultStyle(*args
, **kwargs
):
752 GetDefaultStyle(self) -> RichTextAttr
754 Retrieves a copy of the default style object.
756 return _richtext
.RichTextCtrl_GetDefaultStyle(*args
, **kwargs
)
758 def XYToPosition(*args
, **kwargs
):
760 XYToPosition(self, long x, long y) -> long
762 Translate a col,row coordinants into a document position.
764 return _richtext
.RichTextCtrl_XYToPosition(*args
, **kwargs
)
766 def PositionToXY(*args
, **kwargs
):
768 PositionToXY(self, long pos) --> (x, y)
770 Retrieves the col,row for the given position within the document
772 return _richtext
.RichTextCtrl_PositionToXY(*args
, **kwargs
)
774 def ShowPosition(*args
, **kwargs
):
776 ShowPosition(self, long position)
778 Ensure that the given position in the document is visible.
780 return _richtext
.RichTextCtrl_ShowPosition(*args
, **kwargs
)
782 def HitTest(*args
, **kwargs
):
784 HitTest(self, Point pt) --> (result, pos)
786 Returns the character position at the given point in pixels. Note
787 that ``pt`` should be given in device coordinates, and not be adjusted
788 for the client area origin nor for scrolling. The return value is a
789 tuple of the hit test result and the position.
791 return _richtext
.RichTextCtrl_HitTest(*args
, **kwargs
)
793 def HitTestXY(*args
, **kwargs
):
795 HitTestRC(self, Point pt) --> (result, col, row)
797 Returns the column and row of the given point in pixels. Note that
798 ``pt`` should be given in device coordinates, and not be adjusted for
799 the client area origin nor for scrolling. The return value is a tuple
800 of the hit test result and the column and row values.
802 return _richtext
.RichTextCtrl_HitTestXY(*args
, **kwargs
)
804 def Copy(*args
, **kwargs
):
808 Copies the selected text to the clipboard.
810 return _richtext
.RichTextCtrl_Copy(*args
, **kwargs
)
812 def Cut(*args
, **kwargs
):
816 Copies the selected text to the clipboard and removes the selection.
818 return _richtext
.RichTextCtrl_Cut(*args
, **kwargs
)
820 def Paste(*args
, **kwargs
):
824 Pastes text from the clipboard into the document at the current
827 return _richtext
.RichTextCtrl_Paste(*args
, **kwargs
)
829 def DeleteSelection(*args
, **kwargs
):
831 DeleteSelection(self)
833 Remove the current selection.
835 return _richtext
.RichTextCtrl_DeleteSelection(*args
, **kwargs
)
837 def CanCopy(*args
, **kwargs
):
839 CanCopy(self) -> bool
841 Returns ``True`` if the selection can be copied to the clipboard.
843 return _richtext
.RichTextCtrl_CanCopy(*args
, **kwargs
)
845 def CanCut(*args
, **kwargs
):
849 Returns ``True`` if the selection can be cut to the clipboard.
851 return _richtext
.RichTextCtrl_CanCut(*args
, **kwargs
)
853 def CanPaste(*args
, **kwargs
):
855 CanPaste(self) -> bool
857 Returns ``True`` if the current contents of the clipboard can be
858 pasted into the document.
860 return _richtext
.RichTextCtrl_CanPaste(*args
, **kwargs
)
862 def CanDeleteSelection(*args
, **kwargs
):
864 CanDeleteSelection(self) -> bool
866 Returns ``True`` if the selection can be removed from the document.
868 return _richtext
.RichTextCtrl_CanDeleteSelection(*args
, **kwargs
)
870 def Undo(*args
, **kwargs
):
874 If the last operation can be undone, undoes the last operation.
876 return _richtext
.RichTextCtrl_Undo(*args
, **kwargs
)
878 def Redo(*args
, **kwargs
):
882 If the last operation can be redone, redoes the last operation.
884 return _richtext
.RichTextCtrl_Redo(*args
, **kwargs
)
886 def CanUndo(*args
, **kwargs
):
888 CanUndo(self) -> bool
890 Returns ``True`` if the last operation can be undone.
892 return _richtext
.RichTextCtrl_CanUndo(*args
, **kwargs
)
894 def CanRedo(*args
, **kwargs
):
896 CanRedo(self) -> bool
898 Returns ``True`` if the last operation can be redone.
900 return _richtext
.RichTextCtrl_CanRedo(*args
, **kwargs
)
902 def SetInsertionPoint(*args
, **kwargs
):
904 SetInsertionPoint(self, long pos)
906 Sets the insertion point at the given position.
908 return _richtext
.RichTextCtrl_SetInsertionPoint(*args
, **kwargs
)
910 def SetInsertionPointEnd(*args
, **kwargs
):
912 SetInsertionPointEnd(self)
914 Moves the insertion point to the end of the document.
916 return _richtext
.RichTextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
918 def GetInsertionPoint(*args
, **kwargs
):
920 GetInsertionPoint(self) -> long
922 Returns the insertion point. This is defined as the zero based index
923 of the character position to the right of the insertion point.
925 return _richtext
.RichTextCtrl_GetInsertionPoint(*args
, **kwargs
)
927 def GetLastPosition(*args
, **kwargs
):
929 GetLastPosition(self) -> long
931 Returns the zero based index of the last position in the document.
933 return _richtext
.RichTextCtrl_GetLastPosition(*args
, **kwargs
)
935 def SetSelection(*args
, **kwargs
):
937 SetSelection(self, long from, long to)
939 Selects the text starting at the first position up to (but not
940 including) the character at the last position. If both parameters are
941 equal to -1 then all text in the control is selected.
943 return _richtext
.RichTextCtrl_SetSelection(*args
, **kwargs
)
945 def SelectAll(*args
, **kwargs
):
949 Select all text in the document.
951 return _richtext
.RichTextCtrl_SelectAll(*args
, **kwargs
)
953 def SetEditable(*args
, **kwargs
):
955 SetEditable(self, bool editable)
957 Makes the document editable or read-only, overriding the RE_READONLY
960 return _richtext
.RichTextCtrl_SetEditable(*args
, **kwargs
)
962 def HasSelection(*args
, **kwargs
):
963 """HasSelection(self) -> bool"""
964 return _richtext
.RichTextCtrl_HasSelection(*args
, **kwargs
)
966 def WriteImage(*args
, **kwargs
):
967 """WriteImage(self, Image image, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
968 return _richtext
.RichTextCtrl_WriteImage(*args
, **kwargs
)
970 def WriteBitmap(*args
, **kwargs
):
971 """WriteBitmap(self, Bitmap bitmap, int bitmapType=BITMAP_TYPE_PNG) -> bool"""
972 return _richtext
.RichTextCtrl_WriteBitmap(*args
, **kwargs
)
974 def WriteImageFile(*args
, **kwargs
):
975 """WriteImageFile(self, String filename, int bitmapType) -> bool"""
976 return _richtext
.RichTextCtrl_WriteImageFile(*args
, **kwargs
)
978 def WriteImageBlock(*args
, **kwargs
):
979 """WriteImageBlock(self, wxRichTextImageBlock imageBlock) -> bool"""
980 return _richtext
.RichTextCtrl_WriteImageBlock(*args
, **kwargs
)
982 def Newline(*args
, **kwargs
):
983 """Newline(self) -> bool"""
984 return _richtext
.RichTextCtrl_Newline(*args
, **kwargs
)
986 def SetBasicStyle(*args
, **kwargs
):
987 """SetBasicStyle(self, RichTextAttr style)"""
988 return _richtext
.RichTextCtrl_SetBasicStyle(*args
, **kwargs
)
990 def EndStyle(*args
, **kwargs
):
991 """EndStyle(self) -> bool"""
992 return _richtext
.RichTextCtrl_EndStyle(*args
, **kwargs
)
994 def EndAllStyles(*args
, **kwargs
):
995 """EndAllStyles(self) -> bool"""
996 return _richtext
.RichTextCtrl_EndAllStyles(*args
, **kwargs
)
998 def BeginBold(*args
, **kwargs
):
999 """BeginBold(self) -> bool"""
1000 return _richtext
.RichTextCtrl_BeginBold(*args
, **kwargs
)
1002 def EndBold(*args
, **kwargs
):
1003 """EndBold(self) -> bool"""
1004 return _richtext
.RichTextCtrl_EndBold(*args
, **kwargs
)
1006 def BeginItalic(*args
, **kwargs
):
1007 """BeginItalic(self) -> bool"""
1008 return _richtext
.RichTextCtrl_BeginItalic(*args
, **kwargs
)
1010 def EndItalic(*args
, **kwargs
):
1011 """EndItalic(self) -> bool"""
1012 return _richtext
.RichTextCtrl_EndItalic(*args
, **kwargs
)
1014 def BeginUnderline(*args
, **kwargs
):
1015 """BeginUnderline(self) -> bool"""
1016 return _richtext
.RichTextCtrl_BeginUnderline(*args
, **kwargs
)
1018 def EndUnderline(*args
, **kwargs
):
1019 """EndUnderline(self) -> bool"""
1020 return _richtext
.RichTextCtrl_EndUnderline(*args
, **kwargs
)
1022 def BeginFontSize(*args
, **kwargs
):
1023 """BeginFontSize(self, int pointSize) -> bool"""
1024 return _richtext
.RichTextCtrl_BeginFontSize(*args
, **kwargs
)
1026 def EndFontSize(*args
, **kwargs
):
1027 """EndFontSize(self) -> bool"""
1028 return _richtext
.RichTextCtrl_EndFontSize(*args
, **kwargs
)
1030 def BeginFont(*args
, **kwargs
):
1031 """BeginFont(self, Font font) -> bool"""
1032 return _richtext
.RichTextCtrl_BeginFont(*args
, **kwargs
)
1034 def EndFont(*args
, **kwargs
):
1035 """EndFont(self) -> bool"""
1036 return _richtext
.RichTextCtrl_EndFont(*args
, **kwargs
)
1038 def BeginTextColour(*args
, **kwargs
):
1039 """BeginTextColour(self, Colour colour) -> bool"""
1040 return _richtext
.RichTextCtrl_BeginTextColour(*args
, **kwargs
)
1042 def EndTextColour(*args
, **kwargs
):
1043 """EndTextColour(self) -> bool"""
1044 return _richtext
.RichTextCtrl_EndTextColour(*args
, **kwargs
)
1046 def BeginAlignment(*args
, **kwargs
):
1047 """BeginAlignment(self, int alignment) -> bool"""
1048 return _richtext
.RichTextCtrl_BeginAlignment(*args
, **kwargs
)
1050 def EndAlignment(*args
, **kwargs
):
1051 """EndAlignment(self) -> bool"""
1052 return _richtext
.RichTextCtrl_EndAlignment(*args
, **kwargs
)
1054 def BeginLeftIndent(*args
, **kwargs
):
1055 """BeginLeftIndent(self, int leftIndent, int leftSubIndent=0) -> bool"""
1056 return _richtext
.RichTextCtrl_BeginLeftIndent(*args
, **kwargs
)
1058 def EndLeftIndent(*args
, **kwargs
):
1059 """EndLeftIndent(self) -> bool"""
1060 return _richtext
.RichTextCtrl_EndLeftIndent(*args
, **kwargs
)
1062 def BeginRightIndent(*args
, **kwargs
):
1063 """BeginRightIndent(self, int rightIndent) -> bool"""
1064 return _richtext
.RichTextCtrl_BeginRightIndent(*args
, **kwargs
)
1066 def EndRightIndent(*args
, **kwargs
):
1067 """EndRightIndent(self) -> bool"""
1068 return _richtext
.RichTextCtrl_EndRightIndent(*args
, **kwargs
)
1070 def BeginParagraphSpacing(*args
, **kwargs
):
1071 """BeginParagraphSpacing(self, int before, int after) -> bool"""
1072 return _richtext
.RichTextCtrl_BeginParagraphSpacing(*args
, **kwargs
)
1074 def EndParagraphSpacing(*args
, **kwargs
):
1075 """EndParagraphSpacing(self) -> bool"""
1076 return _richtext
.RichTextCtrl_EndParagraphSpacing(*args
, **kwargs
)
1078 def BeginLineSpacing(*args
, **kwargs
):
1079 """BeginLineSpacing(self, int lineSpacing) -> bool"""
1080 return _richtext
.RichTextCtrl_BeginLineSpacing(*args
, **kwargs
)
1082 def EndLineSpacing(*args
, **kwargs
):
1083 """EndLineSpacing(self) -> bool"""
1084 return _richtext
.RichTextCtrl_EndLineSpacing(*args
, **kwargs
)
1086 def BeginNumberedBullet(*args
, **kwargs
):
1088 BeginNumberedBullet(self, int bulletNumber, int leftIndent, int leftSubIndent,
1089 int bulletStyle=wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD) -> bool
1091 return _richtext
.RichTextCtrl_BeginNumberedBullet(*args
, **kwargs
)
1093 def EndNumberedBullet(*args
, **kwargs
):
1094 """EndNumberedBullet(self) -> bool"""
1095 return _richtext
.RichTextCtrl_EndNumberedBullet(*args
, **kwargs
)
1097 def BeginSymbolBullet(*args
, **kwargs
):
1098 """BeginSymbolBullet(self, char symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
1099 return _richtext
.RichTextCtrl_BeginSymbolBullet(*args
, **kwargs
)
1101 def EndSymbolBullet(*args
, **kwargs
):
1102 """EndSymbolBullet(self) -> bool"""
1103 return _richtext
.RichTextCtrl_EndSymbolBullet(*args
, **kwargs
)
1105 def BeginCharacterStyle(*args
, **kwargs
):
1106 """BeginCharacterStyle(self, String characterStyle) -> bool"""
1107 return _richtext
.RichTextCtrl_BeginCharacterStyle(*args
, **kwargs
)
1109 def EndCharacterStyle(*args
, **kwargs
):
1110 """EndCharacterStyle(self) -> bool"""
1111 return _richtext
.RichTextCtrl_EndCharacterStyle(*args
, **kwargs
)
1113 def BeginParagraphStyle(*args
, **kwargs
):
1114 """BeginParagraphStyle(self, String paragraphStyle) -> bool"""
1115 return _richtext
.RichTextCtrl_BeginParagraphStyle(*args
, **kwargs
)
1117 def EndParagraphStyle(*args
, **kwargs
):
1118 """EndParagraphStyle(self) -> bool"""
1119 return _richtext
.RichTextCtrl_EndParagraphStyle(*args
, **kwargs
)
1121 def SetDefaultStyleToCursorStyle(*args
, **kwargs
):
1122 """SetDefaultStyleToCursorStyle(self) -> bool"""
1123 return _richtext
.RichTextCtrl_SetDefaultStyleToCursorStyle(*args
, **kwargs
)
1125 def SelectNone(*args
, **kwargs
):
1126 """SelectNone(self)"""
1127 return _richtext
.RichTextCtrl_SelectNone(*args
, **kwargs
)
1129 def GetSelectionRange(*args
, **kwargs
):
1130 """GetSelectionRange(self) -> RichTextRange"""
1131 return _richtext
.RichTextCtrl_GetSelectionRange(*args
, **kwargs
)
1133 def SetSelectionRange(*args
, **kwargs
):
1134 """SetSelectionRange(self, RichTextRange range)"""
1135 return _richtext
.RichTextCtrl_SetSelectionRange(*args
, **kwargs
)
1137 def AddParagraph(*args
, **kwargs
):
1138 """AddParagraph(self, String text) -> RichTextRange"""
1139 return _richtext
.RichTextCtrl_AddParagraph(*args
, **kwargs
)
1141 def AddImage(*args
, **kwargs
):
1142 """AddImage(self, Image image) -> RichTextRange"""
1143 return _richtext
.RichTextCtrl_AddImage(*args
, **kwargs
)
1145 def LayoutContent(*args
, **kwargs
):
1146 """LayoutContent(self, bool onlyVisibleRect=False) -> bool"""
1147 return _richtext
.RichTextCtrl_LayoutContent(*args
, **kwargs
)
1149 def MoveCaret(*args
, **kwargs
):
1150 """MoveCaret(self, long pos, bool showAtLineStart=False) -> bool"""
1151 return _richtext
.RichTextCtrl_MoveCaret(*args
, **kwargs
)
1153 def MoveRight(*args
, **kwargs
):
1154 """MoveRight(self, int noPositions=1, int flags=0) -> bool"""
1155 return _richtext
.RichTextCtrl_MoveRight(*args
, **kwargs
)
1157 def MoveLeft(*args
, **kwargs
):
1158 """MoveLeft(self, int noPositions=1, int flags=0) -> bool"""
1159 return _richtext
.RichTextCtrl_MoveLeft(*args
, **kwargs
)
1161 def MoveUp(*args
, **kwargs
):
1162 """MoveUp(self, int noLines=1, int flags=0) -> bool"""
1163 return _richtext
.RichTextCtrl_MoveUp(*args
, **kwargs
)
1165 def MoveDown(*args
, **kwargs
):
1166 """MoveDown(self, int noLines=1, int flags=0) -> bool"""
1167 return _richtext
.RichTextCtrl_MoveDown(*args
, **kwargs
)
1169 def MoveToLineEnd(*args
, **kwargs
):
1170 """MoveToLineEnd(self, int flags=0) -> bool"""
1171 return _richtext
.RichTextCtrl_MoveToLineEnd(*args
, **kwargs
)
1173 def MoveToLineStart(*args
, **kwargs
):
1174 """MoveToLineStart(self, int flags=0) -> bool"""
1175 return _richtext
.RichTextCtrl_MoveToLineStart(*args
, **kwargs
)
1177 def MoveToParagraphEnd(*args
, **kwargs
):
1178 """MoveToParagraphEnd(self, int flags=0) -> bool"""
1179 return _richtext
.RichTextCtrl_MoveToParagraphEnd(*args
, **kwargs
)
1181 def MoveToParagraphStart(*args
, **kwargs
):
1182 """MoveToParagraphStart(self, int flags=0) -> bool"""
1183 return _richtext
.RichTextCtrl_MoveToParagraphStart(*args
, **kwargs
)
1185 def MoveHome(*args
, **kwargs
):
1186 """MoveHome(self, int flags=0) -> bool"""
1187 return _richtext
.RichTextCtrl_MoveHome(*args
, **kwargs
)
1189 def MoveEnd(*args
, **kwargs
):
1190 """MoveEnd(self, int flags=0) -> bool"""
1191 return _richtext
.RichTextCtrl_MoveEnd(*args
, **kwargs
)
1193 def PageUp(*args
, **kwargs
):
1194 """PageUp(self, int noPages=1, int flags=0) -> bool"""
1195 return _richtext
.RichTextCtrl_PageUp(*args
, **kwargs
)
1197 def PageDown(*args
, **kwargs
):
1198 """PageDown(self, int noPages=1, int flags=0) -> bool"""
1199 return _richtext
.RichTextCtrl_PageDown(*args
, **kwargs
)
1201 def WordLeft(*args
, **kwargs
):
1202 """WordLeft(self, int noPages=1, int flags=0) -> bool"""
1203 return _richtext
.RichTextCtrl_WordLeft(*args
, **kwargs
)
1205 def WordRight(*args
, **kwargs
):
1206 """WordRight(self, int noPages=1, int flags=0) -> bool"""
1207 return _richtext
.RichTextCtrl_WordRight(*args
, **kwargs
)
1209 def GetBuffer(*args
, **kwargs
):
1210 """GetBuffer(self) -> wxRichTextBuffer"""
1211 return _richtext
.RichTextCtrl_GetBuffer(*args
, **kwargs
)
1213 def BeginBatchUndo(*args
, **kwargs
):
1214 """BeginBatchUndo(self, String cmdName) -> bool"""
1215 return _richtext
.RichTextCtrl_BeginBatchUndo(*args
, **kwargs
)
1217 def EndBatchUndo(*args
, **kwargs
):
1218 """EndBatchUndo(self) -> bool"""
1219 return _richtext
.RichTextCtrl_EndBatchUndo(*args
, **kwargs
)
1221 def BatchingUndo(*args
, **kwargs
):
1222 """BatchingUndo(self) -> bool"""
1223 return _richtext
.RichTextCtrl_BatchingUndo(*args
, **kwargs
)
1225 def BeginSuppressUndo(*args
, **kwargs
):
1226 """BeginSuppressUndo(self) -> bool"""
1227 return _richtext
.RichTextCtrl_BeginSuppressUndo(*args
, **kwargs
)
1229 def EndSuppressUndo(*args
, **kwargs
):
1230 """EndSuppressUndo(self) -> bool"""
1231 return _richtext
.RichTextCtrl_EndSuppressUndo(*args
, **kwargs
)
1233 def SuppressingUndo(*args
, **kwargs
):
1234 """SuppressingUndo(self) -> bool"""
1235 return _richtext
.RichTextCtrl_SuppressingUndo(*args
, **kwargs
)
1237 def HasCharacterAttributes(*args
, **kwargs
):
1238 """HasCharacterAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
1239 return _richtext
.RichTextCtrl_HasCharacterAttributes(*args
, **kwargs
)
1241 def HasParagraphAttributes(*args
, **kwargs
):
1242 """HasParagraphAttributes(self, RichTextRange range, RichTextAttr style) -> bool"""
1243 return _richtext
.RichTextCtrl_HasParagraphAttributes(*args
, **kwargs
)
1245 def IsSelectionBold(*args
, **kwargs
):
1246 """IsSelectionBold(self) -> bool"""
1247 return _richtext
.RichTextCtrl_IsSelectionBold(*args
, **kwargs
)
1249 def IsSelectionItalics(*args
, **kwargs
):
1250 """IsSelectionItalics(self) -> bool"""
1251 return _richtext
.RichTextCtrl_IsSelectionItalics(*args
, **kwargs
)
1253 def IsSelectionUnderlined(*args
, **kwargs
):
1254 """IsSelectionUnderlined(self) -> bool"""
1255 return _richtext
.RichTextCtrl_IsSelectionUnderlined(*args
, **kwargs
)
1257 def IsSelectionAligned(*args
, **kwargs
):
1258 """IsSelectionAligned(self, int alignment) -> bool"""
1259 return _richtext
.RichTextCtrl_IsSelectionAligned(*args
, **kwargs
)
1261 def ApplyBoldToSelection(*args
, **kwargs
):
1262 """ApplyBoldToSelection(self) -> bool"""
1263 return _richtext
.RichTextCtrl_ApplyBoldToSelection(*args
, **kwargs
)
1265 def ApplyItalicToSelection(*args
, **kwargs
):
1266 """ApplyItalicToSelection(self) -> bool"""
1267 return _richtext
.RichTextCtrl_ApplyItalicToSelection(*args
, **kwargs
)
1269 def ApplyUnderlineToSelection(*args
, **kwargs
):
1270 """ApplyUnderlineToSelection(self) -> bool"""
1271 return _richtext
.RichTextCtrl_ApplyUnderlineToSelection(*args
, **kwargs
)
1273 def ApplyAlignmentToSelection(*args
, **kwargs
):
1274 """ApplyAlignmentToSelection(self, int alignment) -> bool"""
1275 return _richtext
.RichTextCtrl_ApplyAlignmentToSelection(*args
, **kwargs
)
1277 def SetStyleSheet(*args
, **kwargs
):
1278 """SetStyleSheet(self, wxRichTextStyleSheet styleSheet)"""
1279 return _richtext
.RichTextCtrl_SetStyleSheet(*args
, **kwargs
)
1281 def GetStyleSheet(*args
, **kwargs
):
1282 """GetStyleSheet(self) -> wxRichTextStyleSheet"""
1283 return _richtext
.RichTextCtrl_GetStyleSheet(*args
, **kwargs
)
1285 _richtext
.RichTextCtrl_swigregister(RichTextCtrl
)
1287 def PreRichTextCtrl(*args
, **kwargs
):
1288 """PreRichTextCtrl() -> RichTextCtrl"""
1289 val
= _richtext
.new_PreRichTextCtrl(*args
, **kwargs
)
1292 wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
= _richtext
.wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
1293 wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
= _richtext
.wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
1294 wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
1295 wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
1296 wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
1297 wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
= _richtext
.wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
1298 wxEVT_COMMAND_RICHTEXT_RETURN
= _richtext
.wxEVT_COMMAND_RICHTEXT_RETURN
1299 EVT_RICHTEXT_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
, 1)
1300 EVT_RICHTEXT_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
, 1)
1301 EVT_RICHTEXT_LEFT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
, 1)
1302 EVT_RICHTEXT_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
, 1)
1303 EVT_RICHTEXT_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
, 1)
1304 EVT_RICHTEXT_LEFT_DCLICK
= wx
.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
, 1)
1305 EVT_RICHTEXT_RETURN
= wx
.PyEventBinder( wxEVT_COMMAND_RICHTEXT_RETURN
, 1)
1307 class RichTextEvent(_core
.NotifyEvent
):
1308 """Proxy of C++ RichTextEvent class"""
1309 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1310 __repr__
= _swig_repr
1311 def __init__(self
, *args
, **kwargs
):
1312 """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> RichTextEvent"""
1313 _richtext
.RichTextEvent_swiginit(self
,_richtext
.new_RichTextEvent(*args
, **kwargs
))
1314 def GetIndex(*args
, **kwargs
):
1315 """GetIndex(self) -> int"""
1316 return _richtext
.RichTextEvent_GetIndex(*args
, **kwargs
)
1318 def SetIndex(*args
, **kwargs
):
1319 """SetIndex(self, int n)"""
1320 return _richtext
.RichTextEvent_SetIndex(*args
, **kwargs
)
1322 def GetFlags(*args
, **kwargs
):
1323 """GetFlags(self) -> int"""
1324 return _richtext
.RichTextEvent_GetFlags(*args
, **kwargs
)
1326 def SetFlags(*args
, **kwargs
):
1327 """SetFlags(self, int flags)"""
1328 return _richtext
.RichTextEvent_SetFlags(*args
, **kwargs
)
1330 _richtext
.RichTextEvent_swigregister(RichTextEvent
)