示例#1
0
 def __on_help(self, event):
     category = self.__get_selected_category()
     idx = self.__module_list_box.GetSelection()
     if idx != wx.NOT_FOUND:
         filename = self.__module_list_box.GetItems()[idx]
         loader = self.__module_dict[category][filename]
         module = loader(0)
         if isinstance(self.Parent, cpframe.CPFrame):
             self.Parent.do_help_module(module.module_name, module.get_help())
         else:
             help_text = module.get_help()
             wx.MessageBox(help_text)
示例#2
0
 def __on_help(self, event):
     category = self.__get_selected_category()
     idx = self.__module_list_box.GetSelection()
     if idx != wx.NOT_FOUND:
         filename = self.__module_list_box.GetItems()[idx]
         loader = self.__module_dict[category][filename]
         module = loader(0)
         if isinstance(self.GetParent(), cellprofiler.gui.cpframe.CPFrame):
             self.GetParent().do_help_module(module.module_name, module.get_help())
         else:
             help_text = module.get_help()
             wx.MessageBox(help_text)