Showing 542 of 3,395 total issues
Function _scaleMaker
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _scaleMaker(self, title, label, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function notebook
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def notebook(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
Function addImage
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addImage(self, name, imageFile, row=None, column=0, colspan=0, rowspan=0, compound=None):
Function addIcon
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addIcon(self, name, iconName, row=None, column=0, colspan=0, rowspan=0, compound=None):
Function moveWidgetType
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def moveWidgetType(self, kind, name, row=None, column=0, colspan=0, rowspan=0, sticky=W+E):
Function addSpinBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addSpinBox(self, title, values, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function _radioButtonMaker
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _radioButtonMaker(self, title, name, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function addLabelEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function addLabel
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabel(self, title, text=None, row=None, column=0, colspan=0, rowspan=0, selectable=False):
Function addLabelNumericEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelNumericEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function addLabelValidationEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addLabelValidationEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function openBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def openBox(self, title=None, dirName=None, fileTypes=None, asFile=False, parent=None, multiple=False, mode='r'):
Function saveBox
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def saveBox( self, title=None, fileName=None, dirName=None, fileExt=".txt",
Function _addMeter
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def _addMeter(self, name, kind="METER", row=None, column=0, colspan=0, rowspan=0, **kwargs):
Function addNumericLabelEntry
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
def addNumericLabelEntry(self, title, row=None, column=0, colspan=0, rowspan=0, secret=False, label=True):
Function table
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def table(self, title, value=None, *args, **kwargs):
""" simpleGUI - adds, sets & gets tables all in one go """
widgKind = WIDGET_NAMES.Table
kind = kwargs.pop("kind", 'normal')
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function scale
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def scale(self, title, *args, **kwargs):
""" simpleGUI - adds, sets & gets scales all in one go """
widgKind = WIDGET_NAMES.Scale
vert = kwargs.pop("direction", "horizontal").lower() == "vertical"
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _mouseScroll
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def _mouseScroll(self, horiz, event):
direction = 0
# get direction
if event.num == 4:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function button
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def button(self, title, value=None, *args, **kwargs):
""" simpleGUI - adds, sets & gets buttons all in one go """
widgKind = WIDGET_NAMES.Button
image = kwargs.pop("image", None)
icon = kwargs.pop("icon", None)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function tree
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def tree(self, title, value=None, *args, **kwargs):
""" simpleGUI - adds, sets & gets trees all in one go """
widgKind = WIDGET_NAMES.Tree
click = kwargs.pop("click", None)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"