eric3.Checks.SyntaxCheckerDialog

Module implementing a simple Python syntax checker.

Classes

SyntaxCheckerDialog Class implementing a dialog to display the results of a syntax check run.

Functions

None

SyntaxCheckerDialog

Class implementing a dialog to display the results of a syntax check run.

Derived from

SyntaxCheckerForm

Methods

SyntaxCheckerDialog Constructor
buttonPressed Private slot connected to the button clicked signal.
compile Private method to compile one Python source file to Python bytecode.
finish Private slot called when the syntax check finished or the user pressed the button.
openFile Private slot to handle the doubleClicked signal of the result list.
start Public slot to start the syntax check.

SyntaxCheckerDialog (Constructor)

SyntaxCheckerDialog(viewmanager, parent = None)

Constructor

parent
The parent widget. (QWidget)
viewmanager
Reference to the viewmanager object.

SyntaxCheckerDialog.buttonPressed

buttonPressed()

Private slot connected to the button clicked signal.

SyntaxCheckerDialog.compile

compile(file)

Private method to compile one Python source file to Python bytecode.

file
source filename (string)
Returns:
A tuple indicating status (1 = an error was found), the filename, the linenumber, the code string and the error message (boolean, string, string, string, string). The values are only valid, if the status equals 1.

SyntaxCheckerDialog.finish

finish()

Private slot called when the syntax check finished or the user pressed the button.

SyntaxCheckerDialog.openFile

openFile(itm)

Private slot to handle the doubleClicked signal of the result list.

itm
Reference to the item, that was double clicked.

SyntaxCheckerDialog.start

start(fn)

Public slot to start the syntax check.

fn
File or list of files or directory to be checked (string or list of strings)

Up