def initMenu(): global glzz tmenu = JMenu("testQ") smellv = JMenuItem("smell view") smellv.actionPerformed = lambda event : SmellView(glzz).go() tmenu.add(smellv) radialv = JMenuItem("radial suite view") radialv.actionPerformed = lambda event : RadialSuiteView(glzz).go() tmenu.add(radialv) treesv = JMenuItem("tree suite view") # treesv.actionPerformed = lambda event : displayTreeSuiteView(glzz) treesv.actionPerformed = lambda event : TreeSuiteView(glzz).go() tmenu.add(treesv) tmenu.add(tcMenu()) smellp = JMenuItem("smell pie") smellp.actionPerformed = lambda event : plotSmellFrequency() tmenu.add(smellp) gbar = Guess.getMainUIWindow().getGMenuBar() gbar.add(tmenu) gbar.getMenu(3).removeAll() # deface the layout menu gbar.revalidate() gbar.repaint()
def getAppletContext(): return Guess.getAppletContext()
def getJythonConsole(): return Guess.getJythonConsole()
def setSynchronous(state): Guess.setSynchronous(state)
def setMTF(state): Guess.setMTF(state)
def getSynchronous(): return Guess.getSynchronous()
def getMTF(): return Guess.getMTF()