Confused about Async Dialog
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/06/2011 at 09:23, xxxxxxxx wrote:
Yea, I know, I ask much about Async Dialogs.
But now, I am pretty pretty confused.I'm currently writing DescEdit and when I open my Dialog asynchronious, it DOES stays opened. Even it is **not ** an attribute of my CommandData !
This is it:class OpenDescEdit(CommandData) : iconPath = join(dirname(__file__), "src", "icon.tif") # Initialise Icon icon = BaseBitmap() icon.InitWith(iconPath) id = 100000121 # not registered at Plugincafe.com def Execute(self, doc) : dlg = ContainerDialog() dlg.Open() return True @classmethod def Register(cls) : data = { "id": cls.id, "str": "Description Editor", "info": c4d.PLUGINFLAG_COMMAND_HOTKEY, "icon": cls.icon, "help": "An Editor to create Descriptionfiles for C++ and Python Plugins.", "dat": cls(), } RegisterCommandPlugin( **data )
I don't want to provide more source code.
I have subclassed a Subclass of GeDialog for the ContainerDialog. May this be theReason ?
- GeDialog - RootDialogWithListView - ContainerDialog
It does also stay open when I am importing the DescEdit source into the Scriptmanager and Open the Dialog there, asynchronious.
Thanks,
Niklas