self.analyse_matrix(DoSimi, matrix = matrix, analyse_type = 'simimatrix', dlgnb = 5)
def OnCHDReinert(self, event, matrix = None):
- if matrix is None :
- matrix = self.tree.getmatrix()
- AnalyseQuest(self, matrix, parametres = {'type' : 'reinertmatrix'}, dlg = progressbar(self, 3))
+ #if matrix is None :
+ # matrix = self.tree.getmatrix()
+ #AnalyseQuest(self, matrix, parametres = {'type' : 'reinertmatrix'}, dlg = 3)
+ self.analyse_matrix(AnalyseQuest, matrix = matrix, analyse_type = 'reinertmatrix', dlgnb = 5)
def OnStudent(self, event):
try:
item = self.parent.matrix_menu.FindItemByPosition(i)
itemid = item.GetId()
itemtext = item.GetText()
- menu.Append(itemid, itemtext)
+ if item.IsSubMenu() :
+ nmenu = wx.Menu()
+ for val in item.GetSubMenu().GetMenuItems() :
+ nmenu.Append(val.GetId(), val.GetText())
+ menu.AppendMenu(itemid, itemtext, nmenu)
+ else :
+ menu.Append(itemid, itemtext)
split = wx.Menu()
splitfromvar = split.Append(-1, _(u"Split from variable").decode('utf8'))
menu.AppendMenu(-1, _(u"Split matrix").decode('utf8'), split)