nettoyage code source
This commit is contained in:
50
main.py
50
main.py
@@ -250,58 +250,10 @@ class ClercAttrib2Biz():
|
|||||||
|
|
||||||
self.thread = Thread(target=self.start_parsing)
|
self.thread = Thread(target=self.start_parsing)
|
||||||
|
|
||||||
def draw_addressesWindows(self):
|
|
||||||
|
|
||||||
# Init de la fenêtre addresses prompt
|
|
||||||
|
|
||||||
self.fenetre.iconbitmap("./logo_clerc_03X_icon.ico")
|
|
||||||
self.fenetre.title("Clerc Attrib2Biz v" + str(VERSION))
|
|
||||||
self.fenetre.resizable(True, True)
|
|
||||||
self.fenetre.geometry("700x475")
|
|
||||||
|
|
||||||
self.fenetre.columnconfigure(0, weight=3)
|
|
||||||
self.fenetre.columnconfigure(1, weight=1)
|
|
||||||
self.fenetre.rowconfigure(3, weight=1)
|
|
||||||
def disable_prompt(self):
|
def disable_prompt(self):
|
||||||
self.prompt.destroy()
|
self.prompt.destroy()
|
||||||
self.b_prompt_open = False
|
self.b_prompt_open = False
|
||||||
|
|
||||||
def draw_test(self, item_1=None, item_2=None):
|
|
||||||
return None
|
|
||||||
self.b_prompt_open = True
|
|
||||||
self.prompt = Toplevel()
|
|
||||||
self.prompt.geometry("400x275")
|
|
||||||
self.prompt.iconbitmap("./logo_clerc_03X_icon.ico")
|
|
||||||
self.prompt.title("Choix de l'adresse à conserver ")
|
|
||||||
self.prompt.protocol("WM_DELETE_WINDOW", self.disable_prompt)
|
|
||||||
|
|
||||||
self.prompt.columnconfigure(0, weight=1)
|
|
||||||
self.prompt.columnconfigure(1, weight=1)
|
|
||||||
|
|
||||||
lbf_new = LabelFrame(self.prompt, text="Nouveau patient")
|
|
||||||
lbf_new.grid(row=0,column=0,sticky='WE', padx=5, pady=5)
|
|
||||||
|
|
||||||
Label(lbf_new, text=f"N° AVS de l'adresse").grid(row=0,column=0)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lbf_old = LabelFrame(self.prompt, text="Ancien patient")
|
|
||||||
lbf_old.grid(row=0, column=1, sticky='NSEW', padx=5, pady=5)
|
|
||||||
|
|
||||||
Label(lbf_old, text=f"N° AVS de l'adresse").grid(row=0, column=0)
|
|
||||||
|
|
||||||
'''a = StringVar()
|
|
||||||
Label(root, text='enter something').pack()
|
|
||||||
Entry(root, textvariable=a).pack()
|
|
||||||
Button(root, text='Ok', command=lambda: self.DoSomethingWithInput(a.get, root)).pack()'''
|
|
||||||
def DoSomethingWithInput(self,var,root):
|
|
||||||
print("var")
|
|
||||||
root.destroy()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def refresh_ui(self):
|
def refresh_ui(self):
|
||||||
print("pass refresh UI")
|
print("pass refresh UI")
|
||||||
if self.export_one_file.get() and not self.export_format_biz.get():
|
if self.export_one_file.get() and not self.export_format_biz.get():
|
||||||
@@ -337,7 +289,7 @@ class ClercAttrib2Biz():
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
messagebox.showwarning(title="Impossible d'ouvrir le fichier d'adresse existantes", message=f"Le fichier {file_addresses_path} est introuvable. Aucune vérification des adresses possible")
|
messagebox.showwarning(title="Impossible d'ouvrir le fichier d'adresse existantes", message=f"Le fichier {file_addresses_path} est introuvable. Aucune vérification des adresses possible")
|
||||||
#messagebox.showerror(title="Erreur fichier déjà ouvert", message=f"Le fichier {self.export_filename} est déjà ouvert. Veuillez le fermer et recommencer")
|
|
||||||
|
|
||||||
|
|
||||||
def start_parsing(self):
|
def start_parsing(self):
|
||||||
|
Reference in New Issue
Block a user