summaryrefslogtreecommitdiffstats
path: root/Mac/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-06 00:30:45 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-06 00:30:45 (GMT)
commit3469e997b4cab1927737d45132b416efc17916bb (patch)
treefd6637a5dc712aba556c446e019159e2c8c70f28 /Mac/Include
parentc204c70c1a8a581ea0458657e81a6716404863f5 (diff)
downloadcpython-3469e997b4cab1927737d45132b416efc17916bb.zip
cpython-3469e997b4cab1927737d45132b416efc17916bb.tar.gz
cpython-3469e997b4cab1927737d45132b416efc17916bb.tar.bz2
Python about box implemented. Slightly convoluted, since (a) we have
to override an internal sioux routine and (b) we have to override the "about sioux" menuitem after sioux has created its menus.
Diffstat (limited to 'Mac/Include')
-rw-r--r--Mac/Include/macglue.h2
-rw-r--r--Mac/Include/pythonresources.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index 929e9ca..035b51f 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -63,6 +63,8 @@ PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
void PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, if possible */
+void PyMac_InitMenuBar(void); /* Setup menu bar as we want it */
+
int PyMac_FindResourceModule(char *, char *); /* Test for 'PYC ' resource in a file */
PyObject * PyMac_LoadResourceModule(char *, char *); /* Load 'PYC ' resource from file */
diff --git a/Mac/Include/pythonresources.h b/Mac/Include/pythonresources.h
index 93e046b..dd847ff 100644
--- a/Mac/Include/pythonresources.h
+++ b/Mac/Include/pythonresources.h
@@ -56,6 +56,9 @@
/* Dialog for 'Bad preference file' */
#define BADPREFFILE_ID 135
+/* About box */
+#define ABOUT_ID 136
+
/*
** The following are valid both in the binary (or shared library)
** and in the Preferences file.
@@ -83,6 +86,9 @@
#define POPT_KEEPNORM 5
#define POPT_KEEPERR 6
+/* Our menu bar */
+#define MENUBAR_ID 128
+
/* From macgetpath.c: */
void PyMac_PreferenceOptions Py_PROTO((int *inspect, int *verbose, int *suppress_print,
int *unbuffered, int *debugging, int *keep_normal,