Skip to content
Snippets Groups Projects
Commit 3a772163 authored by Hilel Alvarez--Huguet's avatar Hilel Alvarez--Huguet
Browse files

[edit] agencement page d'acueil

parent 2def1739
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,11 @@ class App: ...@@ -107,7 +107,11 @@ class App:
#création de tout les bouton de la barre d'outils (bouton en bas de la liste de test) #création de tout les bouton de la barre d'outils (bouton en bas de la liste de test)
self.select_ressource_dir_btn = tk.Button(self.json_frame, text=txt.change_ressource_file_btn(self.resource_dir), command=self.select_ressource_dir, font = btn_style) self.select_ressource_dir_btn = tk.Button(self.json_frame, text=txt.change_ressource_file_btn(self.resource_dir), command=self.select_ressource_dir, font = btn_style)
self.select_ressource_dir_btn.pack(side=tk.TOP, fill = tk.X) self.select_ressource_dir_btn.pack(side=tk.RIGHT, expand=True,fill = tk.BOTH, pady= 0)
self.parametters_button = tk.Button(self.json_frame, text=txt.SETING_BTN, command=self.open_settings)
self.parametters_button.pack(side = tk.LEFT,expand=True, fill = tk.BOTH, pady= 0)
self.add_json_button = tk.Button(self.json_toolbar_frame, text=txt.CREATE_BTN, command=self.json_manager.add_json, font = btn_style) self.add_json_button = tk.Button(self.json_toolbar_frame, text=txt.CREATE_BTN, command=self.json_manager.add_json, font = btn_style)
self.add_json_button.grid(row = 0, column= 0, **paddings) self.add_json_button.grid(row = 0, column= 0, **paddings)
...@@ -125,6 +129,12 @@ class App: ...@@ -125,6 +129,12 @@ class App:
self.merge_json_button = tk.Button(self.json_toolbar_frame, text=txt.MERGE_BTN, stat = tk.DISABLED, command=self.json_manager.merge_json, font = btn_style) self.merge_json_button = tk.Button(self.json_toolbar_frame, text=txt.MERGE_BTN, stat = tk.DISABLED, command=self.json_manager.merge_json, font = btn_style)
self.merge_json_button.grid(row = 0, column= 4, **paddings) self.merge_json_button.grid(row = 0, column= 4, **paddings)
self.export_btn = tk.Button(self.json_toolbar_frame, text= txt.EXPORT_BTN, stat =tk.DISABLED, command=self.export, font = btn_style)
self.export_btn.grid(row = 1, column= 3, **paddings)
self.resume_btn = tk.Button(self.json_toolbar_frame, text = txt.RESUM_BTN, stat =tk.DISABLED, command = self.resume, font = btn_style)
self.resume_btn.grid(row = 1, columnspan = 3, **paddings)
for elt in self.test.keys(): for elt in self.test.keys():
self.json_list_frame.insert(tk.END, elt) self.json_list_frame.insert(tk.END, elt)
...@@ -161,18 +171,10 @@ class App: ...@@ -161,18 +171,10 @@ class App:
self.exit_button = tk.Button(self.unkillable_frame, text=txt.EXIT_BTN, command=self.exit_app, font = btn_style) self.exit_button = tk.Button(self.unkillable_frame, text=txt.EXIT_BTN, command=self.exit_app, font = btn_style)
self.exit_button.pack(side=tk.RIGHT, **exit_button_padding) self.exit_button.pack(side=tk.RIGHT, **exit_button_padding)
self.export_btn = tk.Button(self.unkillable_frame, text= txt.EXPORT_BTN, command=self.export, font = btn_style)
self.export_btn.pack(side=tk.RIGHT, **exit_button_padding)
self.resume_btn = tk.Button(self.unkillable_frame, text = txt.RESUM_BTN, command = self.resume, font = btn_style)
self.resume_btn.pack(side = tk.RIGHT, **exit_button_padding)
self.acount_exel_btn = tk.Button(self.unkillable_frame, text = txt.ACOUNT_BTN, command = self.acount_gestion, font = btn_style) self.acount_exel_btn = tk.Button(self.unkillable_frame, text = txt.ACOUNT_BTN, command = self.acount_gestion, font = btn_style)
self.acount_exel_btn.pack(side = tk.RIGHT, **exit_button_padding) self.acount_exel_btn.pack(side = tk.RIGHT, **exit_button_padding)
self.parametters_button = tk.Button(self.unkillable_frame, text=txt.SETING_BTN, command=self.open_settings)
self.parametters_button.pack(side = tk.RIGHT, **exit_button_padding)
def set_infoBulles(self): def set_infoBulles(self):
if infoBulles: if infoBulles:
InfoBulle(self.assets_list, txt.DRAG_AND_DROP) InfoBulle(self.assets_list, txt.DRAG_AND_DROP)
...@@ -203,6 +205,8 @@ class App: ...@@ -203,6 +205,8 @@ class App:
self.remove_json_button.config(state=tk.ACTIVE) self.remove_json_button.config(state=tk.ACTIVE)
self.rename_json_button.config(state=tk.ACTIVE) self.rename_json_button.config(state=tk.ACTIVE)
self.merge_json_button.config(state=tk.ACTIVE) self.merge_json_button.config(state=tk.ACTIVE)
self.resume_btn.config(state=tk.ACTIVE)
self.export_btn.config(state=tk.ACTIVE)
if self.asset_button.cget('relief') == tk.SUNKEN: #si le bouton asset est actif if self.asset_button.cget('relief') == tk.SUNKEN: #si le bouton asset est actif
self.asset_activ = True self.asset_activ = True
self.add_button.grid(row=0, column=0, **paddings) self.add_button.grid(row=0, column=0, **paddings)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment