jarvisteach/appJar

View on GitHub

Showing 519 of 3,395 total issues

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setMeterFill(self, name, colour):
        item = self.widgetManager.get(WIDGET_NAMES.Meter, name)
        item.configure(fill=colour)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 5379..5381
appJar/appjar.py on lines 5412..5414
appJar/appjar.py on lines 6013..6015
appJar/appjar.py on lines 6953..6955
appJar/appjar.py on lines 8095..8097
appJar/appjar.py on lines 9141..9143
appJar/appjar.py on lines 9697..9699

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def showPagedWindowPageNumber(self, title, show=True):
        pager = self.widgetManager.get(WIDGET_NAMES.PagedWindow, title)
        pager.showPageNumber(show)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 4853..4855
appJar/appjar.py on lines 4868..4870
appJar/appjar.py on lines 5442..5444
appJar/appjar.py on lines 5467..5469
appJar/appjar.py on lines 6957..6959
appJar/appjar.py on lines 6966..6968
appJar/appjar.py on lines 9567..9569

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setPropertiesSelectColour(self, title, newCol):
        props = self.widgetManager.get(WIDGET_NAMES.Properties, title)
        props.config(selectcolor=newCol)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 5379..5381
appJar/appjar.py on lines 5412..5414
appJar/appjar.py on lines 6013..6015
appJar/appjar.py on lines 8095..8097
appJar/appjar.py on lines 9141..9143
appJar/appjar.py on lines 9697..9699
appJar/appjar.py on lines 10426..10428

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setLabel(self, name, text):
        lab = self.widgetManager.get(WIDGET_NAMES.Label, name)
        lab.config(text=text)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 5379..5381
appJar/appjar.py on lines 5412..5414
appJar/appjar.py on lines 6013..6015
appJar/appjar.py on lines 6953..6955
appJar/appjar.py on lines 8095..8097
appJar/appjar.py on lines 9697..9699
appJar/appjar.py on lines 10426..10428

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setToggleFrameText(self, title, newText):
        toggle = self.widgetManager.get(WIDGET_NAMES.ToggleFrame, title)
        toggle.config(text=newText)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 5379..5381
appJar/appjar.py on lines 6013..6015
appJar/appjar.py on lines 6953..6955
appJar/appjar.py on lines 8095..8097
appJar/appjar.py on lines 9141..9143
appJar/appjar.py on lines 9697..9699
appJar/appjar.py on lines 10426..10428

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def showPagedWindowTitle(self, title, show=True):
        pager = self.widgetManager.get(WIDGET_NAMES.PagedWindow, title)
        pager.showTitle(show)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 4853..4855
appJar/appjar.py on lines 4868..4870
appJar/appjar.py on lines 5442..5444
appJar/appjar.py on lines 5463..5465
appJar/appjar.py on lines 6957..6959
appJar/appjar.py on lines 6966..6968
appJar/appjar.py on lines 9567..9569

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setTabbedFrameDisableAllTabs(self, title, disabled=True):
        nb = self.widgetManager.get(WIDGET_NAMES.TabbedFrame, title)
        nb.disableAllTabs(disabled)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 4853..4855
appJar/appjar.py on lines 5442..5444
appJar/appjar.py on lines 5463..5465
appJar/appjar.py on lines 5467..5469
appJar/appjar.py on lines 6957..6959
appJar/appjar.py on lines 6966..6968
appJar/appjar.py on lines 9567..9569

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setMessage(self, title, text):
        mess = self.widgetManager.get(WIDGET_NAMES.Message, title)
        mess.config(text=text)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 5379..5381
appJar/appjar.py on lines 5412..5414
appJar/appjar.py on lines 6013..6015
appJar/appjar.py on lines 6953..6955
appJar/appjar.py on lines 8095..8097
appJar/appjar.py on lines 9141..9143
appJar/appjar.py on lines 10426..10428

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def set" + v +
                "InPadding(self, name, x, y=None): self.configureWidgets(" +
                str(k) + ", name, 'ipadding', [x, y])")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def set" + v +
                "Focus(self, name): self.configureWidget(" +
                str(k) + ", name, 'focus', None)")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def remove" + v +
                "(self, name, collapse=False): self.removeWidgetType(" +
                str(k) + ", name, collapse)")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def disable" + v +
                "(self, name): self.configureWidget(" +
                str(k) + ", name, 'state', 'disabled')")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def set" + v +
                "DisabledFg(self, name, val): self.configureWidgets(" +
                str(k) + ", name, 'disabledforeground', val)")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def set" + v +
                "ActiveFg(self, name, val): self.configureWidgets(" +
                str(k) + ", name, 'activeforeground', val)")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def set" + v +
                "SubmitFunction(self, name, val): self.configureWidget(" +
                str(k) + ", name, 'submit', val)")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3554..3556
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

            exec( "def get" + v +
                "Widget(self, name, val=None): return self.getWidget(" +
                str(k) + ", name, val)")
Severity: Major
Found in appJar/appjar.py and 45 other locations - About 45 mins to fix
appJar/appjar.py on lines 3343..3345
appJar/appjar.py on lines 3347..3349
appJar/appjar.py on lines 3352..3354
appJar/appjar.py on lines 3356..3358
appJar/appjar.py on lines 3361..3363
appJar/appjar.py on lines 3365..3367
appJar/appjar.py on lines 3370..3372
appJar/appjar.py on lines 3374..3376
appJar/appjar.py on lines 3379..3381
appJar/appjar.py on lines 3383..3385
appJar/appjar.py on lines 3387..3389
appJar/appjar.py on lines 3391..3393
appJar/appjar.py on lines 3396..3398
appJar/appjar.py on lines 3401..3403
appJar/appjar.py on lines 3407..3409
appJar/appjar.py on lines 3412..3414
appJar/appjar.py on lines 3417..3419
appJar/appjar.py on lines 3422..3424
appJar/appjar.py on lines 3427..3429
appJar/appjar.py on lines 3433..3435
appJar/appjar.py on lines 3437..3439
appJar/appjar.py on lines 3441..3443
appJar/appjar.py on lines 3446..3448
appJar/appjar.py on lines 3451..3453
appJar/appjar.py on lines 3456..3458
appJar/appjar.py on lines 3462..3464
appJar/appjar.py on lines 3466..3468
appJar/appjar.py on lines 3470..3472
appJar/appjar.py on lines 3474..3476
appJar/appjar.py on lines 3480..3482
appJar/appjar.py on lines 3484..3486
appJar/appjar.py on lines 3490..3492
appJar/appjar.py on lines 3496..3498
appJar/appjar.py on lines 3502..3504
appJar/appjar.py on lines 3506..3508
appJar/appjar.py on lines 3510..3512
appJar/appjar.py on lines 3514..3516
appJar/appjar.py on lines 3519..3521
appJar/appjar.py on lines 3526..3528
appJar/appjar.py on lines 3530..3532
appJar/appjar.py on lines 3536..3538
appJar/appjar.py on lines 3540..3542
appJar/appjar.py on lines 3545..3547
appJar/appjar.py on lines 3549..3551
appJar/appjar.py on lines 3559..3561

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setPagedWindowButtonsTop(self, title, top=True):
        pager = self.widgetManager.get(WIDGET_NAMES.PagedWindow, title)
        pager.setNavPositionTop(top)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 4853..4855
appJar/appjar.py on lines 4868..4870
appJar/appjar.py on lines 5463..5465
appJar/appjar.py on lines 5467..5469
appJar/appjar.py on lines 6957..6959
appJar/appjar.py on lines 6966..6968
appJar/appjar.py on lines 9567..9569

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def showTreeMenu(self, title, show=True):
        tree = self.widgetManager.get(WIDGET_NAMES.Tree, title)
        tree.showMenu(show)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 4853..4855
appJar/appjar.py on lines 4868..4870
appJar/appjar.py on lines 5442..5444
appJar/appjar.py on lines 5463..5465
appJar/appjar.py on lines 5467..5469
appJar/appjar.py on lines 6957..6959
appJar/appjar.py on lines 6966..6968

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    def setLabelFrameTitle(self, title, newTitle):
        frame = self.widgetManager.get(WIDGET_NAMES.LabelFrame, title)
        frame.config(text=newTitle)
Severity: Major
Found in appJar/appjar.py and 7 other locations - About 45 mins to fix
appJar/appjar.py on lines 5412..5414
appJar/appjar.py on lines 6013..6015
appJar/appjar.py on lines 6953..6955
appJar/appjar.py on lines 8095..8097
appJar/appjar.py on lines 9141..9143
appJar/appjar.py on lines 9697..9699
appJar/appjar.py on lines 10426..10428

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

            if self.blocking and self.killLab is not None:
                self.killLab.destroy()
                self.killLab = None
Severity: Minor
Found in appJar/appjar.py and 1 other location - About 45 mins to fix
appJar/appjar.py on lines 14096..14098

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 35.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language