Ajout de la fenetre de navigation à la barre d'outil
This commit is contained in:
parent
98ccb095d3
commit
969d730233
|
@ -9,6 +9,7 @@ DOSSIER_COURRANT = os.path.dirname(os.path.abspath(__file__))
|
|||
DOSSIER_PARENT = os.path.dirname(DOSSIER_COURRANT)
|
||||
sys.path.append(DOSSIER_PARENT)
|
||||
from Views.quickTask import QuickTask as QT
|
||||
from Views.browseView import BrowseView as BV
|
||||
|
||||
|
||||
class BarreOutils():
|
||||
|
@ -204,9 +205,7 @@ class BarreOutils():
|
|||
### cliquer sur le bouton naviguer ouvre la fenetre de navigation
|
||||
def naviguer(self):
|
||||
"""L'utilisateur veut ouvrir la fenetre des rapports"""
|
||||
# TODO : ouvrir la fenetre de navigation
|
||||
self.fenetre.overrideredirect(0)
|
||||
self.fenetre.state('iconic')
|
||||
self.browse = BV(mother=self.fenetre)
|
||||
|
||||
### convertir la chaine du paramentre de geometry( en liste de parametre entier
|
||||
def geoliste(self, g):
|
||||
|
@ -317,6 +316,3 @@ class BarreOutils():
|
|||
|
||||
#b = BarreOutils()
|
||||
#b.fenetre.mainloop()
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -13,13 +13,13 @@ from Users.Model import User
|
|||
|
||||
class BrowseView:
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, mother):
|
||||
|
||||
self.ctrl = BrowseController()
|
||||
self.search_input = ""
|
||||
|
||||
#On lance la fenêtre par rapport à la fenêtre mère
|
||||
BrowseView.root = Tk()
|
||||
BrowseView.root = Toplevel(mother)
|
||||
BrowseView.root.title("Naviguer")
|
||||
|
||||
#Initialisation des variables
|
||||
|
@ -81,6 +81,3 @@ class BrowseView:
|
|||
|
||||
|
||||
#test
|
||||
|
||||
test = BrowseView()
|
||||
test.root.mainloop()
|
||||
|
|
Loading…
Reference in a new issue