On Jan 14, 2013, at 12:37 PM, Carey Gagnon <[email protected]> wrote:

> I have implemented standard toolbars without any issue as there were
> example to follow. I see in the API guide that there is not only the
> appendButton that I have been using succesfully but there is also an
> appendControl:
> 
> *appendControl*(self, control)
> Adds any Dabo control to the toolbar
> 
> Does anyone have an example. I use appendButton like this:
> 
> tb.appendButton("Save", pic="some pic for the button" % iconPath,
>            toggle=False, OnHit=do something, tip="tool tip text",
>            help="help text here")
> 
> How do I use appendControl?

        You create the control with the toolbar as the parent, and then append 
it.

        I see two examples of it in the demo code, both in games. Look at the 
examples in the Minesweeper and Montana games.


-- Ed Leafe

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to