StepByStepGuide-Italiano

A more comprehensive guide is now available: PyCon 2010 Tutorial. In particular, see the Creating a Simple Application section.

This is an example of some very basic (and very old, outdated?) code to get an app with a single form up and running in Dabo. (It actually brings up two forms. See the links above instead.)

import dabo
dabo.ui.loadUI("wx")


def main():
        app = dabo.dApp()
        app.setup()
        # instantiate the form
        form = dabo.ui.dForm(app.MainForm, Caption="Hello, Dabo users!")
        # Add a text box
        form.addObject(dabo.ui.dTextBox, "tbox")
        form.tbox.Value = "Cool stuff!"
        form.tbox.FontBold = True
        # show the form
        form.Show(True)
        app.start()

if __name__ == '__main__':
        main()

This sample can also be found in tutorial/basicForm.py (where is that file?). So that was just a little program that shows how to get a UI to display.


A good next step is AppWizard. Figure on 30 min.

Then sit back and watch some Screencasts.