Esempio n. 1
0
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()
Esempio n. 2
0
def getAppletContext():
	return Guess.getAppletContext()
Esempio n. 3
0
def getJythonConsole():
	return Guess.getJythonConsole()
Esempio n. 4
0
def setSynchronous(state):
	Guess.setSynchronous(state)
Esempio n. 5
0
def setMTF(state):
	Guess.setMTF(state)
Esempio n. 6
0
def getSynchronous():
	return Guess.getSynchronous()
Esempio n. 7
0
def getMTF():
	return Guess.getMTF()