Looks very straightforward and logical - many thanks. If I have any probs 
I'll be back in touch.
         Rodgy
----- Original Message ----- 
From: "Ed Leafe" <[email protected]>
To: "Dabo Users list" <[email protected]>
Sent: Wednesday, December 17, 2008 2:36 PM
Subject: Re: [dabo-users] Multiple Forms


> On Dec 16, 2008, at 9:20 PM, Roger Lovelock wrote:
>
>>  This must be simple, but my ignorance of dabo/wx and inability to
>> find any simple examples is holding me up!
>>  I have an initial form and a second form developed in ClassDesigner
>> (both exist in the same ui folder). I want to click a button on the
>> first form making it invisible, displaying the second form for data
>> entry etc, then on closing the second form, the first to become
>> visible again. Are there any simple examples anywhere like this (or
>> alternatively some sample code much appreciated) ?
>
>
> OK, *assuming* that you have ui/A.cdxml and ui/B.cdxml off of the
> HomeDirectory of the app, and you want to hide A and show B, you would
> do something like this:
>
> In the button on A:
>
> def onHit(self, evt):
> self.Form.showB()
>
> In the form A:
>
> def showB(self):
> self.hide()
> b = dabo.ui.createForm("B.cdxml", show=True, parent=self)
>
> In form B:
>
> def onClose(self, evt):
> self.Parent.show()
>
>
> If that's confusing or unclear, let me know and I'll explain further.
>
>
> -- Ed Leafe
>
>
>
>
>
[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/7d252cab9c4e419ca1b398b6b037e...@roger

Reply via email to