質問編集履歴

1

回答1

2019/03/06 08:42

投稿

yamatail
yamatail

スコア77

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,31 @@
59
59
  spyder - python3.7.2
60
60
 
61
61
  windows10 64bit
62
+
63
+
64
+
65
+ <補足1>
66
+
67
+ `print(dlg.ファイル.print_control_identifiers().decode("sjis"))`
68
+
69
+ を試したところ、以下のエラーが出ました。
70
+
71
+ 開発環境が違うと変わるのか...
72
+
73
+ ```text
74
+
75
+ AttributeError Traceback (most recent call last)
76
+
77
+ <ipython-input-13-e37c73943476> in <module>
78
+
79
+ 9
80
+
81
+ 10 # handle Open dialog
82
+
83
+ ---> 11 print(dlg.ファイル.print_control_identifiers().decode("sjis"))
84
+
85
+
86
+
87
+ AttributeError: 'NoneType' object has no attribute 'decode'
88
+
89
+ ```