def __init__(self): #DOM.setAttribute( self.element, "class", "vi_topbar") super(TopBarWidget, self).__init__() self["class"] = "vi_topbar" anav = html5.Nav() anav["class"].append("iconnav") self.iconnav = html5.Ul() #self.logoContainer = html5.Div() #self.logoContainer["class"].append("logo") #self.appendChild( self.logoContainer ) self.sinkEvent("onClick") self.modulH1 = html5.H1() self.modulH1._setClass("module") self.appendChild(self.modulH1) self.modulContainer = html5.Div() self.modulContainer["class"].append("currentmodul") self.appendChild(self.modulContainer) self.modulImg = html5.Label() self.modulContainer.appendChild(self.modulImg) self.moduleName = html5.Span() self.modulContainer.appendChild(self.moduleName) anav.appendChild(self.iconnav) self.appendChild(anav) DeferredCall(self.setTitle, _delay=500)
def __init__(self, *args, **kwargs): super(AdminScreen, self).__init__(*args, **kwargs) self["id"] = "CoreWindow" conf["mainWindow"] = self self.topBar = TopBarWidget() self.appendChild(self.topBar) self.workSpace = html5.Div() self.workSpace["class"] = "vi_workspace" self.appendChild(self.workSpace) self.moduleMgr = html5.Div() self.moduleMgr["class"] = "vi_wm" self.appendChild(self.moduleMgr) self.moduleList = html5.Nav() self.moduleList["class"] = "vi_manager" self.moduleMgr.appendChild(self.moduleList) self.moduleListUl = html5.Ul() self.moduleListUl["class"] = "modullist" self.moduleList.appendChild(self.moduleListUl) self.viewport = html5.Div() self.viewport["class"] = "vi_viewer" self.workSpace.appendChild(self.viewport) self.logWdg = Log() self.appendChild(self.logWdg) self.currentPane = None self.nextPane = None # Which pane gains focus once the deferred call fires self.panes = [ ] # List of known panes. The ordering represents the order in which the user visited them. self.userLoggedOutMsg = None # Register the error-handling for this iframe le = eval("window.top.logError") w = eval("window") w.onerror = le w = eval("window.top") w.onerror = le