teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

回答1

2019/03/06 08:42

投稿

yamatail
yamatail

スコア77

title CHANGED
File without changes
body CHANGED
@@ -28,4 +28,18 @@
28
28
  ```
29
29
  <開発環境>
30
30
  spyder - python3.7.2
31
- windows10 64bit
31
+ windows10 64bit
32
+
33
+ <補足1>
34
+ `print(dlg.ファイル.print_control_identifiers().decode("sjis"))`
35
+ を試したところ、以下のエラーが出ました。
36
+ 開発環境が違うと変わるのか...
37
+ ```text
38
+ AttributeError Traceback (most recent call last)
39
+ <ipython-input-13-e37c73943476> in <module>
40
+ 9
41
+ 10 # handle Open dialog
42
+ ---> 11 print(dlg.ファイル.print_control_identifiers().decode("sjis"))
43
+
44
+ AttributeError: 'NoneType' object has no attribute 'decode'
45
+ ```