On 30/05/2013 at 09:38, xxxxxxxx wrote:
Originally posted by xxxxxxxx
The problem with this is that if I try to use the example from the SDK, I get a crash at startup
The example is this one:
def Message(self, msg, result) :
return GeDialog.Message(self, msg, result)
Of course I would need to perform the check for msg[c4d.BFM_SCROLLGROUP_SCROLLED] before returning. But even the barebones code copied from the SDK produces a crash.
it crashes most likely because you have not imported GeDialog in a global context. Try
return c4d.gui.GeDialog.Message(msg, result)instead (you have still to import
gui of course. this is working just fine for me. the gedialog message especially and message
methods generally are quite bug infested since r14 in python. they tend to be super crashy
or destroy your layout if you do not return a proper return value.
edit : yeah of course in the dialogs class.