質問編集履歴
2
コードの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
fileTyp = [("","*")]
|
9
9
|
iDir = os.path.abspath(os.path.dirname(__file__))
|
10
10
|
filepath = filedialog.askopenfilename(filetypes = fTyp,initialdir = iDir)
|
11
|
-
file1.set(filepath)
|
11
|
+
file1.set(filepath) # ←こんな感じで書けるのが理想なのですが
|
12
12
|
|
13
13
|
class Tools_gui(object):
|
14
14
|
# rootの作成
|
1
ソースコードのミス
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
frame1.grid()
|
23
23
|
|
24
24
|
# 参照ボタンの作成
|
25
|
-
select_button = ttk.Button(frame1, text=u'参照')
|
25
|
+
select_button = ttk.Button(frame1, text=u'参照', command=button_click)
|
26
26
|
select_button.grid(row=0, column=3)
|
27
27
|
|
28
28
|
s = StringVar()
|