Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to get the margin between menu items in pyjamas or gwt?
  2. from pyjamas.ui.RootPanel import RootPanel
  3. from pyjamas.ui.Composite import Composite
  4. from pyjamas.ui.MenuBar import MenuBar
  5.  
  6. class Menubar(Composite):
  7.     def __init__(self):
  8.         Composite.__init__(self)
  9.  
  10.         menubar = MenuBar(vertical=False)
  11.         menubar.addItem("Dashboard", "")
  12.         menubar.addItem("FileInspect", "")
  13.  
  14.         self.initWidget(menubar)
  15.  
  16. RootPanel().add(Menubar())