Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds required modules #1

merged 1 commit into from May 15, 2019
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

adds required modules

  • Loading branch information...
RohanVB committed May 15, 2019
commit 333605320acbd3dbe605ef3dc84e335717d12bbd
@@ -0,0 +1,51 @@
# Standard library imports
from __future__ import print_function, with_statement
import os.path as osp
import re
import sys
import time
import subprocess

Third Party Imports
getopenfilename: for selecting python files to run linter on
QByteArray: used to store raw bytes
QProcess: for reading output
QTextCodec: used to retrieve text from bytes
Signal and slot: signal emitted when an event occurs, slot is a function response to that signal
QTWidgets: UI buttons, layout, etc,.
from coalib.coala import main as coala
from qtpy.compat import getopenfilename
from qtpy.QtCore import QByteArray, QProcess, QTextCodec, Signal, Slot
from qtpy.QtWidgets import (QHBoxLayout, QLabel, QMessageBox, QTreeWidgetItem,
QVBoxLayout, QWidget)

Local Imports
dependencies: Checks for missing dependencies
get_conf_path: gets path of results
get_translation: used for testing as standalone script
pickle: pickled format
to_text_string: return text string
to_unicode_from_fs: return unicode string from file system encoding
create_toolbutton: creates QToolButton
get_cwd_or_home: get_cwd() or if cwd() is deleted, gets home directory
is_module_or_package: returns true if PATH is module or package
PythonModulesComboBox: QComboBox?
OneColumnTree: returns qtreewidget
TextEditor: Actual text editor with a "save and close" button

from spyder import dependencies
from spyder.config.base import get_conf_path, get_translation
from spyder.py3compat import pickle, to_text_string
from spyder.utils import icon_manager as ima
from spyder.utils.encoding import to_unicode_from_fs
from spyder.utils.qthelpers import create_toolbutton
from spyder.utils.misc import getcwd_or_home
from spyder.widgets.comboboxes import (is_module_or_package,
from spyder.widgets.onecolumntree import OneColumnTree
from spyder.plugins.variableexplorer.widgets.texteditor import TextEditor
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.