]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/richtext.py
make Ctrl-PageUp/Down work for changing notebook pages even when there is a wxWindow...
[wxWidgets.git] / wxPython / src / mac / richtext.py
index 7bf959ae1fa8210f7024ce9551b3cdc5896682fa..efe7f99d91ad63853043a2839d731817403cb60c 100644 (file)
@@ -81,6 +81,11 @@ RICHTEXT_HITTEST_AFTER = _richtext.RICHTEXT_HITTEST_AFTER
 RICHTEXT_HITTEST_ON = _richtext.RICHTEXT_HITTEST_ON
 RICHTEXT_FORMATTED = _richtext.RICHTEXT_FORMATTED
 RICHTEXT_UNFORMATTED = _richtext.RICHTEXT_UNFORMATTED
 RICHTEXT_HITTEST_ON = _richtext.RICHTEXT_HITTEST_ON
 RICHTEXT_FORMATTED = _richtext.RICHTEXT_FORMATTED
 RICHTEXT_UNFORMATTED = _richtext.RICHTEXT_UNFORMATTED
+RICHTEXT_SETSTYLE_NONE = _richtext.RICHTEXT_SETSTYLE_NONE
+RICHTEXT_SETSTYLE_WITH_UNDO = _richtext.RICHTEXT_SETSTYLE_WITH_UNDO
+RICHTEXT_SETSTYLE_OPTIMIZE = _richtext.RICHTEXT_SETSTYLE_OPTIMIZE
+RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY = _richtext.RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY
+RICHTEXT_SETSTYLE_CHARACTERS_ONLY = _richtext.RICHTEXT_SETSTYLE_CHARACTERS_ONLY
 RICHTEXT_INSERT_NONE = _richtext.RICHTEXT_INSERT_NONE
 RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE = _richtext.RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE
 TEXT_ATTR_TEXT_COLOUR = _richtext.TEXT_ATTR_TEXT_COLOUR
 RICHTEXT_INSERT_NONE = _richtext.RICHTEXT_INSERT_NONE
 RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE = _richtext.RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE
 TEXT_ATTR_TEXT_COLOUR = _richtext.TEXT_ATTR_TEXT_COLOUR
@@ -102,7 +107,6 @@ TEXT_ATTR_CHARACTER_STYLE_NAME = _richtext.TEXT_ATTR_CHARACTER_STYLE_NAME
 TEXT_ATTR_PARAGRAPH_STYLE_NAME = _richtext.TEXT_ATTR_PARAGRAPH_STYLE_NAME
 TEXT_ATTR_BULLET_STYLE = _richtext.TEXT_ATTR_BULLET_STYLE
 TEXT_ATTR_BULLET_NUMBER = _richtext.TEXT_ATTR_BULLET_NUMBER
 TEXT_ATTR_PARAGRAPH_STYLE_NAME = _richtext.TEXT_ATTR_PARAGRAPH_STYLE_NAME
 TEXT_ATTR_BULLET_STYLE = _richtext.TEXT_ATTR_BULLET_STYLE
 TEXT_ATTR_BULLET_NUMBER = _richtext.TEXT_ATTR_BULLET_NUMBER
-TEXT_ATTR_BULLET_SYMBOL = _richtext.TEXT_ATTR_BULLET_SYMBOL
 TEXT_ATTR_BULLET_STYLE_NONE = _richtext.TEXT_ATTR_BULLET_STYLE_NONE
 TEXT_ATTR_BULLET_STYLE_ARABIC = _richtext.TEXT_ATTR_BULLET_STYLE_ARABIC
 TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER = _richtext.TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
 TEXT_ATTR_BULLET_STYLE_NONE = _richtext.TEXT_ATTR_BULLET_STYLE_NONE
 TEXT_ATTR_BULLET_STYLE_ARABIC = _richtext.TEXT_ATTR_BULLET_STYLE_ARABIC
 TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER = _richtext.TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
@@ -363,9 +367,13 @@ class RichTextAttr(object):
         """SetBulletNumber(self, int n)"""
         return _richtext.RichTextAttr_SetBulletNumber(*args, **kwargs)
 
         """SetBulletNumber(self, int n)"""
         return _richtext.RichTextAttr_SetBulletNumber(*args, **kwargs)
 
