Home | Trees | Index | Help |
|
---|
Package wx :: Module richtext :: Class RichTextRange |
|
object
--+
|
RichTextRange
RichTextRange is a data structure that represents a range of text
within a RichTextCtrl
. It simply contains integer start and
end properties and a few operations useful for dealing with
ranges. In most places in wxPython where a RichTextRange is expected a
2-tuple containing (start, end) can be used instead.
Method Summary | |
---|---|
RichTextRange |
Creates a new range object. |
RichTextRange | __add__(self,
range)
|
__del__(self)
| |
bool |
Test for equality of RichTextRange objects. |
__getitem__(self,
index)
| |
__len__(self)
| |
__nonzero__(self)
| |
__reduce__(self)
| |
__repr__(self)
| |
__setitem__(self,
index,
val)
| |
__str__(self)
| |
RichTextRange | __sub__(self,
range)
|
bool |
Returns true if the given position is within this range. |
(start,end) |
Returns the start and end properties as a tuple. |
long | GetEnd(self)
|
long |
Gets the length of the range |
long | GetStart(self)
|
bool |
Returns true if this range is completely outside 'range' |
bool |
Returns true if this range is completely within 'range' |
bool |
Limit this range to be within 'range' |
SetEnd(self,
end)
| |
SetRange(self,
start,
end)
| |
SetStart(self,
start)
| |
Swaps the start and end |
Property Summary | |
---|---|
End : See GetEnd and SetEnd | |
end | |
Length : See GetLength | |
Start : See GetStart and SetStart | |
start | |
thisown : The membership flag |
Class Variable Summary | |
---|---|
bool |
__safe_for_unpickling__ = True
|
Method Details |
---|
__init__(self,
start=0,
end=0)
|
__eq__(self,
other)
|
Contains(self, pos)Returns true if the given position is within this range. Allow for the possibility of an empty range - assume the position is within this empty range.
|
Get()Returns the start and end properties as a tuple.
|
GetLength(self)Gets the length of the range
|
IsOutside(self, range)Returns true if this range is completely outside 'range'
|
IsWithin(self, range)Returns true if this range is completely within 'range'
|
LimitTo(self, range)Limit this range to be within 'range'
|
Swap(self)Swaps the start and end |
Property Details |
---|
End |
end |
LengthSee
|
Start |
start |
thisownThe membership flag
|
Class Variable Details |
---|
__safe_for_unpickling__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:10:39 2007 | http://epydoc.sf.net |