On Saturday 01 December 2007 11:40 am, johnf wrote:

> import dabo
> dabo.ui.loadUI('wx')
>
> class MainForm(dabo.ui.dForm):
>
>       def afterInit(self):
>               self.Caption = "File Tutorial"
> # I have added a sizer to show you how to create and call the layout
> # but at this point it is not strictly needed.
>               self.Sizer = vs=dabo.ui.dSizer("vertical")
>               self.layout()
>
>
> if __name__ == "__main__":
>       app = dabo.dApp()
>
>       app.BasePrefKey = "fileTutor"
>       app.setAppInfo("appName", "File Tutorial ")
>
> # The app starts by running "MainForm"
>       app.MainFormClass = MainForm
>
> #you have to start the event loop
>       app.start()
>
>
> Run the above code and you will get a simple form with a title and the
> built-in Dabo menu.
>
> Ok lets add a little more to display a panel
>
> immediately after
> self.Sizer =vs= dabo.ui.dSizer("vertical")
>
> add
> vs.append(dabo.ui.dPanel(self,BackColor = "green))
>
> Run again.
>
> This should give you a little green box in the upper left hand corner.
>
I am not getting the panel, even after completing the quotes on "green".

For the record my setup is:

Platform: GTK
Python Version: 2.4.3 on linux2
Dabo Version: Version 0.8.1s; Revision 3252
UI Version: 2.8.7.1 on wxGTK (gtk2)


-- 
Adrian Klaver
[EMAIL PROTECTED]


_______________________________________________
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]

Reply via email to