"this" was just some logical evaluation.
I modified the dgrid.TestForm as shown below to test and same occurs
class TestForm(dabo.ui.dForm)
def setdynvis(self):
return(self.sampleGrid.Editable)
def afterInit(self)
self.BackColor="khaki"
g = self.grid =...
g.DynamicVisible=self.setdynvis
...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of johnf
Sent: Wednesday, November 12, 2008 5:58 PM
To: Dabo Users list
Subject: Re: [dabo-users] DynamicVisble on dGrid not firing.
On Wednesday 12 November 2008 12:34:46 pm [EMAIL PROTECTED] wrote:
> Except when initializing, the DynamicVisible method never fires. I am
> using code like...
>
> Mygrid=dabo.ui.dGrid(self,DynamicVisible=self.Form.showmyGrid)
>
> Also tried
>
> Mygrid=dabo.ui.dGrid(self)
> Mygrid.DynamicVisible=self.Form.showmyGrid
>
> def showmyGrid(self):
> ok2show=True
> if this:
> ok2show=False
> return ok2show
>
> Any suggestions?
>
> Thanks,
> Larry Long
Any chance you are mixing python and VFP -> 'if this'
Unless you have defined 'this' the python script might fail without you
seeing it - are you debugging from wing? Are you sure showmyGrid is
returning True?
--
John Fabiani
[excessive quoting removed by server]
_______________________________________________
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/[EMAIL PROTECTED]