X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53aa7709e08bb3cdaa8ec5c4977f32e817aff7d6..bc8e3eadaf1d794cb05e4f88bc8dc206d4d43bc4:/wxPython/src/gtk/_controls.py?ds=sidebyside diff --git a/wxPython/src/gtk/_controls.py b/wxPython/src/gtk/_controls.py index 975e67ba2f..8e84e2809b 100644 --- a/wxPython/src/gtk/_controls.py +++ b/wxPython/src/gtk/_controls.py @@ -680,6 +680,15 @@ class ComboBox(_core.Control,_core.ItemContainer): """ return _controls_.ComboBox_SetMark(*args, **kwargs) + def GetMark(*args, **kwargs): + """ + GetMark(self) -> (from, to) + + Gets the positions of the begining and ending of the selection mark in + the combobox text field. + """ + return _controls_.ComboBox_GetMark(*args, **kwargs) + def SetStringSelection(*args, **kwargs): """ SetStringSelection(self, String string) -> bool @@ -4813,7 +4822,7 @@ class ListCtrl(_core.Control): def IsSelected(self, idx): '''return True if the item is selected''' - return self.GetItemState(idx, wx.LIST_STATE_SELECTED) != 0 + return (self.GetItemState(idx, wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED) != 0 def SetColumnImage(self, col, image): item = self.GetColumn(col)