-    def SetBulletSymbol(*args, **kwargs):
-        """SetBulletSymbol(self, wxChar symbol)"""
-        return _richtext.RichTextAttr_SetBulletSymbol(*args, **kwargs)
+    def SetBulletText(*args, **kwargs):
+        """SetBulletText(self, wxChar symbol)"""
+        return _richtext.RichTextAttr_SetBulletText(*args, **kwargs)
+
+    def SetBulletFont(*args, **kwargs):
+        """SetBulletFont(self, String bulletFont)"""
+        return _richtext.RichTextAttr_SetBulletFont(*args, **kwargs)
 
     def GetTextColour(*args, **kwargs):
         """GetTextColour(self) -> Colour"""
 
     def GetTextColour(*args, **kwargs):
         """GetTextColour(self) -> Colour"""
@@ -447,9 +455,13 @@ class RichTextAttr(object):
         """GetBulletNumber(self) -> int"""
         return _richtext.RichTextAttr_GetBulletNumber(*args, **kwargs)
 
         """GetBulletNumber(self) -> int"""
         return _richtext.RichTextAttr_GetBulletNumber(*args, **kwargs)
 
-    def GetBulletSymbol(*args, **kwargs):
-        """GetBulletSymbol(self) -> wxChar"""
-        return _richtext.RichTextAttr_GetBulletSymbol(*args, **kwargs)
+    def GetBulletText(*args, **kwargs):
+        """GetBulletText(self) -> String"""
+        return _richtext.RichTextAttr_GetBulletText(*args, **kwargs)
+
+    def GetBulletFont(*args, **kwargs):
+        """GetBulletFont(self) -> String"""
+        return _richtext.RichTextAttr_GetBulletFont(*args, **kwargs)
 
     def HasTextColour(*args, **kwargs):
         """HasTextColour(self) -> bool"""
 
     def HasTextColour(*args, **kwargs):
         """HasTextColour(self) -> bool"""
@@ -475,26 +487,6 @@ class RichTextAttr(object):
         """HasRightIndent(self) -> bool"""
         return _richtext.RichTextAttr_HasRightIndent(*args, **kwargs)
 
         """HasRightIndent(self) -> bool"""
         return _richtext.RichTextAttr_HasRightIndent(*args, **kwargs)
 
-    def HasWeight(*args, **kwargs):
-        """HasWeight(self) -> bool"""
-        return _richtext.RichTextAttr_HasWeight(*args, **kwargs)
-
-    def HasSize(*args, **kwargs):
-        """HasSize(self) -> bool"""
-        return _richtext.RichTextAttr_HasSize(*args, **kwargs)
-
-    def HasItalic(*args, **kwargs):
-        """HasItalic(self) -> bool"""
-        return _richtext.RichTextAttr_HasItalic(*args, **kwargs)
-
-    def HasUnderlined(*args, **kwargs):
-        """HasUnderlined(self) -> bool"""
-        return _richtext.RichTextAttr_HasUnderlined(*args, **kwargs)
-
-    def HasFaceName(*args, **kwargs):
-        """HasFaceName(self) -> bool"""
-        return _richtext.RichTextAttr_HasFaceName(*args, **kwargs)
-
     def HasFont(*args, **kwargs):
         """HasFont(self) -> bool"""
         return _richtext.RichTextAttr_HasFont(*args, **kwargs)
     def HasFont(*args, **kwargs):
         """HasFont(self) -> bool"""
         return _richtext.RichTextAttr_HasFont(*args, **kwargs)
@@ -527,9 +519,9 @@ class RichTextAttr(object):
         """HasBulletNumber(self) -> bool"""
         return _richtext.RichTextAttr_HasBulletNumber(*args, **kwargs)
 
         """HasBulletNumber(self) -> bool"""
         return _richtext.RichTextAttr_HasBulletNumber(*args, **kwargs)
 
-    def HasBulletSymbol(*args, **kwargs):
-        """HasBulletSymbol(self) -> bool"""
-        return _richtext.RichTextAttr_HasBulletSymbol(*args, **kwargs)
+    def HasBulletText(*args, **kwargs):
+        """HasBulletText(self) -> bool"""
+        return _richtext.RichTextAttr_HasBulletText(*args, **kwargs)
 
     def HasFlag(*args, **kwargs):
         """HasFlag(self, long flag) -> bool"""
 
     def HasFlag(*args, **kwargs):
         """HasFlag(self, long flag) -> bool"""
@@ -549,9 +541,10 @@ class RichTextAttr(object):
 
     Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") 
     BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") 
 
     Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") 
     BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") 
+    BulletFont = property(GetBulletFont,SetBulletFont,doc="See `GetBulletFont` and `SetBulletFont`") 
     BulletNumber = property(GetBulletNumber,SetBulletNumber,doc="See `GetBulletNumber` and `SetBulletNumber`") 
     BulletStyle = property(GetBulletStyle,SetBulletStyle,doc="See `GetBulletStyle` and `SetBulletStyle`") 
     BulletNumber = property(GetBulletNumber,SetBulletNumber,doc="See `GetBulletNumber` and `SetBulletNumber`") 
     BulletStyle = property(GetBulletStyle,SetBulletStyle,doc="See `GetBulletStyle` and `SetBulletStyle`") 
-    BulletSymbol = property(GetBulletSymbol,SetBulletSymbol,doc="See `GetBulletSymbol` and `SetBulletSymbol`") 
+    BulletText = property(GetBulletText,SetBulletText,doc="See `GetBulletText` and `SetBulletText`") 
     CharacterStyleName = property(GetCharacterStyleName,SetCharacterStyleName,doc="See `GetCharacterStyleName` and `SetCharacterStyleName`") 
     Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") 
     Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") 
     CharacterStyleName = property(GetCharacterStyleName,SetCharacterStyleName,doc="See `GetCharacterStyleName` and `SetCharacterStyleName`") 
     Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") 
     Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") 
@@ -707,6 +700,22 @@ class RichTextCtrl(_windows.ScrolledWindow):
         """
         return _richtext.RichTextCtrl_SaveFile(*args, **kwargs)
 
         """
         return _richtext.RichTextCtrl_SaveFile(*args, **kwargs)
 
+    def SetHandlerFlags(*args, **kwargs):
+        """
+        SetHandlerFlags(self, int flags)
+
+        Set the handler flags, controlling loading and saving.
+        """
+        return _richtext.RichTextCtrl_SetHandlerFlags(*args, **kwargs)
+
+    def GetHandlerFlags(*args, **kwargs):
+        """
+        GetHandlerFlags(self) -> int
+
+        Get the handler flags, controlling loading and saving.
+        """
+        return _richtext.RichTextCtrl_GetHandlerFlags(*args, **kwargs)
+
     def MarkDirty(*args, **kwargs):
         """
         MarkDirty(self)
     def MarkDirty(*args, **kwargs):
         """
         MarkDirty(self)
@@ -758,6 +767,16 @@ class RichTextCtrl(_windows.ScrolledWindow):
         """
         return _richtext.RichTextCtrl_SetStyle(*args, **kwargs)
 
         """
         return _richtext.RichTextCtrl_SetStyle(*args, **kwargs)
 
+    def SetStyleEx(*args, **kwargs):
+        """
+        SetStyleEx(self, RichTextRange range, RichTextAttr style, int flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool
+
+        Extended style setting operation with flags including:
+        RICHTEXT_SETSTYLE_WITH_UNDO, RICHTEXT_SETSTYLE_OPTIMIZE,
+        RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY, RICHTEXT_SETSTYLE_CHARACTERS_ONLY
+        """
+        return _richtext.RichTextCtrl_SetStyleEx(*args, **kwargs)
+
     def GetStyle(*args, **kwargs):
         """
         GetStyle(self, long position, RichTextAttr style) -> bool
     def GetStyle(*args, **kwargs):
         """
         GetStyle(self, long position, RichTextAttr style) -> bool
@@ -1134,7 +1153,7 @@ class RichTextCtrl(_windows.ScrolledWindow):
         return _richtext.RichTextCtrl_EndNumberedBullet(*args, **kwargs)
 
     def BeginSymbolBullet(*args, **kwargs):
         return _richtext.RichTextCtrl_EndNumberedBullet(*args, **kwargs)
 
     def BeginSymbolBullet(*args, **kwargs):
-        """BeginSymbolBullet(self, char symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
+        """BeginSymbolBullet(self, String symbol, int leftIndent, int leftSubIndent, int bulletStyle=TEXT_ATTR_BULLET_STYLE_SYMBOL) -> bool"""
         return _richtext.RichTextCtrl_BeginSymbolBullet(*args, **kwargs)
 
     def EndSymbolBullet(*args, **kwargs):
         return _richtext.RichTextCtrl_BeginSymbolBullet(*args, **kwargs)
 
     def EndSymbolBullet(*args, **kwargs):
@@ -1157,6 +1176,38 @@ class RichTextCtrl(_windows.ScrolledWindow):
         """EndParagraphStyle(self) -> bool"""
         return _richtext.RichTextCtrl_EndParagraphStyle(*args, **kwargs)
 
         """EndParagraphStyle(self) -> bool"""
         return _richtext.RichTextCtrl_EndParagraphStyle(*args, **kwargs)
 
+    def BeginListStyle(*args, **kwargs):
+        """
+        BeginListStyle(self, String listStyle, int level=1, int number=1) -> bool
+
+        Begin named list style.
+        """
+        return _richtext.RichTextCtrl_BeginListStyle(*args, **kwargs)
+
+    def EndListStyle(*args, **kwargs):
+        """
+        EndListStyle(self) -> bool
+
+        End named list style.
+        """
+        return _richtext.RichTextCtrl_EndListStyle(*args, **kwargs)
+
+    def BeginURL(*args, **kwargs):
+        """
+        BeginURL(self, String url, String characterStyle=wxEmptyString) -> bool
+
+        Begin URL.
+        """
+        return _richtext.RichTextCtrl_BeginURL(*args, **kwargs)
+
+    def EndURL(*args, **kwargs):
+        """
+        EndURL(self) -> bool
+
+        End URL.
+        """
+        return _richtext.RichTextCtrl_EndURL(*args, **kwargs)
+
     def SetDefaultStyleToCursorStyle(*args, **kwargs):
         """SetDefaultStyleToCursorStyle(self) -> bool"""
         return _richtext.RichTextCtrl_SetDefaultStyleToCursorStyle(*args, **kwargs)
     def SetDefaultStyleToCursorStyle(*args, **kwargs):
         """SetDefaultStyleToCursorStyle(self) -> bool"""
         return _richtext.RichTextCtrl_SetDefaultStyleToCursorStyle(*args, **kwargs)
@@ -1345,7 +1396,7 @@ class RichTextCtrl(_windows.ScrolledWindow):
     InternalSelectionRange = property(GetInternalSelectionRange,SetInternalSelectionRange,doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`") 
     LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") 
     NumberOfLines = property(GetNumberOfLines,doc="See `GetNumberOfLines`") 
     InternalSelectionRange = property(GetInternalSelectionRange,SetInternalSelectionRange,doc="See `GetInternalSelectionRange` and `SetInternalSelectionRange`") 
     LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") 
     NumberOfLines = property(GetNumberOfLines,doc="See `GetNumberOfLines`") 
-    Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") 
+    Selection = property(GetSelection,SetSelectionRange,doc="See `GetSelection` and `SetSelection`") 
     SelectionRange = property(GetSelectionRange,SetSelectionRange,doc="See `GetSelectionRange` and `SetSelectionRange`") 
     StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") 
     StyleSheet = property(GetStyleSheet,SetStyleSheet,doc="See `GetStyleSheet` and `SetStyleSheet`") 
     SelectionRange = property(GetSelectionRange,SetSelectionRange,doc="See `GetSelectionRange` and `SetSelectionRange`") 
     StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") 
     StyleSheet = property(GetStyleSheet,SetStyleSheet,doc="See `GetStyleSheet` and `SetStyleSheet`") 
@@ -1357,20 +1408,28 @@ def PreRichTextCtrl(*args, **kwargs):
     val = _richtext.new_PreRichTextCtrl(*args, **kwargs)
     return val
 
     val = _richtext.new_PreRichTextCtrl(*args, **kwargs)
     return val
 
-wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED = _richtext.wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED
-wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED = _richtext.wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED
 wxEVT_COMMAND_RICHTEXT_LEFT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
 wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
 wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
 wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
 wxEVT_COMMAND_RICHTEXT_RETURN = _richtext.wxEVT_COMMAND_RICHTEXT_RETURN
 wxEVT_COMMAND_RICHTEXT_LEFT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_CLICK
 wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK
 wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK = _richtext.wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK
 wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK = _richtext.wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK
 wxEVT_COMMAND_RICHTEXT_RETURN = _richtext.wxEVT_COMMAND_RICHTEXT_RETURN
-EVT_RICHTEXT_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED, 1)
-EVT_RICHTEXT_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED, 1)
+wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING
+wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED
+wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING
+wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED = _richtext.wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED
+wxEVT_COMMAND_RICHTEXT_CHARACTER = _richtext.wxEVT_COMMAND_RICHTEXT_CHARACTER
+wxEVT_COMMAND_RICHTEXT_DELETE = _richtext.wxEVT_COMMAND_RICHTEXT_DELETE
 EVT_RICHTEXT_LEFT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK, 1)
 EVT_RICHTEXT_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK, 1)
 EVT_RICHTEXT_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK, 1)
 EVT_RICHTEXT_LEFT_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK, 1)
 EVT_RICHTEXT_RETURN = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_RETURN, 1)
 EVT_RICHTEXT_LEFT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK, 1)
 EVT_RICHTEXT_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK, 1)
 EVT_RICHTEXT_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK, 1)
 EVT_RICHTEXT_LEFT_DCLICK = wx.PyEventBinder(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK, 1)
 EVT_RICHTEXT_RETURN = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_RETURN, 1)
+EVT_RICHTEXT_STYLESHEET_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING, 1)
+EVT_RICHTEXT_STYLESHEET_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED, 1)
+EVT_RICHTEXT_STYLESHEET_REPLACING = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING, 1)
+EVT_RICHTEXT_STYLESHEET_REPLACED = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED, 1)
+EVT_RICHTEXT_CHARACTER = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_CHARACTER, 1)
+EVT_RICHTEXT_DELETE = wx.PyEventBinder( wxEVT_COMMAND_RICHTEXT_DELETE, 1)
 
 class RichTextEvent(_core.NotifyEvent):
     """Proxy of C++ RichTextEvent class"""
 
 class RichTextEvent(_core.NotifyEvent):
     """Proxy of C++ RichTextEvent class"""
@@ -1379,13 +1438,13 @@ class RichTextEvent(_core.NotifyEvent):
     def __init__(self, *args, **kwargs): 
         """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> RichTextEvent"""
         _richtext.RichTextEvent_swiginit(self,_richtext.new_RichTextEvent(*args, **kwargs))
     def __init__(self, *args, **kwargs): 
         """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> RichTextEvent"""
         _richtext.RichTextEvent_swiginit(self,_richtext.new_RichTextEvent(*args, **kwargs))
-    def GetIndex(*args, **kwargs):
-        """GetIndex(self) -> int"""
-        return _richtext.RichTextEvent_GetIndex(*args, **kwargs)
+    def GetPosition(*args, **kwargs):
+        """GetPosition(self) -> int"""
+        return _richtext.RichTextEvent_GetPosition(*args, **kwargs)
 
 
-    def SetIndex(*args, **kwargs):
-        """SetIndex(self, int n)"""
-        return _richtext.RichTextEvent_SetIndex(*args, **kwargs)
+    def SetPosition(*args, **kwargs):
+        """SetPosition(self, int n)"""
+        return _richtext.RichTextEvent_SetPosition(*args, **kwargs)
 
     def GetFlags(*args, **kwargs):
         """GetFlags(self) -> int"""
 
     def GetFlags(*args, **kwargs):
         """GetFlags(self) -> int"""
@@ -1396,7 +1455,7 @@ class RichTextEvent(_core.NotifyEvent):
         return _richtext.RichTextEvent_SetFlags(*args, **kwargs)
 
     Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") 
         return _richtext.RichTextEvent_SetFlags(*args, **kwargs)
 
     Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") 
-    Index = property(GetIndex,SetIndex,doc="See `GetIndex` and `SetIndex`") 
+    Index = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`") 
 _richtext.RichTextEvent_swigregister(RichTextEvent)
 
 
 _richtext.RichTextEvent_swigregister(RichTextEvent)