mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Added accessor for kControlListBoxDoubleClickPart
This commit is contained in:
parent
990f5c6c98
commit
301f3f6baa
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,8 @@ _codingdict = {
|
|||
kControlEditTextPasswordTag: (None, None, None),
|
||||
|
||||
kControlPopupButtonMenuIDTag: ("h", None, None),
|
||||
|
||||
kControlListBoxDoubleClickTag: ("b", None, None),
|
||||
}
|
||||
|
||||
def SetControlData(control, part, selector, data):
|
||||
|
@ -49,5 +51,7 @@ def GetControlData(control, part, selector):
|
|||
data = struct.unpack(structfmt, data)
|
||||
if decoder:
|
||||
data = decoder(data)
|
||||
if type(data) == type(()) and len(data) == 1:
|
||||
data = data[0]
|
||||
return data
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue