When activating an item from the menus and sub-menus in menubar, there are two possibilities :
__xdata__items__
is). In that case, the createDialog
classmethod is called on the class. The signature of this class method
is explained in section 8.1.1. Thus, if the class does not
define the createDialog
method, the default implementation defined
in XObject is called ...
target = item
) or is defined but does not correspond to
a XObject subclass (in that case target = getattr(mod, item)
).
In those two cases, the function mod.createDialog(parent, target)
is launched where parent
is the main window. Note that if mod.createDialog
does not exist, a warning is launched.