Ejemplo n.º 1
0
 def menuAddLabelRoles(self, includeConceptName=False, menulabel=None):
     if menulabel is None: menulabel = _("Label Role")
     rolesMenu = Menu(self.viewFrame, tearoff=0)
     self.menu.add_cascade(label=menulabel, menu=rolesMenu, underline=0)
     from arelle.ModelRelationshipSet import labelroles
     for x in labelroles(self.modelXbrl, includeConceptName):
         rolesMenu.add_cascade(label=x[0][1:], underline=0, command=lambda a=x[1]: self.setLabelrole(a))
Ejemplo n.º 2
0
 def menuAddLabelRoles(self, includeConceptName=False, menulabel=None):
     if menulabel is None: menulabel = _("Label role")
     rolesMenu = Menu(self.viewFrame, tearoff=0)
     self.menu.add_cascade(label=menulabel, menu=rolesMenu, underline=0)
     from arelle.ModelRelationshipSet import labelroles
     for x in labelroles(self.modelXbrl, includeConceptName):
         rolesMenu.add_command(label=x[0][1:],
                               underline=0,
                               command=lambda a=x[1]: self.setLabelrole(a))
Ejemplo n.º 3
0
 def menuAddLabelRoles(self, includeConceptName=False, menulabel=None):
     if self.menu:
         try:
             if menulabel is None: menulabel = _("Label role")
             rolesMenu = Menu(self.viewFrame, tearoff=0)
             self.menu.add_cascade(label=menulabel, menu=rolesMenu, underline=0)
             from arelle.ModelRelationshipSet import labelroles
             for x in labelroles(self.modelXbrl, includeConceptName):
                 rolesMenu.add_command(label=x[0][1:], underline=0, command=lambda a=x[1]: self.setLabelrole(a))
         except Exception as ex: # tkinter menu problem maybe
             self.modelXbrl.info("arelle:internalException",
                                 _("Exception creating context label roles menu in %(title)s: %(error)s"),
                                 modelObject=self.modelXbrl.modelDocument, title=self.tabTitle, error=str(ex))
             self.menu = None
Ejemplo n.º 4
0
 def menuAddLabelRoles(self, includeConceptName=False, menulabel=None):
     if self.menu:
         try:
             if menulabel is None: menulabel = _("Label role")
             rolesMenu = Menu(self.viewFrame, tearoff=0)
             self.menu.add_cascade(label=menulabel, menu=rolesMenu, underline=0)
             from arelle.ModelRelationshipSet import labelroles
             for x in labelroles(self.modelXbrl, includeConceptName):
                 rolesMenu.add_command(label=x[0][1:], underline=0, command=lambda a=x[1]: self.setLabelrole(a))
         except Exception as ex: # tkinter menu problem maybe
             self.modelXbrl.info("arelle:internalException",
                                 _("Exception creating context label roles menu in %(title)s: %(error)s"),
                                 modelObject=self.modelXbrl.modelDocument, title=self.tabTitle, error=str(ex))
             self.menu = None