I joined this list a long time ago when Dabo was first starting but 
then left 
because I stopped using Dabo, but now I'm taking another shot.

        I'm having sort of the same problem I had before, which is that I can't 
find 
any information on how to set up simple GUI apps that DON'T require a database 
or a large collection of "records", but just involve a set of GUI widgets that 
interact with one another.

        What I'm trying to do right now is create a small app that works sort 
of like a 
tiny spreadsheet.  I want a few spinner boxes with numbers in them, and I want 
to be able to twiddle the numbers and have some other text in the window update 
based on some functions I specify, and maybe a few buttons and radio buttons 
that I can hit to toggle between a few different behaviors.

        I was pleased at how quickly I was able to set up a basic app by 
copying from 
the demo scripts, but I noticed a few things.

        In simpleDemo2.py, I see that the slider's DataSource is set to the 
Caption of 
the label that displays the slider value.  But this seems backwards to me --- 
it 
seems like what's really happening is the label is getting its Caption from the 
slider value.  Then I found out that I can do a DynamicCaption so it does 
exactly that, but I'm curious what is going on with this setup in the demo.

        At first I started thinking I could use a bunch of DynamicCaptions and 
stuff to 
get certain widgets to update based on the state of other widgets, but then I 
thought that would get really unwieldy.  If I understand correctly, this is 
what 
a bizObj is for --- to serve as a sort of manager for the data from various 
widgets.  What I'd like is to have an object (a bizObj?) that is linked to the 
widgets, so that, for instance, the current value of my number spinner is 
stored 
in myObj.spinValue and the current value of some other caption in the window is 
taken from myObj.getLabelText (which I can write as a method to manipulate the 
spinner data and output the value I want).  However, I can't find any 
documentation that says "here is how you link a bizObj to a bunch GUI controls, 
and here is how you set up some GUI controls to put their data into the bizObj 
and others to take data out".  All the bizObj stuff I see filled with database 
references that I'm not interested in for this application.

        So, how can I set up such a system?

Thanks, 
-- 
--Brendan Barnwell
"Do not follow where the path may lead.  Go, instead, where there is no path, 
and leave a trail."
        --author unknown


_______________________________________________
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]

Reply via email to