Permalink
Browse files

Added menu 'Analyses' in main GUI menu to select mathmatical analyses…

… stuff.
  • Loading branch information...
ldemattos committed Feb 9, 2017
1 parent 2b7d14e commit eb1bd9c6a2a15107ebb081761787d50977075724
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/GUI.py
@@ -28,6 +28,7 @@
import pylab
import src.pyComtrade as pyComtrade
import src.GUI_Data
import src.GUI_Analyses

class mainWindow():

@@ -127,6 +128,12 @@ def setMenuBar(self,window):
command=lambda: src.GUI_Data.exportData(self.comtradeObj,self.lbox_analog.curselection(),self.lbox_digital.curselection()))
self.menubar.add_cascade(label="Data", menu=self.datamenu)

# Analyses menu
self.analysesmenu = tkinter.Menu(self.menubar, tearoff=0)
self.analysesmenu.add_command(label="Compute RMS...", command=lambda: src.GUI_Analyses.calcRMS(self.comtradeObj,\
self.lbox_analog.curselection()))
self.menubar.add_cascade(label="Analyses", menu=self.analysesmenu)

# Help menu
self.helpmenu = tkinter.Menu(self.menubar, tearoff=0)
self.helpmenu.add_command(label="Project page", command=lambda: webbrowser.open(url,new=2))

0 comments on commit eb1bd9c

Please sign in to comment.