bONJOUR A TOUS ET Particulierement a WIZTRICKS qui m'a aider en me gudant dans le processus d'affichage de mes données dans Tkinter Chapeau à toi!!

Voici un petit soucis qui me derange cette fois ci, Mon script que j'ai creé marche parfaitement et s'affiche dans la fenetre comme voulu mais le soicis est que les 2 premier blocs de resultats s'affichent sous forme de dictionnaire dans la fenetre.

j'aimerais qu'ils s'affichent sous la forme de (keys:values), j'ai essayer avec la metode 'items' combiné avec une boucle "For...in" mais pas d'issus,
Existe t'il d'autres methoodes pouvant ordonner mes resultats??????????????? Lesquels???
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
#!/usr/bin/python
# -*-coding:UTF-8 -*-
 
from Tkinter import *
import socket
 
from pierky.ipdetailscache import IPDetailsCache
import geocoder
import os
 
 
def data_ip():
    try:
        ip = donnee.get()
        name = socket.gethostbyname(ip)# Convert the site web name in address ip x.x.x.x
 
        command = "whois" + " " + ip
        process = os.popen(command)
        results = str(process.read())
 
        i = geocoder.maxmind(name)
        a = i.json
 
        cache = IPDetailsCache()  # call the Class 'IPDetailsCache()'
        r = cache.GetIPInformation(name)  # use the 'GetIPInformation()' methods
 
 
 
 
 
        return (('IP ADDRESS:{0}'.format(name)),'\n\n\n',a,'\n\n\n',r,'\n\n\n',results,'\n\n\n')
    except socket.gaierror:
        return ("Address Unknown or Connection failed")
 
def message():
    col = data_ip()
    texte.insert('1.0', col)
    texte.config(state= NORMAL)
 
def reset_entree():
    entree.delete(0, END)
    texte.delete(1.0,END)
 
fen = Tk()
fen.geometry('700x600')
fen.title('Findme')
texte =Text(fen, width=100, height=30,wrap= 'word')
donnee = StringVar()
donnee.set('')
label = Label(fen, text= 'input your website:', fg= 'red')
entree = Entry(fen, textvariable =donnee, width=30)
butonscan = Button(fen, text= 'SCAN', bg= 'red', command= message)
butonreset = Button(fen, text= 'RESET', bg= 'black', fg = 'white', command= reset_entree)
butonexit = Button(fen, text= 'EXIT', bg= 'red', command= fen.destroy)
butonexport = Button(fen, text= 'EXPORT', bg= 'black', fg = 'white')
 
entree.place(x= '130', y='450')
label.place(x= '0', y='450')
texte.pack(side= TOP, padx= 0, fill =BOTH, expand= 0)
butonscan.place(x='380', y='446')
butonreset.place(x='445', y='446')
butonexit.place(x='515', y='446')
butonexport.place(x='573', y='446')
fen.mainloop()