> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dave Crozier
> Anyhow I have a basic problem of misunderstanding here I
> think regarding how you access objects in Python/Dabo.
>
> Assuming I create a form Myform (a dabo.ui.dForm) and I thene
> create objects on the form called cmdButton1, cmdButton2 etc.
>
> Q1. After I have created these objects I can see them as
> cmdButton1 and so
> on- no problem. Shouldn't I also be able to see them as
> self.cmdButton or am I thinking too much in a VFP way as in
> "Thisform.<object name>"?
Not uless you explicitly create the object as self.myObject. Otherwise
the button is bound to the name in the local (function) scope, and the
binding is 'lost' when the function exits. The button will still exist,
but will not be a property of the class.
Basically you want to do this:
self.cmdButton = wx.Button(...) #or Dabo equivalent
Rather than:
cmdButton = wx.Button(...)
>
> Q2. If I have a form class method (for a lack of a better
> description) called Tester() coded in the form class
> definition, how do I reference these previous form objects by
> name? I only seem to be able to refer to them using
> self.Children[n] (n>=0). What am I doing wrong? I can see
> "self" as Myform so why can't I see them as Myform.cmdButton1
> or self.cmdButton1?
See above.
>
> Q3. AAssuming I get an answer to Q2 if I first create a panel
> and then add objects to that panel as I would a container in
> VFP, how would I see the objects then as opposed to use the
> form self.Children[n].Children[p] in hierarchical way.
Same answer. If you want to refer to an object as a property of a
class, you have to at some point say self.object = ...
>
> I know this is a really really basic question (sorry!) but I
> can't seem to fathom it out.
>
> Dave Crozier
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe
> Sent: 03 January 2007 13:07
> To: Dabo Users list
> Subject: Re: [dabo-users] It Must Be A Sign from on High - Hallelujah
>
> On Jan 3, 2007, at 4:21 AM, Dave Crozier wrote:
>
> > Well, here in the UK, my beloved Football Team Manchester City
> > (famed for
> > having great potential but no consistency and having not won
> > anything since
> > I were a lad) have just won 3 games on the trot and that is real
> > progress
> > believe me and lo and behold they have a super young star midfield
> > player
> > and his name:
> >
> > Ousmane Dabo
>
> Nice name - it has a much better ring than 'Ousmane Visual
> Studio'. ;-)
>
> I had seen that name on some of the football sites I read, but
> haven't had a chance to see him play yet. They do have an EPL
> highlight show that is on at odd hours here; I should probably TiVo
> it so that I may catch a glimpse of him.
>
> > It surely must be a sign from above that I need to now look VERY
> > closely at
> > all the work that Ed, Paul and the rest of you guys are doing,
>
> Actually, we paid him to change his name to 'Dabo',
> using some of
> the millions in funding we have received.
>
> Wait - guess I need more caffeine - I'm still dreaming.
>
> > so I've
> > downloaded all the stuff as per the Wiki notes and I'm on my way.
> > I've even
> > allocated a live project to use Dabo on here at work.
> >
> > So, stand by for lots of "Newbie" type questions guys!
>
> No problem. Be sure to ask sooner rather than later.
> And if it isn't
>
> too much trouble, could you write up your experiences/impressions?
> Especially the negative stuff, since that's what we really need to
> work on!.
>
> > Hallelujah! I Believe! <BG>
>
> Be careful, or we might start tithing! ;-)
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.16.3/614 - Release
> Date: 02/01/2007 14:58
>
>
>
>
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users