Kelie wrote:
> hello,
> 
> what did i do wrong in the code below? i wanted to show a label, a
> button on a form, but they're not shown when form is displayed. i
> guess the error is in the sizers.

You need to add the pnl to the Form's sizer:
         self.Sizer.append1x(pnl)

> another question: does every dForm have the standard menu "File",
> "Edit", "View" and "Help"? how do i modify the menu items? or what if
> i don't want menu for very simple form?

By default, every form gets that menu. It is defined in 
ui/uiwx/dBaseMenuBar, and you can modify it using calls like 
appendMenu(), appendItem(), removeItem(), etc. Or, you can define your 
own and drop it in using:

class MyForm(dabo.ui.dForm):
        def initProperties(self):
                self.MenuBar = MyMenuBar()

Or if you want no menubar:

self.MenuBar = None



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

Reply via email to