On Nov 10, 2005, at 1:53 PM, Paul McNett wrote:

Thanks, good demo. Observations:

+ It takes a full minute for the dropdown to be populated (linux)

Wow! On my Mac, it's instantaneous; on Windows it takes about a second.

+ When you press the up arrow on the spinner before populating the dropdown, a recursion in the listbox happens (setting index > length)

Yeah, that's unfortunate. Normally, you'd populate the list control before displaying the form, but I wanted the population to be done in the demo.

+ Why do you both save the self.btn attr as well as the RegID of button? self.btn and self.button refer to the same object.

Why not? It certainly doesn't hurt anything. The fact that RegIDs allow you to refer to the object doesn't mean that the way that most people who are used to wxPython do things won't still work.

+ line 78's eval() can be replaced with:
    ret = getattr(self.btn, val).__doc__

OK. I was just playing around trying to find something interesting to use to show binding, and kinda stumbled onto using __doc__ as something remotely interesting.

+ When I push up arrow on the spinner after populating, I get:
Dabo Error Log: Thu Nov 10 10:51:33 2005: End-around call of event (<class 'dabo.dEvents.ValueChanged'>, (), {})

and nothing seems to change, other than the first item in the list (AcceptsFocus) is no longer there, replaced by a separator.

Again, not what I see on Mac or Win. On both, clicking the Up arrow button increments the value in the spinner, and the dropdown's selected value changes to the corresponding position. And yeah, I get that end-around message too (see my previous post).

+ I see now why you wanted to raise Hit when the value changed. I'd suggest instead to revert that change and respond to ValueChanged instead, which is the intent of that event.

This is the case only in dropdowns; on other list controls, you can change the value without firing Hit.


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




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

Reply via email to