Corrected modules names in generated code

master
Yevgen Muntyan 2006-06-01 13:52:00 -05:00
parent 5c9cac8e02
commit e34b6f1ce1
6 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@ headers
#include "moopython/pygtk/moo-pygtk.h"
%%
modulename _moo_app
modulename moo.app
%%
import gtk.Window as PyGtkWindow_Type
import gtk.Widget as PyGtkWidget_Type

View File

@ -17,7 +17,7 @@ headers
%%
modulename _moo_edit
modulename moo.edit
%%
import gtk.Widget as PyGtkWidget_Type
import gtk.TextView as PyGtkTextView_Type

View File

@ -29,7 +29,7 @@ atom_from_pyobject(PyObject *object)
%%
modulename _moo_term
modulename moo.term
%%
import gtk.Widget as PyGtkWidget_Type
import gtk.Adjustment as PyGtkAdjustment_Type

View File

@ -26,7 +26,7 @@ void _moo_utils_add_constants (PyObject *module,
const char *strip_prefix);
extern PyMethodDef _moo_utils_functions[];
static char *moo_utils_module_doc = (char*)"_moo_utils module.";
static char *moo_utils_module_doc = (char*)"__moo_utils__ module.";
#define add_constant(mod_,name_,val_) PyModule_AddStringConstant (mod, (char*) name_, (char*) val_)
@ -55,7 +55,7 @@ _moo_utils_mod_init (void)
pyg_register_boxed_custom (MOO_TYPE_PY_OBJECT, pyobj_from_gval, gval_from_pyobj);
mod = Py_InitModule3 ((char*) "_moo_utils", _moo_utils_functions, moo_utils_module_doc);
mod = Py_InitModule3 ((char*) "__moo_utils__", _moo_utils_functions, moo_utils_module_doc);
PyImport_AddModule ((char*) "moo.utils");
if (!mod)

View File

@ -1,8 +1,8 @@
"""moo.utils module"""
import _moo_utils as _utils
import __moo_utils__ as _utils
import gtk as _gtk
import gobject as _gobject
from _moo_utils import *
from __moo_utils__ import *
def _activate(action, callback, window):

View File

@ -28,7 +28,7 @@ headers
%%
modulename _moo_utils
modulename moo.utils
%%
import gtk.Window as PyGtkWindow_Type
import gtk.Widget as PyGtkWidget_Type