質問編集履歴
1
設定を追記したところ新たな注意が出たので追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
3
|
Python3.6.5でGUIを扱う勉強をしています
|
4
|
-
VisualStudioCodeを使用しているのですが、例として載っていたコードをコピペしただけなのにVisualStudioCodeで
|
4
|
+
VisualStudioCodeを使用しているのですが、例として載っていたコードをコピペしただけなのにVisualStudioCodeでエラーが出ます
|
5
5
|
実行してもエラーは出ません
|
6
6
|
エディターの問題なのかコードの問題かわからないので教えてください
|
7
7
|
よろしくおねがいします
|
@@ -55,4 +55,118 @@
|
|
55
55
|
|
56
56
|
Windows10 Pro 1803
|
57
57
|
Python 3.6.5
|
58
|
-
VisualStudioCode 1.24.1
|
58
|
+
VisualStudioCode 1.24.1
|
59
|
+
|
60
|
+
###追記
|
61
|
+
教えてもらい以下の設定を追記したところ新たな注意(?)がたくさん出たので解決方法を教えてください
|
62
|
+
よろしくおねがいします
|
63
|
+
wxのほうは「エラー」としてカウントされていましたが、今回は「情報」としてカウントされています
|
64
|
+
|
65
|
+
```VisualStudioCode User Settings
|
66
|
+
"python.linting.pylintArgs": ["--extension-pkg-whitelist=wx"]
|
67
|
+
```
|
68
|
+
|
69
|
+
以下、注意内容
|
70
|
+
```
|
71
|
+
{
|
72
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
73
|
+
"owner": "python",
|
74
|
+
"code": "C0103",
|
75
|
+
"severity": 2,
|
76
|
+
"message": "C0103:Module name \"Python_GUI_1\" doesn't conform to snake_case naming style",
|
77
|
+
"source": "pylint",
|
78
|
+
"startLineNumber": 1,
|
79
|
+
"startColumn": 1,
|
80
|
+
"endLineNumber": 1,
|
81
|
+
"endColumn": 1
|
82
|
+
}
|
83
|
+
```
|
84
|
+
|
85
|
+
```
|
86
|
+
{
|
87
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
88
|
+
"owner": "python",
|
89
|
+
"code": "C0111",
|
90
|
+
"severity": 2,
|
91
|
+
"message": "C0111:Missing module docstring",
|
92
|
+
"source": "pylint",
|
93
|
+
"startLineNumber": 1,
|
94
|
+
"startColumn": 1,
|
95
|
+
"endLineNumber": 1,
|
96
|
+
"endColumn": 1
|
97
|
+
}
|
98
|
+
```
|
99
|
+
|
100
|
+
```
|
101
|
+
{
|
102
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
103
|
+
"owner": "python",
|
104
|
+
"code": "C0103",
|
105
|
+
"severity": 2,
|
106
|
+
"message": "C0103:Constant name \"application\" doesn't conform to UPPER_CASE naming style",
|
107
|
+
"source": "pylint",
|
108
|
+
"startLineNumber": 3,
|
109
|
+
"startColumn": 1,
|
110
|
+
"endLineNumber": 3,
|
111
|
+
"endColumn": 1
|
112
|
+
}
|
113
|
+
```
|
114
|
+
|
115
|
+
```
|
116
|
+
{
|
117
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
118
|
+
"owner": "python",
|
119
|
+
"code": "C0326",
|
120
|
+
"severity": 2,
|
121
|
+
"message": "C0326:No space allowed before comma",
|
122
|
+
"source": "pylint",
|
123
|
+
"startLineNumber": 5,
|
124
|
+
"startColumn": 1,
|
125
|
+
"endLineNumber": 5,
|
126
|
+
"endColumn": 1
|
127
|
+
}
|
128
|
+
```
|
129
|
+
|
130
|
+
```
|
131
|
+
{
|
132
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
133
|
+
"owner": "python",
|
134
|
+
"code": "C0326",
|
135
|
+
"severity": 2,
|
136
|
+
"message": "C0326:Exactly one space required after comma",
|
137
|
+
"source": "pylint",
|
138
|
+
"startLineNumber": 5,
|
139
|
+
"startColumn": 1,
|
140
|
+
"endLineNumber": 5,
|
141
|
+
"endColumn": 1
|
142
|
+
}
|
143
|
+
```
|
144
|
+
|
145
|
+
```
|
146
|
+
{
|
147
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
148
|
+
"owner": "python",
|
149
|
+
"code": "C0103",
|
150
|
+
"severity": 2,
|
151
|
+
"message": "C0103:Constant name \"frame\" doesn't conform to UPPER_CASE naming style",
|
152
|
+
"source": "pylint",
|
153
|
+
"startLineNumber": 5,
|
154
|
+
"startColumn": 1,
|
155
|
+
"endLineNumber": 5,
|
156
|
+
"endColumn": 1
|
157
|
+
}
|
158
|
+
```
|
159
|
+
```
|
160
|
+
{
|
161
|
+
"resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
|
162
|
+
"owner": "python",
|
163
|
+
"code": "C0304",
|
164
|
+
"severity": 2,
|
165
|
+
"message": "C0304:Final newline missing",
|
166
|
+
"source": "pylint",
|
167
|
+
"startLineNumber": 8,
|
168
|
+
"startColumn": 1,
|
169
|
+
"endLineNumber": 8,
|
170
|
+
"endColumn": 1
|
171
|
+
}
|
172
|
+
```
|