Use GetMark if available

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-03-01 16:22:31 +00:00
parent ddc548ec77
commit b0f3dd44e4

View File

@@ -443,6 +443,10 @@ class BaseMaskedComboBox( wx.ComboBox, MaskedEditMixin ):
wx.ComboBox.Append( self, choice ) wx.ComboBox.Append( self, choice )
# Not all wx platform implementations have .GetMark, so we make the following test,
# and fall back to our old hack if they don't...
#
if not hasattr(wx.ComboBox, 'GetMark'):
def GetMark(self): def GetMark(self):
""" """
This function is a hack to make up for the fact that wx.ComboBox has no This function is a hack to make up for the fact that wx.ComboBox has no
@@ -635,6 +639,11 @@ class PreMaskedComboBox( BaseMaskedComboBox, MaskedEditAccessorsMixin ):
__i = 0 __i = 0
## CHANGELOG: ## CHANGELOG:
## ==================== ## ====================
## Version 1.3
## 1. Made definition of "hack" GetMark conditional on base class not
## implementing it properly, to allow for migration in wx code base
## while taking advantage of improvements therein for some platforms.
##
## Version 1.2 ## Version 1.2
## 1. Converted docstrings to reST format, added doc for ePyDoc. ## 1. Converted docstrings to reST format, added doc for ePyDoc.
## 2. Renamed helper functions, vars etc. not intended to be visible in public ## 2. Renamed helper functions, vars etc. not intended to be visible in public