ash16 / TYTS

0 stars 1 forks source link

Issues with login_Window.py #34

Open francescacallejas opened 5 years ago

francescacallejas commented 5 years ago
  1. Unable to import 'PyQt5' (import-error): Issue was found in line 1. Line 1 says “from PyQT5 import QTCore”. This error states that the module was not found in the repository.

  2. Attribute defined outside init (attribute-defined-outside-init): There were 14 “Attribute defined outside init” bugs found within this class. These errors state that you are initializing instance variables outside of the init method. This can lead to confusion when using your code since it is expected by convention that all attributes of an instance be found within init. The errors are found in the following lines with the following variables:

    • W: 23, 8: Attribute 'username' defined outside init (attribute-defined-outside-init)
    • W: 15, 8: Attribute 'centralWidget' defined outside init (attribute-defined-outside-init)
    • W: 62, 8: Attribute 'statusBar' defined outside init (attribute-defined-outside-init)
    • W: 48, 8: Attribute 'mylab' defined outside init (attribute-defined-outside-init)
    • W: 17, 8: Attribute 'label' defined outside init (attribute-defined-outside-init)
    • W: 27, 8: Attribute 'pwd' defined outside init (attribute-defined-outside-init)
    • W: 20, 8: Attribute 'label_2' defined outside init (attribute-defined-outside-init)
    • W: 31, 8: Attribute 'label_3' defined outside init (attribute-defined-outside-init)
    • W: 40, 8: Attribute 'test' defined outside init (attribute-defined-outside-init)
    • W: 37, 8: Attribute 'login' defined outside init (attribute-defined-outside-init)
    • W: 59, 8: Attribute 'mainToolBar' defined outside init (attribute-defined-outside-init)
    • W: 34, 8: Attribute 'reg' defined outside init (attribute-defined-outside-init)
    • W: 51, 8: Attribute 'change' defined outside init (attribute-defined-outside-init)
    • W: 55, 8: Attribute 'menuBar' defined outside init (attribute-defined-outside-init)
  3. Unused import QtGui (unused-import): This bug is found in line 9. Remove unused import statements for conciseness and clarity.