

def __init__(self, app):
    super(SamplerWindow, self).__init__()
    self._app = app
    self._currentList = FeatureGrid(self._app)
    self._featureView = FeatureView()
    self._currentFeature = ObjectProperty(None, Feature)
    self._mainSplit = None
    self._navigationTree = None
    self._uriFragmentUtility = UriFragmentUtility()
    self._breadcrumbs = BreadCrumbs(self)
    self._previousSample = None
    self._nextSample = None
    self._search = None
    self.theme = None
    mainExpand = VerticalLayout()
    self.setContent(mainExpand)
    self.setSizeFull()
    mainExpand.setSizeFull()
    self.setCaption(self._TITLE)
    self.setTheme(self._app._currentApplicationTheme)
    nav = HorizontalLayout()
    mainExpand.addComponent(nav)
    nav.setHeight('44px')
    nav.setWidth('100%')
    nav.setStyleName('topbar')
    nav.setSpacing(True)
    nav.setMargin(False, True, False, False)
    logo = self.createLogo()
    nav.addComponent(logo)
    nav.setComponentAlignment(logo, Alignment.MIDDLE_LEFT)
    nav.addComponent(self._breadcrumbs)
    nav.setExpandRatio(self._breadcrumbs, 1)
    nav.setComponentAlignment(self._breadcrumbs, Alignment.MIDDLE_LEFT)
    nav.addComponent(self._uriFragmentUtility)
    self._uriFragmentUtility.addListener(UriListener(self), IFragmentChangedListener)
    self._mainSplit = HorizontalSplitPanel()
    self._mainSplit.setSizeFull()
    self._mainSplit.setStyleName('main-split')
    mainExpand.addComponent(self._mainSplit)
    mainExpand.setExpandRatio(self._mainSplit, 1)
    themeSelect = self.createThemeSelect()
    nav.addComponent(themeSelect)
    nav.setComponentAlignment(themeSelect, Alignment.MIDDLE_LEFT)
    quicknav = HorizontalLayout()
    arrows = HorizontalLayout()
    nav.addComponent(quicknav)
    nav.addComponent(arrows)
    nav.setComponentAlignment(quicknav, Alignment.MIDDLE_LEFT)
    nav.setComponentAlignment(arrows, Alignment.MIDDLE_LEFT)
    quicknav.setStyleName('segment')
    arrows.setStyleName('segment')
    self._previousSample = self.createPrevButton()
    arrows.addComponent(self._previousSample)
    self._nextSample = self.createNextButton()
    arrows.addComponent(self._nextSample)
    searchComponent = self.createSearch()
    quicknav.addComponent(searchComponent)
    menuLayout = CssLayout()
    allSamples = ActiveLink('All Samples', ExternalResource('#'))
    menuLayout.addComponent(allSamples)
    self._navigationTree = self.createMenuTree()
    menuLayout.addComponent(self._navigationTree)
    self._mainSplit.setFirstComponent(menuLayout)
    treeSwitch = self.createTreeSwitch()
    quicknav.addComponent(treeSwitch)
    self.addListener(WindowCloseListener(self, self._app), window.ICloseListener)
    self.updateFeatureList(self._currentList)

dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/SamplerApplication.py SamplerWindow.__init__/original