質問編集履歴
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,4 +12,20 @@
|
|
12
12
|
```ここに言語を入力
|
13
13
|
def buttonBit(self,n:int):
|
14
14
|
val_edit3=eval(self.frame1.edit3.get())^(1<<n) #XORでn番目のbitを反転
|
15
|
-
```
|
15
|
+
```
|
16
|
+
|
17
|
+
以下がエラーの全文になります。
|
18
|
+
|
19
|
+
Traceback (most recent call last):
|
20
|
+
File "c:/Users/xxxx/Desktop/pythonproject/Caluculator/Caluculator.py", line 267, in <module>
|
21
|
+
app = Caluculator(master=root)
|
22
|
+
File "c:/Users/xxxx/Desktop/pythonproject/Caluculator/Caluculator.py", line 13, in __init__
|
23
|
+
self.createWidgets()
|
24
|
+
File "c:/Users/xxxx/Desktop/pythonproject/Caluculator/Caluculator.py", line 44, in createWidgets
|
25
|
+
self.frame4.button16 = tkinter.Button(self.frame4,text="",command=self.buttonBit(0),font=self.font1)
|
26
|
+
File "c:/Users/xxxx/Desktop/pythonproject/Caluculator/Caluculator.py", line 146, in buttonBit
|
27
|
+
val_edit3=eval(self.frame1.edit3.get())^(1<<n) #XORで反転
|
28
|
+
File "<string>", line 0
|
29
|
+
|
30
|
+
^
|
31
|
+
SyntaxError: unexpected EOF while parsing
|