Home>

Studying GUI handling in Python 3.6.5
I'm using VisualStudioCode, but I just copied and copied the code shown as an example, but I get an error with VisualStudioCode
No error when executed
Can you tell me if it's an editor issue or a code issue?
Thank you

Error message
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "E1101",
    "severity": 8,
    "message": "E1101: Module 'wx' has no 'Frame' member",
    "source": "pylint",
    "startLineNumber": 5,
    "startColumn": 9,
    "endLineNumber": 5,
    "endColumn": 9
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "E1101",
    "severity": 8,
    "message": "E1101: Module 'wx' has no 'ID_ANY' member",
    "source": "pylint",
    "startLineNumber": 5,
    "startColumn": 24,
    "endLineNumber": 5,
    "endColumn": 24
}
Applicable source code
import wx
application = wx.App ()
frame = wx.Frame (None, wx.ID_ANY, 'test frame', size = (300,300))
frame.Show ()
application.MainLoop ()
Supplemental information (FW/tool version etc.)

Windows10 Pro 1803
Python 3.6.5
VisualStudioCode 1.24.1

Append

Adding the following settings to tell me, a lot of new cautions (?) came out, please tell me how to solve
Thank you in advance
wx was counted as "error", but this time it is counted as "information"

"python.linting.pylintArgs": ["--extension-pkg-whitelist = wx"]

Here are some notes

{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0103",
    "severity": 2,
    "message": "C0103: Module name \" Python_GUI_1 \ "doesn't conform to snake_case naming style",
    "source": "pylint",
    "startLineNumber": 1,
    "startColumn": 1,
    "endLineNumber": 1,
    "endColumn": 1
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0111",
    "severity": 2,
    "message": "C0111: Missing module docstring",
    "source": "pylint",
    "startLineNumber": 1,
    "startColumn": 1,
    "endLineNumber": 1,
    "endColumn": 1
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0103",
    "severity": 2,
    "message": "C0103: Constant name \" application \ "doesn't conform to UPPER_CASE naming style",
    "source": "pylint",
    "startLineNumber": 3,
    "startColumn": 1,
    "endLineNumber": 3,
    "endColumn": 1
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0326",
    "severity": 2,
    "message": "C0326: No space allowed before comma",
    "source": "pylint",
    "startLineNumber": 5,
    "startColumn": 1,
    "endLineNumber": 5,
    "endColumn": 1
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0326",
    "severity": 2,
    "message": "C0326: Exactly one space required after comma",
    "source": "pylint",
    "startLineNumber": 5,
    "startColumn": 1,
    "endLineNumber": 5,
    "endColumn": 1
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0103",
    "severity": 2,
    "message": "C0103: Constant name \" frame \ "doesn't conform to UPPER_CASE naming style",
    "source": "pylint",
    "startLineNumber": 5,
    "startColumn": 1,
    "endLineNumber": 5,
    "endColumn": 1
}
{
    "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
    "owner": "python",
    "code": "C0304",
    "severity": 2,
    "message": "C0304: Final newline missing",
    "source": "pylint",
    "startLineNumber": 8,
    "startColumn": 1,
    "endLineNumber": 8,
    "endColumn": 1
}
Trends