Changement popup check adresse
This commit is contained in:
12
main.py
12
main.py
@@ -8,7 +8,7 @@ import textwrap
|
|||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
import tkinter
|
import tkinter
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import tkinter.filedialog
|
import tkinter.filedialog
|
||||||
from tkinter import *
|
from tkinter import *
|
||||||
@@ -24,7 +24,7 @@ from auto_update import *
|
|||||||
from class_debitors import *
|
from class_debitors import *
|
||||||
|
|
||||||
from version import *
|
from version import *
|
||||||
#test master 2
|
|
||||||
|
|
||||||
src_dir = os.getenv('APPDATA') + "\Attrib2Biz\src"
|
src_dir = os.getenv('APPDATA') + "\Attrib2Biz\src"
|
||||||
dest_dir = os.getenv('APPDATA') + "\Attrib2Biz\output"
|
dest_dir = os.getenv('APPDATA') + "\Attrib2Biz\output"
|
||||||
@@ -60,10 +60,10 @@ class SuggestionPopup(Toplevel):
|
|||||||
self.columnconfigure(0, weight=1)
|
self.columnconfigure(0, weight=1)
|
||||||
self.columnconfigure(1, weight=1)
|
self.columnconfigure(1, weight=1)
|
||||||
|
|
||||||
lbf_new = LabelFrame(self, text="Nouveau patient")
|
lbf_new = LabelFrame(self, text="Données Attrib")
|
||||||
lbf_new.grid(row=0, column=0, sticky='WE', padx=5, pady=5)
|
lbf_new.grid(row=0, column=0, sticky='WE', padx=5, pady=5)
|
||||||
|
|
||||||
lbf_old = LabelFrame(self, text="Ancien patient")
|
lbf_old = LabelFrame(self, text="Données Winbiz")
|
||||||
lbf_old.grid(row=0, column=1, sticky='NSEW', padx=5, pady=5)
|
lbf_old.grid(row=0, column=1, sticky='NSEW', padx=5, pady=5)
|
||||||
|
|
||||||
str_address_1 = ""
|
str_address_1 = ""
|
||||||
@@ -105,7 +105,7 @@ class SuggestionPopup(Toplevel):
|
|||||||
self.btn = Button(self, text="Valider", command=self.select)
|
self.btn = Button(self, text="Valider", command=self.select)
|
||||||
self.btn.grid(row=2,columnspan=2 , pady=10,padx=10, sticky='NSEW')
|
self.btn.grid(row=2,columnspan=2 , pady=10,padx=10, sticky='NSEW')
|
||||||
|
|
||||||
for (idd, info) in ((0, "Ancienne"), (1, "Nouvelle")) :
|
for (idd, info) in ((0, "Winbiz"), (1, "Attrib")) :
|
||||||
self.listbox.insert(END, info)
|
self.listbox.insert(END, info)
|
||||||
|
|
||||||
if int(debitor["code"]) >= 100:
|
if int(debitor["code"]) >= 100:
|
||||||
@@ -154,7 +154,7 @@ class SuggestionPopup(Toplevel):
|
|||||||
selection = self.listbox.curselection()
|
selection = self.listbox.curselection()
|
||||||
if selection:
|
if selection:
|
||||||
self.selection = self.listbox.get(selection[0])
|
self.selection = self.listbox.get(selection[0])
|
||||||
self.selection = True if self.selection == "Nouvelle" else False
|
self.selection = True if self.selection == "Attrib" else False
|
||||||
self.destroy()
|
self.destroy()
|
||||||
if self.no_selection_possible:
|
if self.no_selection_possible:
|
||||||
self.destroy()
|
self.destroy()
|
||||||
|
Reference in New Issue
Block a user