IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Tkinter Python Discussion :

Texte qui s'ajoute dans un text widget / canvas widget


Sujet :

Tkinter Python

  1. #1
    Nouveau Candidat au Club
    Homme Profil pro
    Infrastructures Réseaux
    Inscrit en
    Juillet 2016
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Infrastructures Réseaux
    Secteur : Distribution

    Informations forums :
    Inscription : Juillet 2016
    Messages : 5
    Points : 1
    Points
    1
    Par défaut Texte qui s'ajoute dans un text widget / canvas widget
    Bonjour à toutes et à tous,

    Je me présente en quelques mots. Je suis en charge de la gestion de l'infrastructure réseaux électriques et de données dans la société qui m'emploie et je suis régulièrement interpellé par mes collègues pour récupérer des informations spécifiques à l'intérieur de fichiers (log) qui contiennent généralement, des centaines de milliers de lignes. Afin de faciliter leur travail, je me suis mis en tête l'idée de développer une interface graphique (gui) basée sur un code python qui leur permettrait de récupérer ce qu'il me demande, d'une façon un peu plus 'autonome' que celle consistant à passer par mon intermédiaire.

    Pour se faire, j'ai défini un GUI, ainsi que la fonction qui me permet de récupérer l'info (output2) souhaité. Ce petit bout de code fonctionne correctement lorsque le résultat doit apparaître dans le terminal de sortie. LE 'hic', c'est que j'aimerais bien que le résultat apparaissent dans le canvas dédié à cet effet dans le gui. en utilisant la fonction create_text, cela fonctionne, sauf que le résultat suivant vient écraser le résultat précédent, due au fait que j'ai du préciser une coordonnée pour faire apparaître la sortie en question. J'ai essayer en créant une zone de texte à l'intérieur du canvas, mais l'affichage de l'ensemble du gui 'plante' royalement. J'ai fait des essais avec la fonction focus_set, et lu les recommandations du forum pour l'utilisation de tkinter, mais je ne m'en sort pas. Pourriez-vous m'indiquer ce qu'il convient de faire ?

    Il faudrait que le le résultat puisse venir toujours s'afficher en dessous de la précédente output pour pouvoir faire un export général de l'ensemble du contenu de la fenêtre par la suite.

    Merci beaucoup pour tous vos conseils
    Mac Os X 10.11
    python 3.4

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    import os
    import subprocess
    import shlex
    import tkinter as tk
    import sys
    from tkinter.ttk import *
     
    class RadioButton(tk.Frame):
     
        def __init__(self, parent, *args, **kwargs):
     
            self.parent = parent
            tk.Frame.__init__(self, parent, *args, **kwargs)
     
            LIST = [
                ('Order Type Check', 'OTC'),
                ('Tote Decoupling Check', 'TDC'),
                ('Tracking Tote Id', 'TTid'),
                ('List Pickers', 'LP'),
                ('Send Message To Picker(s)[csv]', 'SM'),
                ('Kill Pid(s)[csv]', 'Kid')
            ]
            v = tk.StringVar()
            v.set('OTC')
            val = 0
            for text, mode in LIST:
                self.radio = tk.Radiobutton(parent, text=text, variable=v, value=mode, bg='#ECECEC')
                self.radio.grid(row=0, column=val)
                val += 1
     
     
     
    class SubFrame(tk.Frame):
     
        def __init__(self, parent, *args, **kwargs):
            self.parent = parent
            tk.Frame.__init__(self, parent, *args, **kwargs)
            self.width = 1020
            self.height = 630
            self.canvas = tk.Canvas(self, width=self.width, height=self.height, bg='#ECECEC')
            self.canvas.grid(row=1, column=0)
     
     
     
     
    class TextArea(tk.Frame):
        def __init__(self, parent, *args, **kwargs):
            self.parent = parent
            tk.Text.__init__(self, parent, *args, **kwargs)
            self.width = 1020
            self.height = 630
            self.bill = tk.Text(self, width=self.width, height=self.height)
            self.bill.grid(row=1, column=0)
     
     
    class MainFrame(tk.Frame):
     
        def __init__(self, master):
            tk.Frame.__init__(self, master)
     
     
            self.master = master
     
            self.frameH1 = Frame(self.master)
            self.frameH1.grid(row=0, column=0)
     
            self.radiobutton0_0 = RadioButton(self.frameH1)
            self.radiobutton0_0.grid(row=0, column=0, sticky=tk.E + tk.W)
     
            self.label1_0 = Label(self.frameH1, text='Tote Id')
            self.label1_0.grid(row=1, column=0, sticky=tk.E, pady=5)
     
            self.sep1_0 = Separator(self.frameH1, orient='horizontal')
            self.sep1_0.grid(row=0, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.entry1_1 = tk.StringVar()
            self.entry1_1 = Entry(self.frameH1, textvariable=self.entry1_1.get())
            self.entry1_1.grid(row=1, column=1)
     
     
            self.label1_2 = Label(self.frameH1, text='Pid')
            self.label1_2.grid(row=1, column=2, sticky=tk.E)
     
            self.entry1_3 = Entry(self.frameH1)
            self.entry1_3.grid(row=1, column=3)
     
            self.label1_4 = Label(self.frameH1, text='Picker Id')
            self.label1_4.grid(row=1, column=4, sticky=tk.E)
     
            self.entry1_5 = Entry(self.frameH1)
            self.entry1_5.grid(row=1, column=5)
     
            self.sep2_0 = Separator(self.frameH1, orient='horizontal')
            self.sep2_0.grid(row=1, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.sep3_0 = Separator(self.frameH1, orient='horizontal')
            self.sep3_0.grid(row=3, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.button2_0 = Button(self.frameH1, text='Execute', command=self.OnButtonClick)
            self.button2_0.grid(row=2, column=1, pady=5)
     
            self.button2_3 = Button(self.frameH1, text='Clear Screen', command=self.frameH1.quit)
            self.button2_3.grid(row=2, column=3)
     
            self.button2_5 = Button(self.frameH1, text='Quit', command=self.frameH1.quit)
            self.button2_5.grid(row=2, column=5, padx=15)
     
            self.frameH2 = Frame(self.master)
            self.frameH2.grid(row=1, column=0)
     
            # self.tex = TextArea(self.frameH2)
            # self.tex.grid(row=1, column=0)
            # self.tex.bill
     
     
            # self.displayArea = SubFrame(self.frameH2)
            # self.displayArea.grid(row=1, column=0)
            #self.displayArea.canvas.create_text(text=self.output2.get())
     
     
            self.frameH3 = Frame(master)
            self.frameH3.grid(row=2, column=0)
     
            self.label4_0 = Label(self.frameH3, text='PTL Server Network Status')
            self.label4_0.grid(row=0, column=0, pady=5, padx='10')
     
            self.c4_1 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_1.grid(row=0, column=1, padx='10')
     
            self.label4_2 = Label(self.frameH3, text='Controller Network Status')
            self.label4_2.grid(row=0, column=2, padx='10')
     
            self.c4_3 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_3.grid(row=0, column=3, padx='10')
     
            self.label4_4 = Label(self.frameH3, text='PLC Network Status')
            self.label4_4.grid(row=0, column=4, padx='10')
     
            self.c4_5 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_5.grid(row=0, column=5, padx='10')
     
            self.Button4_6 = Button(self.frameH3, text='Export Screen Result', command=self.frameH2.quit)
            self.Button4_6.grid(row=0, column=6, padx='90')
     
     
        def OnButtonClick(self):
     
            filename = 'logptlcont'
            filepath = os.path.abspath(filename)
            command_line = '''awk -F, 'match ($0,toteID) {T=$4} END {print T}' filePath'''
            argos = shlex.split(command_line)
            argos[2] = 'match ($0, %s ) {T=$4} END {print T}' % self.entry1_1.get()
            argos[3] = filepath
            self.p = subprocess.check_output(argos)
            self.output1 = self.p.decode(sys.stdout.encoding)
            self.output2 = self.entry1_1.get() + str('-') + self.output1
            print(self.output2)
     
    def main():
     
        root = tk.Tk()
        root.title('Watt v1.0 - Yves')
        root.configure(background='#ECECEC')
        MainFrame(root)
        root.mainloop()
     
    if __name__ == '__main__':
        main()

  2. #2
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 302
    Points : 36 801
    Points
    36 801
    Par défaut
    Salut,

    Citation Envoyé par Go4Bouvier Voir le message
    Il faudrait que le le résultat puisse venir toujours s'afficher en dessous de la précédente output pour pouvoir faire un export général de l'ensemble du contenu de la fenêtre par la suite.
    Dans ce cas, pourquoi ne pas utiliser le widget text: text.insert('end', ...) va toujours afficher "en plus" (et en dessous si vos lignes se terminent par \n).
    Puis text.get('1.0', 'end') pour récupérer l'ensemble du contenu.

    - W

  3. #3
    Nouveau Candidat au Club
    Homme Profil pro
    Infrastructures Réseaux
    Inscrit en
    Juillet 2016
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Infrastructures Réseaux
    Secteur : Distribution

    Informations forums :
    Inscription : Juillet 2016
    Messages : 5
    Points : 1
    Points
    1
    Par défaut
    Bonjour Wiztricks,

    J'ai résolu le problème de l'affichage de ma zone de texte dans le canvas, sans que cela ne continue à planter.

    J'ai ajouter la ligne suivante à la suite du code présent dans la fonction 'OnButtonClick' :

    self.tex.insert('end', self.output2)

    Lorsque je donne une valeur dans le champs Entry, et presse sur le bouton d'exécution, la ligne print(self.output2) renvoie la résultat correct dans le terminal de sortie, mais toujours rien dans la zone de texte.

    Si j'effectue le code en retirant la ligne
    self.output1 = self.p.decode(sys.stdout.encoding)

    Le résultat s'affiche précédé d'un b et se termine avec le /n.

    Bien à toi,

  4. #4
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 302
    Points : 36 801
    Points
    36 801
    Par défaut
    Salut,

    La console permet de tester ce genre de cas de figure en ayant le "focus" sur le bout de code concerné:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    >>> import tkinter as tk
    >>> import subprocess as sp
    >>> text = tk.Text()
    >>> text.pack()
    >>> z = sp.check_output('ls')
    >>> text.insert('end', z.decode())
    Que çà fonctionne ou pas, c'est quand même plus simple à lire (et à poster) plutôt qu'imaginer quelles modifications vous avez bien pu faire sur un code assez long qu'il ne sera pas facile de lancer pour reproduire le soucis que vous rencontrez.

    - W

  5. #5
    Nouveau Candidat au Club
    Homme Profil pro
    Infrastructures Réseaux
    Inscrit en
    Juillet 2016
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Infrastructures Réseaux
    Secteur : Distribution

    Informations forums :
    Inscription : Juillet 2016
    Messages : 5
    Points : 1
    Points
    1
    Par défaut
    Bonsoir,

    Effectivement, je ne mettais pas rendu-compte de votre remarque au moment de répondre.

    J'ai mis en pratique le morceau de code que vous m'avez fourni pour me rendre compte qu'il s'agit alors d'un soucis avec ma zone de texte, malgré que cette dernière s'affiche correctement dans le canvas. J'obtiens bien dans le shell python le retour de la fonction 'ls', mais toujours rien dans la zone de texte, ce qui m'amène à la conclusion précédente.

    Vous trouverez ci-dessous, mon code modifié, pourriez-vous me renseigner le(s) correctif(s) à y apporter ?

    Bien cordialement,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    import os
    import subprocess
    import shlex
    import tkinter as tk
    import sys
    from tkinter.ttk import *
     
    class RadioButton(tk.Frame):
     
        def __init__(self, parent, *args, **kwargs):
     
            self.parent = parent
            tk.Frame.__init__(self, parent, *args, **kwargs)
     
            LIST = [
                ('Order Type Check', 'OTC'),
                ('Tote Decoupling Check', 'TDC'),
                ('Tracking Tote Id', 'TTid'),
                ('List Pickers', 'LP'),
                ('Send Message To Picker(s)[csv]', 'SM'),
                ('Kill Pid(s)[csv]', 'Kid')
            ]
            v = tk.StringVar()
            v.set('OTC')
            val = 0
            for text, mode in LIST:
                self.radio = tk.Radiobutton(parent, text=text, variable=v, value=mode, bg='#ECECEC')
                self.radio.grid(row=0, column=val)
                val += 1
     
     
     
    class SubFrame(tk.Frame):
     
        def __init__(self, parent, *args, **kwargs):
            self.parent = parent
            tk.Frame.__init__(self, parent, *args, **kwargs)
            self.width = 1020
            self.height = 630
            self.canvas = tk.Canvas(self, width=self.width, height=self.height, bg='#ECECEC')
            self.canvas.grid(row=1, column=0)
     
     
     
     
    class TextArea(tk.Text):
        def __init__(self, parent, *args, **kwargs):
            self.parent = parent
            tk.Text.__init__(self, parent, *args, **kwargs)
     
            self.bill = tk.Text(self, width=150, height=40, bg='#ECECEC')
            self.bill.grid(row=1, column=0)
     
     
    class MainFrame(tk.Frame):
     
        def __init__(self, master):
            tk.Frame.__init__(self, master)
     
     
            self.master = master
     
            self.frameH1 = Frame(self.master)
            self.frameH1.grid(row=0, column=0)
     
            self.radiobutton0_0 = RadioButton(self.frameH1)
            self.radiobutton0_0.grid(row=0, column=0, sticky=tk.E + tk.W)
     
            self.label1_0 = Label(self.frameH1, text='Tote Id')
            self.label1_0.grid(row=1, column=0, sticky=tk.E, pady=5)
     
            self.sep1_0 = Separator(self.frameH1, orient='horizontal')
            self.sep1_0.grid(row=0, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.entry1_1 = tk.StringVar()
            self.entry1_1 = Entry(self.frameH1, textvariable=self.entry1_1.get())
            self.entry1_1.grid(row=1, column=1)
     
     
            self.label1_2 = Label(self.frameH1, text='Pid')
            self.label1_2.grid(row=1, column=2, sticky=tk.E)
     
            self.entry1_3 = Entry(self.frameH1)
            self.entry1_3.grid(row=1, column=3)
     
            self.label1_4 = Label(self.frameH1, text='Picker Id')
            self.label1_4.grid(row=1, column=4, sticky=tk.E)
     
            self.entry1_5 = Entry(self.frameH1)
            self.entry1_5.grid(row=1, column=5)
     
            self.sep2_0 = Separator(self.frameH1, orient='horizontal')
            self.sep2_0.grid(row=1, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.sep3_0 = Separator(self.frameH1, orient='horizontal')
            self.sep3_0.grid(row=3, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.button2_0 = Button(self.frameH1, text='Execute', command=self.OnButtonClick)
            self.button2_0.grid(row=2, column=1, pady=5)
     
            self.button2_3 = Button(self.frameH1, text='Clear Screen', command=self.frameH1.quit)
            self.button2_3.grid(row=2, column=3)
     
            self.button2_5 = Button(self.frameH1, text='Quit', command=self.frameH1.quit)
            self.button2_5.grid(row=2, column=5, padx=15)
     
            self.frameH2 = Frame(self.master)
            self.frameH2.grid(row=1, column=0)
     
            self.tex = TextArea(self.frameH2)
            self.tex.grid(row=1, column=0)
     
     
            self.frameH3 = Frame(master)
            self.frameH3.grid(row=2, column=0)
     
            self.label4_0 = Label(self.frameH3, text='PTL Server Network Status')
            self.label4_0.grid(row=0, column=0, pady=5, padx='10')
     
            self.c4_1 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_1.grid(row=0, column=1, padx='10')
     
            self.label4_2 = Label(self.frameH3, text='Controller Network Status')
            self.label4_2.grid(row=0, column=2, padx='10')
     
            self.c4_3 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_3.grid(row=0, column=3, padx='10')
     
            self.label4_4 = Label(self.frameH3, text='PLC Network Status')
            self.label4_4.grid(row=0, column=4, padx='10')
     
            self.c4_5 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_5.grid(row=0, column=5, padx='10')
     
            self.Button4_6 = Button(self.frameH3, text='Export Screen Result', command=self.frameH2.quit)
            self.Button4_6.grid(row=0, column=6, padx='90')
     
     
        def OnButtonClick(self):
     
            filename = 'logptlcont'
            filepath = os.path.abspath(filename)
            command_line = '''awk -F, 'match ($0,toteID) {T=$4} END {print T}' filePath'''
            argos = shlex.split(command_line)
            argos[2] = 'match ($0, %s ) {T=$4} END {print T}' % self.entry1_1.get()
            argos[3] = filepath
            self.p = subprocess.check_output(argos)
            self.output1 = self.p.decode(sys.stdout.encoding)
            self.output2 = self.entry1_1.get() + str('-') + self.output1
            print(self.output2)
            self.tex.insert('end', self.output2)
     
     
    def main():
     
        root = tk.Tk()
        root.title('Watt v1.0 - Yves')
        root.configure(background='#ECECEC')
        MainFrame(root)
        root.mainloop()
     
    if __name__ == '__main__':
        main()

  6. #6
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 302
    Points : 36 801
    Points
    36 801
    Par défaut
    Citation Envoyé par Go4Bouvier Voir le message
    Vous trouverez ci-dessous, mon code modifié, pourriez-vous me renseigner le(s) correctif(s) à y apporter ?
    L'objet "self.tex" utilisé dans le "self.tex.insert('end', self.output2)" est instance de la classe "TextArea(tk.Text)".
    C'est une classe que vous avez décidé de fabriquer.
    Vérifier qu'elle fait bien ce que vous en attendez (ou comment vous devez l'utiliser pour que...) est un travail fort instructif que je ne ferais pas à votre place...
    Non que ce soit "compliqué" mais parce qu'il n'y a qu'en mettant vous même les mains dans votre code que vous allez pouvoir prendre conscience de l'intérêt de "simplifier", de devoir/pouvoir en "tester" chaque partie avant de les composer/utiliser avec d'autres,...

    - W

  7. #7
    Nouveau Candidat au Club
    Homme Profil pro
    Infrastructures Réseaux
    Inscrit en
    Juillet 2016
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Infrastructures Réseaux
    Secteur : Distribution

    Informations forums :
    Inscription : Juillet 2016
    Messages : 5
    Points : 1
    Points
    1
    Par défaut
    Bonsoir,

    J'ai pris un peu de temps pour revoir mon code, et je pense avoir trouvé ce qui ne fonctionnait pas.

    Je suis maintenant confronté depuis deux jours à un autre soucis avec les "boutons radios". Je me demande si il ne faudrait pas faire intervenir dans la fonction 'function_choice' (ligne 36) une gestion d'événements. Les différentes fonctions devraient pouvoir s'effectuer lorsque leur variable 'radio' est sélectionnée, lorsque le champs d'entrée est rempli, et lorsque l'on pousse sur le bouton d'exécution.

    Pourriez-vous m'orienter quant aux différentes techniques pour récupérer ces états, si c'est la bonne méthode à utiliser?

    Merci beaucoup.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    import os
    import subprocess
    import shlex
    import tkinter as tk
    import sys
    from tkinter.ttk import *
    import tkinter.scrolledtext as tkst
    import datetime
     
     
     
    class RadioButton(tk.Frame):
     
        def __init__(self, parent, *args, **kwargs):
     
            self.parent = parent
            tk.Frame.__init__(self, parent, *args, **kwargs)
     
            LIST = [
                ('Order Type/Tote Location Check', 'OTC'),
                ('Tote Decoupling Check', 'TDC'),
                ('Tracking Tote Id', 'TTid'),
                ('List Pickers', 'LP'),
                ('Send Message To Picker(s)[csv]', 'SM'),
                ('Kill Pid(s)[csv]', 'Kid')
            ]
            self.v = tk.StringVar()
            self.v.set('OTC')
            val = 0
            for text, mode in LIST:
                self.radio = tk.Radiobutton(parent, text=text, variable=self.v, value=mode, bg='#ECECEC')
                self.radio.grid(row=0, column=val)
                val += 1
     
     
        def function_choice(self):
            #L'idée est de combiner 3 conditions pour générer l'exécution des fonctions
            # Est-il possible de réaliser cela avec la gestion des événements ?
     
            if self.v == 'OTC' and MainFrame.button2_0 and MainFrame.entry1_1:
                MainFrame.ordertype()
            elif self.v == 'TDC' and MainFrame.button2_0 and MainFrame.entry1_1:
                MainFrame.q_down_load()
            elif self.v == 'TTid' and MainFrame.button2_0 and MainFrame.entry_1:
                MainFrame.adbridge2()
     
     
     
     
    class TextArea(tk.Frame):
     
        def __init__(self, parent):
            self.parent = parent
            tk.Frame.__init__(self, parent)
            self.bill = tkst.ScrolledText(width=150, height=40, bg='#ECECEC')
            self.bill.grid(row=1, column=0)
     
        def print_output(self, a):
            self.bill.insert('end', a)
     
        def clear_screen(self):
            self.bill.delete('0.0','end')
     
     
    class MainFrame(tk.Frame):
        def __init__(self, master):
            tk.Frame.__init__(self, master)
     
            self.master = master
     
            self.frameH1 = Frame(self.master)
            self.frameH1.grid(row=0, column=0)
     
            self.radiobutton0_0 = RadioButton(self.frameH1)
            self.radiobutton0_0.grid(row=0, column=0, sticky=tk.E + tk.W)
     
            self.label1_0 = Label(self.frameH1, text='Tote Id')
            self.label1_0.grid(row=1, column=0, sticky=tk.E, pady=5)
     
            self.sep1_0 = Separator(self.frameH1, orient='horizontal')
            self.sep1_0.grid(row=0, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.entry1_1 = tk.StringVar()
            self.entry1_1 = Entry(self.frameH1, textvariable=self.entry1_1.get())
            self.entry1_1.grid(row=1, column=1)
     
            self.label1_2 = Label(self.frameH1, text='Pid')
            self.label1_2.grid(row=1, column=2, sticky=tk.E)
     
            self.entry1_3 = Entry(self.frameH1)
            self.entry1_3.grid(row=1, column=3)
     
            self.label1_4 = Label(self.frameH1, text='Picker Id')
            self.label1_4.grid(row=1, column=4, sticky=tk.E)
     
            self.entry1_5 = Entry(self.frameH1)
            self.entry1_5.grid(row=1, column=5)
     
            self.sep2_0 = Separator(self.frameH1, orient='horizontal')
            self.sep2_0.grid(row=1, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.sep3_0 = Separator(self.frameH1, orient='horizontal')
            self.sep3_0.grid(row=3, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.button2_0 = Button(self.frameH1, text='Execute', command=RadioButton.function_choice)
            self.button2_0.grid(row=2, column=1, pady=5)
     
            self.frameH2 = Frame(self.master)
            self.frameH2.grid(row=1, column=0)
     
            self.tex = TextArea(self.frameH2)
            self.tex.grid(row=1, column=0)
     
            self.button2_3 = Button(self.frameH1, text='Clear Screen', command=self.tex.clear_screen)
            self.button2_3.grid(row=2, column=3)
     
            self.button2_5 = Button(self.frameH1, text='Quit', command=self.frameH1.quit)
            self.button2_5.grid(row=2, column=5, padx=15)
     
            self.frameH3 = Frame(master)
            self.frameH3.grid(row=2, column=0)
     
            self.label4_0 = Label(self.frameH3, text='PTL Server Network Status')
            self.label4_0.grid(row=0, column=0, pady=5, padx='10')
     
            self.c4_1 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_1.grid(row=0, column=1, padx='10')
     
            self.label4_2 = Label(self.frameH3, text='Controller Network Status')
            self.label4_2.grid(row=0, column=2, padx='10')
     
            self.c4_3 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_3.grid(row=0, column=3, padx='10')
     
            self.label4_4 = Label(self.frameH3, text='PLC Network Status')
            self.label4_4.grid(row=0, column=4, padx='10')
     
            self.c4_5 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_5.grid(row=0, column=5, padx='10')
     
            self.Button4_6 = Button(self.frameH3, text='Export Screen Result', command=self.frameH2.quit)
            self.Button4_6.grid(row=0, column=6, padx='90')
     
     
        def ordertype(self):
            filename = 'logptlcont'
            filepath = os.path.abspath(filename)
            command_line = '''awk -F, 'match ($0,toteID) {T=$4} END {print T}' filePath'''
            argos = shlex.split(command_line)
            argos[2] = 'match ($0, %s ) {T=$4} END {print T}' % self.entry1_1.get()
            argos[3] = filepath
            self.p = subprocess.check_output(argos)
            self.output1 = self.p.decode(sys.stdout.encoding)
            self.output2 = self.entry1_1.get() + str('-') + self.output1
            self.tex.print_output(self.output2)
     
     
        def q_down_load(self):
            fileName = 'q_down_load'
            filePath = os.path.abspath(fileName)
            self.cat = subprocess.Popen(['cat', filePath], stdout=subprocess.PIPE,)
            self.grep1 = subprocess.Popen(['grep', '.'], stdin=self.cat.stdout, stdout=subprocess.PIPE,)
            self.grep2 = subprocess.Popen(['grep', '-B1', self.entry1_1.get()], stdin=self.grep1.stdout, stdout=subprocess.PIPE, universal_newlines=True)
            self.out, err = self.grep2.communicate()
            if self.out == '':
                self.out = str('%s - %s - No Such Tote Found\n' % (datetime.date.today(), self.entry1_1.get()))
            self.tex.print_output(self.out)
     
        def adbridge2(self):
            filename = 'logptlcont'
            filePath = os.path.abspath(filename)
            self.grep1 = subprocess.Popen(['grep', '-i', 'STAT1', filePath], stdout=subprocess.PIPE,)
            self.grep2 = subprocess.Popen(['grep', self.entry1_1.get(), '--color=auto'], stdin=self.grep1.stdout, stdout=subprocess.PIPE, universal_newlines=True)
            self.out, err = self.grep2.communicate()
            if self.out == '':
                self.out = str('%s - %s - No Such Tote Found\n' % (datetime.date.today(), self.entry1_1.get()))
            self.tex.print_output(self.out)
     
     
    def main():
     
        root = tk.Tk()
        root.title('Watt v1.0 - Yves')
        root.configure(background='#ECECEC')
        MainFrame(root)
        root.mainloop()
     
    if __name__ == '__main__':
        main()

  8. #8
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 302
    Points : 36 801
    Points
    36 801
    Par défaut
    Citation Envoyé par Go4Bouvier Voir le message
    Je suis maintenant confronté depuis deux jours à un autre soucis avec les "boutons radios". Je me demande si il ne faudrait pas faire intervenir dans la fonction 'function_choice' (ligne 36) une gestion d'événements. Les différentes fonctions devraient pouvoir s'effectuer lorsque leur variable 'radio' est sélectionnée, lorsque le champs d'entrée est rempli, et lorsque l'on pousse sur le bouton d'exécution.
    Il serait sans doute plus simple de vérifier l'état de l'Entry et la valeur du Radiobutton sélectionné lorsqu'on clique sur le Button et éventuellement indiquer à l'utilisateur ce qu'il a oublié de remplir.

    - W

  9. #9
    Nouveau Candidat au Club
    Homme Profil pro
    Infrastructures Réseaux
    Inscrit en
    Juillet 2016
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Infrastructures Réseaux
    Secteur : Distribution

    Informations forums :
    Inscription : Juillet 2016
    Messages : 5
    Points : 1
    Points
    1
    Par défaut
    Bonjour,

    J'ai terminé la fonction qui permet d'exporter le contenu de mon widget text vers un fichier texte, et j'ai réalisé la fonction qui permet l'affichage d'une fenêtre permettant le contrôle du remplissage de l'entry.

    Voici, le code modifié :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    import os
    import subprocess
    import shlex
    import tkinter as tk
    from tkinter import filedialog
    from tkinter import Toplevel
    from tkinter.ttk import *
    import tkinter.scrolledtext as tkst
    import datetime
    import sys
     
     
    class Dialog(tk.Frame):
        def __init__(self, master):
            self.master = master
            self.file_opt = options = {}
            options['filetypes'] = [('all files', '.*'), ('text files', '.txt')]
            options['initialfile'] = 'Watt.txt'
            options['parent'] = master
     
        def export_result(self, Var1):
            self.filename = filedialog.asksaveasfile(mode='w', defaultextension='.txt', **self.file_opt)
            if self.filename is None:
                return
            self.filename.write(Var1)
            self.filename.close()
     
        def message(self):
            self.newWindow = Toplevel(self.master)
            self.newWindow.title('Warning - Empty Field')
     
     
    class TextArea(tk.Frame):
        def __init__(self, parent):
            self.parent = parent
            self.dial = Dialog(parent)
     
            tk.Frame.__init__(self, parent)
     
            self.bill = tkst.ScrolledText(width=150, height=40, bg='#ECECEC')
            self.bill.grid(row=1, column=0)
     
        def print_output(self, a):
            self.bill.insert('end', a)
     
        def clear_screen(self):
            self.bill.delete('0.0', 'end')
     
        def get_output(self):
            self.Var0 = self.bill.get('1.0', 'end')
            self.dial.export_result(self.Var0)
     
     
    class RadioButton(tk.Frame):
        def __init__(self, parent):
            self.parent = parent
            self.butt = MainFrame(parent)
            self.dialo = Dialog(parent)
            tk.Frame.__init__(self, parent)
     
            LIST = [
                ('Order Type/Tote Location Check', 'OTC'),
                ('Tote Decoupling Check', 'TDC'),
                ('Tracking Tote Id', 'TTid'),
                ('List Pickers', 'LP'),
                ('Send Message To Picker(s)[csv]', 'SM'),
                ('Kill Pid(s)[csv]', 'Kid')
            ]
            self.v = tk.StringVar()
            self.v.set('OTC')
            val = 0
            for text, mode in LIST:
                self.radio = tk.Radiobutton(parent, text=text, variable=self.v, value=mode, bg='#ECECEC')
                self.radio.grid(row=0, column=val)
                val += 1
     
     
        def function_sel(self):
            if self.v != None  and self.butt.entry1_1.select_present:
                if self.v == 'OTC':
                    self.butt.ordertype()
                elif self.v == 'TDC':
                    self.butt.q_down_load()
                elif self.v == 'TTid':
                    self.butt.adbridge2()
            else:
                self.dialo.message()
     
     
    class MainFrame(tk.Frame):
        def __init__(self, master):
            tk.Frame.__init__(self, master)
     
            self.master = master
     
     
            self.frameH1 = Frame(self.master)
            self.frameH1.grid(row=0, column=0)
     
            self.radiobutton0_0 = RadioButton(self.frameH1)
            self.radiobutton0_0.grid(row=0, column=0, sticky=tk.E + tk.W)
     
            self.label1_0 = Label(self.frameH1, text='Tote Id')
            self.label1_0.grid(row=1, column=0, sticky=tk.E, pady=5)
     
            self.sep1_0 = Separator(self.frameH1, orient='horizontal')
            self.sep1_0.grid(row=0, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.entry1_1 = tk.StringVar()
            self.entry1_1 = Entry(self.frameH1, textvariable=self.entry1_1.get())
            self.entry1_1.grid(row=1, column=1)
     
            self.label1_2 = Label(self.frameH1, text='Pid')
            self.label1_2.grid(row=1, column=2, sticky=tk.E)
     
            self.entry1_3 = Entry(self.frameH1)
            self.entry1_3.grid(row=1, column=3)
     
            self.label1_4 = Label(self.frameH1, text='Picker Id')
            self.label1_4.grid(row=1, column=4, sticky=tk.E)
     
            self.entry1_5 = Entry(self.frameH1)
            self.entry1_5.grid(row=1, column=5)
     
            self.sep2_0 = Separator(self.frameH1, orient='horizontal')
            self.sep2_0.grid(row=1, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.sep3_0 = Separator(self.frameH1, orient='horizontal')
            self.sep3_0.grid(row=3, column=0, columnspan=6, sticky=tk.W + tk.E + tk.S)
     
            self.button2_0 = Button(self.frameH1, text='Execute', command=self.radiobutton0_0.function_sel())
            self.button2_0.grid(row=2, column=1, pady=5)
     
            self.frameH2 = Frame(self.master)
            self.frameH2.grid(row=1, column=0)
     
            self.tex = TextArea(self.frameH2)
            self.tex.grid(row=1, column=0)
     
            self.button2_3 = Button(self.frameH1, text='Clear Screen')
            self.button2_3.bind('<Button-1>', lambda e: self.tex.clear_screen(), add='+')
            self.button2_3.bind('<Button-1>', lambda e: self.entry1_1.delete('0', 'end'), add='+')
            self.button2_3.grid(row=2, column=3)
     
            self.button2_5 = Button(self.frameH1, text='Quit', command=self.frameH1.quit)
            self.button2_5.grid(row=2, column=5, padx=15)
     
            self.frameH3 = Frame(master)
            self.frameH3.grid(row=2, column=0)
     
            self.label4_0 = Label(self.frameH3, text='PTL Server Network Status')
            self.label4_0.grid(row=0, column=0, pady=5, padx='10')
     
            self.c4_1 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_1.grid(row=0, column=1, padx='10')
     
            self.label4_2 = Label(self.frameH3, text='Controller Network Status')
            self.label4_2.grid(row=0, column=2, padx='10')
     
            self.c4_3 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_3.grid(row=0, column=3, padx='10')
     
            self.label4_4 = Label(self.frameH3, text='PLC Network Status')
            self.label4_4.grid(row=0, column=4, padx='10')
     
            self.c4_5 = tk.Checkbutton(self.frameH3, bg='#ECECEC')
            self.c4_5.grid(row=0, column=5, padx='10')
     
            self.button4_6 = Button(self.frameH3, text='Export Screen Result')
            self.button4_6.bind('<Button-1>', lambda e: self.tex.get_output())
            self.button4_6.grid(row=0, column=6, padx='90')
     
        def ordertype(self):
            filename = 'logptlcont'
            filepath = os.path.abspath(filename)
            command_line = '''awk -F, 'match ($0,toteID) {T=$4} END {print T}' filePath'''
            argos = shlex.split(command_line)
            argos[2] = 'match ($0, %s ) {T=$4} END {print T}' % self.entry1_1.get()
            argos[3] = filepath
            self.p = subprocess.check_output(argos)
            self.output1 = self.p.decode(sys.stdout.encoding)
            self.out = self.entry1_1.get() + str('-') + self.output1
            self.tex.print_output(self.out)
     
        def q_down_load(self):
            fileName = 'q_down_load'
            filePath = os.path.abspath(fileName)
            self.cat = subprocess.Popen(['cat', filePath], stdout=subprocess.PIPE, )
            self.grep1 = subprocess.Popen(['grep', '.'], stdin=self.cat.stdout, stdout=subprocess.PIPE, )
            self.grep2 = subprocess.Popen(['grep', '-B1', self.entry1_1.get()], stdin=self.grep1.stdout,
                                          stdout=subprocess.PIPE, universal_newlines=True)
            self.out, err = self.grep2.communicate()
            if self.out == '':
                self.out = str('%s - %s - No Such Tote Found\n' % (datetime.date.today(), self.entry1_1.get()))
            self.tex.print_output(self.out)
     
        def adbridge2(self):
            filename = 'logptlcont'
            filePath = os.path.abspath(filename)
            self.grep1 = subprocess.Popen(['grep', '-i', 'STAT1', filePath], stdout=subprocess.PIPE, )
            self.grep2 = subprocess.Popen(['grep', self.entry1_1.get(), '--color=auto'], stdin=self.grep1.stdout,
                                          stdout=subprocess.PIPE, universal_newlines=True)
            self.out, err = self.grep2.communicate()
            if self.out == '':
                self.out = str('%s - %s - No Such Tote Found\n' % (datetime.date.today(), self.entry1_1.get()))
            self.tex.print_output(self.out)
     
     
    def main():
        root = tk.Tk()
        root.title('Watt v1.0 - Yves')
        root.configure(background='#ECECEC')
     
        MainFrame(root)
        root.mainloop()
     
     
    if __name__ == '__main__':
        main()
    Je rencontre le message d'erreur suivant à l'exécution :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
        self.radiobutton0_0 = RadioButton(self.frameH1)
      File "/Users/yves/Documents/Python Exercices/watt.py", line 57, in __init__
        self.butt = MainFrame(parent)
      File "/Users/yves/Documents/Python Exercices/watt.py", line 115, in __init__
        self.radiobutton0_0 = RadioButton(self.frameH1)
      File "/Users/yves/Documents/Python Exercices/watt.py", line 57, in __init__
        self.butt = MainFrame(parent)
      File "/Users/yves/Documents/Python Exercices/watt.py", line 115, in __init__
        self.radiobutton0_0 = RadioButton(self.frameH1)
      File "/Users/yves/Documents/Python Exercices/watt.py", line 57, in __init__
        self.butt = MainFrame(parent)
      File "/Users/yves/Documents/Python Exercices/watt.py", line 107, in __init__
        tk.Frame.__init__(self, master)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 2579, in __init__
        cnf = _cnfmerge((cnf, kw))
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 97, in _cnfmerge
        if isinstance(cnfs, dict):
    RuntimeError: maximum recursion depth exceeded in __instancecheck__
    Je me rend compte qu'il y a un bouclage entre les class 'MainFrame' et 'RadioButton', mais je ne sais pas comment résoudre cela. En lisant différents posts relatifs à ce message d'erreur, beaucoup d'internautes font référence à une méthode basée sur l'itération plutôt que sur la récursion, malgré les exemples je ne vois pas comment supprimer les appels via 'butt' et 'radiobutton'.

    Pourriez-vous m'aider ?
    Merci

  10. #10
    Expert éminent sénior
    Homme Profil pro
    Architecte technique retraité
    Inscrit en
    Juin 2008
    Messages
    21 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Architecte technique retraité
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2008
    Messages : 21 302
    Points : 36 801
    Points
    36 801
    Par défaut
    Salut,

    Citation Envoyé par Go4Bouvier Voir le message
    Je me rend compte qu'il y a un bouclage entre les class 'MainFrame' et 'RadioButton', mais je ne sais pas comment résoudre cela. En lisant différents posts relatifs à ce message d'erreur, beaucoup d'internautes font référence à une méthode basée sur l'itération plutôt que sur la récursion, malgré les exemples je ne vois pas comment supprimer les appels via 'butt' et 'radiobutton'.
    Vous créez self.butt juste pour pouvoir accéder à des widgets de l'instance de mainframe qui les contient (dans la méthode function_sel)
    La question est dans l'instruction "self.butt = MainFrame(parent)": pourquoi créer une autre instance de MainFrame plutôt que de passer en paramètre l'instance courante et la récupérer?

    De façon plus générale, fabriquer des boîtes (appelées classes) à priori conduit à la mise en place de relations tordues entre elles (maintenant qu'elles existent, il faut faire avec). Or leur intérêt est de vous aider à rendre le code plus simple, plus lisible,... cherchez l'erreur.

    - W

Discussions similaires

  1. Ajouter un div texte qui "slide" dans un diaporama
    Par dhillig dans le forum jQuery
    Réponses: 5
    Dernier message: 18/11/2015, 20h38
  2. Texte qui se suit dans 2 tableaux
    Par Sorutz dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 15/06/2007, 14h43
  3. Réponses: 9
    Dernier message: 09/01/2007, 11h06
  4. image(s) dans un texte qui l'entoure
    Par midiweb dans le forum Balisage (X)HTML et validation W3C
    Réponses: 7
    Dernier message: 21/02/2006, 14h10
  5. Query Contains dans Full-Text qui ne retourne pas de valeurs
    Par icebe dans le forum MS SQL Server
    Réponses: 1
    Dernier message: 08/02/2006, 14h04

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo