]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/richtext.py
Corrections after The Great wxRegion Refactoring.
[wxWidgets.git] / wxPython / src / msw / richtext.py
index 230b5094a2a00701bc63274750670fd34960360f..dd3b17545315389f60298692e2143a717e443c8c 100644 (file)
@@ -54,7 +54,6 @@ def _swig_setattr_nondynamic_method(set):
 USE_TEXTATTREX = _richtext.USE_TEXTATTREX
 import _windows
 import _core
-import _gdi
 wx = _core 
 __docfilter__ = wx.__DocFilter(globals()) 
 RE_READONLY = _richtext.RE_READONLY
@@ -260,7 +259,7 @@ class RichTextAttr(object):
     __repr__ = _swig_repr
     def __init__(self, *args, **kwargs): 
         """
-        __init__(self, Colour colText=NullColour, Colour colBack=NullColour, 
+        __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, 
             int alignment=TEXT_ALIGNMENT_DEFAULT) -> RichTextAttr
 
         The RichTextAttr class stored information about the various attributes
@@ -557,16 +556,18 @@ class RichTextCtrl(_windows.ScrolledWindow):
     __repr__ = _swig_repr
     def __init__(self, *args, **kwargs): 
         """
-        __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, 
-            Size size=DefaultSize, long style=RE_MULTILINE) -> RichTextCtrl
+        __init__(self, Window parent, int id=-1, String value=EmptyString, 
+            Point pos=DefaultPosition, Size size=DefaultSize, 
+            long style=RE_MULTILINE) -> RichTextCtrl
         """
         _richtext.RichTextCtrl_swiginit(self,_richtext.new_RichTextCtrl(*args, **kwargs))
         self._setOORInfo(self)
 
     def Create(*args, **kwargs):
         """
-        Create(self, Window parent, int id=-1, Point pos=DefaultPosition, 
-            Size size=DefaultSize, long style=RE_MULTILINE) -> bool
+        Create(self, Window parent, int id=-1, String value=EmptyString, 
+            Point pos=DefaultPosition, Size size=DefaultSize, 
+            long style=RE_MULTILINE) -> bool
         """
         return _richtext.RichTextCtrl_Create(*args, **kwargs)
 
@@ -674,7 +675,7 @@ class RichTextCtrl(_windows.ScrolledWindow):
         SaveFile(self, String file=EmptyString, int type=RICHTEXT_TYPE_ANY) -> bool
 
         Save the contents of the document to the given filename, or if the
-        empty string is passed then to the filename set with `SetFileName`.
+        empty string is passed then to the filename set with `SetFilename`.
         """
         return _richtext.RichTextCtrl_SaveFile(*args, **kwargs)
 
@@ -1134,6 +1135,14 @@ class RichTextCtrl(_windows.ScrolledWindow):
         """SetSelectionRange(self, RichTextRange range)"""
         return _richtext.RichTextCtrl_SetSelectionRange(*args, **kwargs)
 
+    def GetInternalSelectionRange(*args, **kwargs):
+        """GetInternalSelectionRange(self) -> RichTextRange"""
+        return _richtext.RichTextCtrl_GetInternalSelectionRange(*args, **kwargs)
+
+    def SetInternalSelectionRange(*args, **kwargs):
+        """SetInternalSelectionRange(self, RichTextRange range)"""
+        return _richtext.RichTextCtrl_SetInternalSelectionRange(*args, **kwargs)
+
     def AddParagraph(*args, **kwargs):
         """AddParagraph(self, String text) -> RichTextRange"""
         return _richtext.RichTextCtrl_AddParagraph(*args, **kwargs)