 
   toggle: ->
     if @panel?.isVisible()
-    # if @hasParent()
       @cancel()
     else
-      @attach()
+      @show()
 
   show: ->
     # Get out of here unless this is a python file
     editor = atom.workspace.getActiveEditor()
     return unless editor?
     return unless editor.getGrammar().name == 'Python'
-
 
     @panel ?= atom.workspace.addModalPanel(item: this)
     @panel.show()

_ = require 'underscore-plus'
process = require 'child_process'
byline = require 'byline'
{$, $$, SelectListView} = require 'atom'

# Basic flake8 parsing tool with callback functionality
flake = (filePath, callback) ->



module.exports = new SimpleFlake8View()

