This one's for the lurkers.

1) start a python prompt
2) enter the following 2 lines of python:

import dabo
dabo.dApp().start()

3) in the Dabo Application window that pops up, start the command window (Ctrl+D or find it in the menu system)

4) in the command window, type the following line of python:

tb = self.addObject(dabo.ui.dTextBox)

5) notice that in the upper-left corner of the main window, an empty textbox has appeared. Type the following lines:

tb.Value = "Hiya!"
tb.FontBold = True
tb.FontItalic = True
tb.BackColor = "grey"
tb.Left = 50
tb.Top = 100
tb.Width = 300
print tb.Value

Writing UI apps in Dabo consists of knowing the available objects available, and then the available properties, events, and methods for each object. Overall documentation is lacking, but we've actually done a fair job of writing documentation strings for properties, events, and methods, and the command window can help you figure out the available options, due to the command completion and context help.

Enjoy, and ask questions please!

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to