summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-05-04 15:43:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-05-04 15:43:00 (GMT)
commit301f3f6baa074f8ea4d430fb73ebc84a37b465bd (patch)
tree34ef14a68143fefefbdbfd973636de2ab7a44207 /Mac/Lib
parent990f5c6c987359694dbf951cdd3ffdf2e10e64e4 (diff)
downloadcpython-301f3f6baa074f8ea4d430fb73ebc84a37b465bd.zip
cpython-301f3f6baa074f8ea4d430fb73ebc84a37b465bd.tar.gz
cpython-301f3f6baa074f8ea4d430fb73ebc84a37b465bd.tar.bz2
Added accessor for kControlListBoxDoubleClickPart
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/lib-toolbox/ControlAccessor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/ControlAccessor.py b/Mac/Lib/lib-toolbox/ControlAccessor.py
index 93805ab..94cc70e 100644
--- a/Mac/Lib/lib-toolbox/ControlAccessor.py
+++ b/Mac/Lib/lib-toolbox/ControlAccessor.py
@@ -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