Ed Leafe wrote:
> On Apr 19, 2007, at 7:42 PM, Carl Karsten wrote:
>
>> In DaboDemo, the text box doesn't seem to be any Data binding
>> examples, right?
>> This seems like a good place for it.
>
> The textbox demo is pretty basic: just what the test code in
> dTextBox does.
>
>> Which still leaves me wondering: where is an example of it?
>
> Did you watch the PyCon presentation this year?
I was only 1/2 watching anything. The other 1/2 was making sure all 3 rooms
had
something to watch :)
> Check out part 3 of
> the video, which shows data binding to the image control. In
> DaboDemo, check out the dGrid demo, which has several controls bound
> to the grid properties, or the dImage control, which is what I used
> in the PyCon session, or the checkbox on the dSlider demo, or the
> dToggleButton demo, or the dTreeView demo, or either of the two sizer
> demos.
Those all seem to bind to self.something, which I don't think helps with the
cdxml. maybe Demo needs a cdxml example, with a very basic (like 1 label one
textbox) cdxml and show how to bind controls in it to some other object.
>
> I think you picked one of the few demos that *doesn't* use data
> binding.
That seemed like the obvious one. figured if it didn't have it, the rest
wouldn't either.
More on UI when I get the BO working.
I made a BO prop:
class uLoopBO(dabo.biz.dBizobj):
def _getHost(self):
return self.Host
def _setHost(self, val):
self.Host=val
Host = property(_getHost, _setHost, None,
_("""Hostname of sql database server"""))
def initProperties(self):
self.host = 'localhost'
I see to instantiate one of these, I need to create the connection first?
class dBizobj(dObject):
def __init__(self, conn, properties=None, *args, **kwargs):
cf = self._cursorFactory = conn
I was going to have a BO method create the connection once the user had entered
in the parameters. might even write a unit test for this part. so how do I get
the BO created?
Carl K
_______________________________________________
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]