On Jun 5, 2006, at 2:52 PM, Uwe Grauer wrote:

Custom methods would get referenced from the new class.

OK, you lost me here. What new class? Right now in my mind there is only a single class: the one defined in the .cdxml file.

How should dabo know beforehand that any function would call this custom
method? That's the reason i think there should be stubs for functions
dabo would call.

We're not talking about Dabo calling the functions; we're talking about binding code to events. The code has to exist in order for this binding to occur. If the code exists somewhere outside of the class, how is the class supposed to know it's there?

If this would not work, we could just write out a new class form
dabo-generated code and the additional code which comes from the extra
code-file.

But that's easier said than done. In the .cdxml file, code is explicitly bound to the object by the XML structure. But let's say that there are 5 buttons on the second page of a 3-page pageframe that is sitting on a panel inside a frame, how would you propose that some code in a separate .py file be linked to the Hit event of the third button in that group?


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to