def reloadWidgets( self): # should have a way to set the desired tab location self.widgetRegistry = orngRegistry.readCategories() redREnviron.addOrangeDirectoriesToPath(redREnviron.directoryNames) signals.registerRedRSignals() redRGUI.registerQTWidgets() self.canvas.createWidgetsToolbar(self.widgetRegistry) self.searchBox2.setItems(redRObjects.widgetRegistry()['widgets'])
def reloadWidgets(self): # should have a way to set the desired tab location redRObjects.readCategories(force=True) redREnviron.addOrangeDirectoriesToPath(redREnviron.directoryNames) signals.registerRedRSignals() redRGUI.registerQTWidgets() self.canvas.createWidgetsToolbar(redRObjects.widgetRegistry()) self.searchBox2.setItems(redRObjects.widgetRegistry()['widgets'], redRObjects.widgetRegistry()['templates']) self.searchBox3.setItems(redRObjects.widgetRegistry()['widgets'], redRObjects.widgetRegistry()['templates'])
# Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os # #print os.path.abspath('../') os.chdir(os.path.abspath('../')) #print os.path.abspath('canvas') sys.path.append(os.path.abspath('canvas')) import redREnviron directoryNames = redREnviron.__getDirectoryNames(os.path.abspath('')) redREnviron.directoryNames = directoryNames redREnviron.addOrangeDirectoriesToPath(directoryNames) # import orngDlgs # from orngDlgs import SignalDialog from sphinx.ext import autodoc class DocsonlyMethodDocumenter(autodoc.MethodDocumenter): def format_args(self): return None autodoc.add_documenter(DocsonlyMethodDocumenter) # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.'))