xynthpy.c

来自「CS架构的多平台的GUI系统」· C语言 代码 · 共 41 行

C
41
字号
/***************************************************************************    begin                : Sat Jul 2 2005    copyright            : (C) 2005 by Alper Akcan    email                : distchx@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU Lesser General Public License as        * *   published by the Free Software Foundation; either version 2.1 of the  * *   License, or (at your option) any later version.                       * *                                                                         * ***************************************************************************/#include "xynthpy.h"extern PyTypeObject p_event_type;extern PyTypeObject p_window_type;PyMethodDef xynth_methods[] = {	{"window", wrap_window, 1},//	{"event", wrap_event, 1},	{NULL, NULL}};void initxynth (void){	PyObject *m;	if (PyType_Ready(&p_window_type) < 0) {		return;	}	p_window_type.ob_type = &PyType_Type;	m = Py_InitModule3("xynth", xynth_methods, "Xynth Windowing System");	PyModule_AddIntConstant(m, "WINDOW_MAIN", WINDOW_MAIN);	Py_INCREF(&p_window_type);	PyModule_AddObject(m, "window", (PyObject *) &p_window_type);//	PyModule_AddObject(m, "event", (PyObject *) &p_event_type);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?