def toolReselected(self):
        """
        Called on reselecting the brush.
        Makes a blockpicker show up for the Main Block of the brush mode.
        """
        if not self.panel:
            self.toolSelected()
        key = getattr(self.brushMode, 'mainBlock', 'Block')
        wcb = getattr(self.brushMode, 'wildcardBlocks', [])
        aw = (key in wcb)
        #if key in wcb:
        #    aw = True
        blockPicker = BlockPicker(self.options[key], self.editor.level.materials, allowWildcards=aw)
        if blockPicker.present():
            self.options[key] = blockPicker.blockInfo
        self.setupPreview()

        Called on reselecting the brush.
        Makes a blockpicker show up for the Main Block of the brush mode.
        
editortools/brush.py