diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:22:58 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-09 22:22:58 (GMT) |
commit | e7bfc915dab99ee8f3869a99637be42f89c1c70b (patch) | |
tree | a6d00e07267275358a2625224fd1e2127d9894b5 /Mac/Lib | |
parent | a9e3db354def12649afc4923fef431744ffbbab6 (diff) | |
download | cpython-e7bfc915dab99ee8f3869a99637be42f89c1c70b.zip cpython-e7bfc915dab99ee8f3869a99637be42f89c1c70b.tar.gz cpython-e7bfc915dab99ee8f3869a99637be42f89c1c70b.tar.bz2 |
Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/EasyDialogs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py index e24bc8b..cfd55a1 100644 --- a/Mac/Lib/EasyDialogs.py +++ b/Mac/Lib/EasyDialogs.py @@ -326,7 +326,7 @@ ARGV_CMDLINE_DATA=14 ## MacOS.HandleEvent(ev) ## def _setmenu(control, items): - mhandle = control.GetControlDataHandle(Controls.kControlMenuPart, + mhandle = control.GetControlData_Handle(Controls.kControlMenuPart, Controls.kControlPopupButtonMenuHandleTag) menu = Menu.as_Menu(mhandle) for item in items: @@ -338,7 +338,7 @@ def _setmenu(control, items): label = label[:-1] menu.AppendMenu(label) ## mhandle, mid = menu.getpopupinfo() -## control.SetControlDataHandle(Controls.kControlMenuPart, +## control.SetControlData_Handle(Controls.kControlMenuPart, ## Controls.kControlPopupButtonMenuHandleTag, mhandle) control.SetControlMinimum(1) control.SetControlMaximum(len(items)+1) |