On May 4, 2007, at 1:34 PM, bruce dockeray wrote:
> I've been playing around with dabo and have created a nice screen
> design
> using the class designer. There were one or two idiosyncrasies with
> the xml
> which i ironed out by hand and i find that if i run the code below
> i get
> myself a pretty screen. But... part of my form design includes a
> button.
> Where do i put the onhit code ? I would rather include it within my
> program
> rather than as part of the cdxml file. Where and how is all i need
> to know.
Code for classes by default is stored separately from the cdxml.
Example: if your class design is stored in fleep.cdxml, any
associated code will be stored in the same directory in fleep-
code.py. This enables you to edit the code with your favorite Python
editor.
If that isn't what you need, you can just bind the Hit event of the
button to a more generic reference, such as the app object. Or you
could use the onHit code in the Class Designer to call a method in
your external program. If you explain a bit more about what it is in
your program that needs to be called, I could give you more specific
answers.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]