summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-09 22:22:58 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-09 22:22:58 (GMT)
commite7bfc915dab99ee8f3869a99637be42f89c1c70b (patch)
treea6d00e07267275358a2625224fd1e2127d9894b5 /Mac
parenta9e3db354def12649afc4923fef431744ffbbab6 (diff)
downloadcpython-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')
-rw-r--r--Mac/Demo/PICTbrowse/ICONbrowse.py2
-rw-r--r--Mac/Demo/PICTbrowse/PICTbrowse.py2
-rw-r--r--Mac/Demo/PICTbrowse/PICTbrowse2.py2
-rw-r--r--Mac/Demo/PICTbrowse/cicnbrowse.py2
-rw-r--r--Mac/Lib/EasyDialogs.py4
5 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Demo/PICTbrowse/ICONbrowse.py b/Mac/Demo/PICTbrowse/ICONbrowse.py
index fe28564..c827fac 100644
--- a/Mac/Demo/PICTbrowse/ICONbrowse.py
+++ b/Mac/Demo/PICTbrowse/ICONbrowse.py
@@ -122,7 +122,7 @@ class MyDialog(FrameWork.DialogWindow):
self.wid.SetDialogDefaultItem(MAIN_SHOW)
self.contents = contents
self.ctl = self.wid.GetDialogItemAsControl(MAIN_LIST)
- h = self.ctl.GetControlDataHandle(Controls.kControlListBoxPart,
+ h = self.ctl.GetControlData_Handle(Controls.kControlListBoxPart,
Controls.kControlListBoxListHandleTag)
self.list = List.as_List(h)
self.setlist()
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse.py b/Mac/Demo/PICTbrowse/PICTbrowse.py
index 0771991..04d321c 100644
--- a/Mac/Demo/PICTbrowse/PICTbrowse.py
+++ b/Mac/Demo/PICTbrowse/PICTbrowse.py
@@ -100,7 +100,7 @@ class MyDialog(FrameWork.DialogWindow):
self.wid.SetDialogDefaultItem(MAIN_SHOW)
self.contents = contents
self.ctl = self.wid.GetDialogItemAsControl(MAIN_LIST)
- h = self.ctl.GetControlDataHandle(Controls.kControlListBoxPart,
+ h = self.ctl.GetControlData_Handle(Controls.kControlListBoxPart,
Controls.kControlListBoxListHandleTag)
self.list = List.as_List(h)
self.setlist()
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse2.py b/Mac/Demo/PICTbrowse/PICTbrowse2.py
index c78960c..903fd9b 100644
--- a/Mac/Demo/PICTbrowse/PICTbrowse2.py
+++ b/Mac/Demo/PICTbrowse/PICTbrowse2.py
@@ -122,7 +122,7 @@ class MyDialog(FrameWork.DialogWindow):
self.wid.SetDialogDefaultItem(MAIN_SHOW)
self.contents = contents
self.ctl = self.wid.GetDialogItemAsControl(MAIN_LIST)
- h = self.ctl.GetControlDataHandle(Controls.kControlListBoxPart,
+ h = self.ctl.GetControlData_Handle(Controls.kControlListBoxPart,
Controls.kControlListBoxListHandleTag)
self.list = List.as_List(h)
self.setlist()
diff --git a/Mac/Demo/PICTbrowse/cicnbrowse.py b/Mac/Demo/PICTbrowse/cicnbrowse.py
index b56cd13..47cd472 100644
--- a/Mac/Demo/PICTbrowse/cicnbrowse.py
+++ b/Mac/Demo/PICTbrowse/cicnbrowse.py
@@ -122,7 +122,7 @@ class MyDialog(FrameWork.DialogWindow):
self.wid.SetDialogDefaultItem(MAIN_SHOW)
self.contents = contents
self.ctl = self.wid.GetDialogItemAsControl(MAIN_LIST)
- h = self.ctl.GetControlDataHandle(Controls.kControlListBoxPart,
+ h = self.ctl.GetControlData_Handle(Controls.kControlListBoxPart,
Controls.kControlListBoxListHandleTag)
self.list = List.as_List(h)
self.setlist()
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)