Hi Roman

Basically you would need two classes in dabo, dMenuBar and dMenu :

def afterInit(self):    # Form
    class MyFileMenu(dabo.ui.dMenu):
        def afterInit(self):
            def welcome(self):
                dabo.ui.info("Welcome to Dabo !!!")
            self.Caption = "&File"
            self.append("Hello", bindfunc=welcome)

    class MyMenuBar(dabo.ui.dMenuBar):
        def afterInit(self):
            self.appendMenu(MyFileMenu(self))

    self.MenuBar = MyMenuBar()

I hope that this helps.
Thanks.
-- 
Jaime Mora Ramones
Tantoyuca Veracruz, Mexico



"Roman Milokumov" <[EMAIL PROTECTED]> escribió
en el mensaje
news:[EMAIL PROTECTED]
> Hello, all.
> Sorry for my English.
> I don't know all history of Dabo designing.
> But now I have this question:
> 1. Have somebody any ideas about such thing as menu template?
> This subject also touch Application(or Library, Module, Plugin etc)
> Templates, too, of course .
> But, may be anybody know or heard about such thing?
> 2. Does it's(Dabo) menu designed rationally? With which ideas in head?
> If my question is uncensored, please, excuse me.
> ROM
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>




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

Reply via email to