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
|
def Securite_info_sys():
import os, sys
global TxtSecurite2, TxtSecurite, v, Win_malwares
Win_malwares = Canvas(Win_origine , height=512, width=512)
Win_malwares.pack(side=TOP, fill=BOTH, expand=1)
TxtSecurite = Text(Win_malwares, height=20, width=30)
TxtSecurite.tag_configure('bold_italics',
font=('Arial', 12, 'bold', 'italic'))
TxtSecurite.tag_configure('big',
font=('Verdana', 14, 'bold'))
TxtSecurite.tag_configure('color', foreground='#476042',
font=('Tempus Sans ITC', 12, 'bold'))
TxtSecurite.tag_bind('follow', '<1>', lambda e, t=TxtSecurite: t.insert(END, "Pas maintenant, peut-être plus tard!"))
TxtSecurite.insert(END,'\nAnalyse Registre\n', 'big')
photo=PhotoImage(file='RegWin.gif')
TxtSecurite.insert(END,'\n')
TxtSecurite.image_create(END, image=photo)
v = IntVar()
Label(Win_malwares,
text="""GUW - GUIDE UTILE WINDOWS""",
justify = LEFT,
padx = 20).pack()
Radiobutton(Win_malwares,
text="Analyse Protection (liste des logiciels de protection)",
padx = 20,
variable=v,
command=mchoix,
value=1).pack(anchor=W)
Radiobutton(Win_malwares,
text="Analyse Malwares (pas de désinfection, seulement préventif)",
padx = 20,
variable=v,
command=mchoix,
value=2).pack(anchor=W)
Radiobutton(Win_malwares,
text="Analyse Conseils (logiciels à éviter ou pas utiles)",
padx = 20,
variable=v,
command=mchoix,
value=3).pack(anchor=W)
Radiobutton(Win_malwares,
text="Retour Menu Général",
padx = 20,
variable=v,
command=mchoix,
value=4).pack(anchor=W)
TxtSecurite.pack(side=LEFT)
TxtSecurite2 = Text(Win_malwares, height=20, width=75)
scroll = Scrollbar(Win_malwares, command=TxtSecurite2.yview)
TxtSecurite2.configure(yscrollcommand=scroll.set)
TxtSecurite2.pack(side=LEFT)
scroll.pack(side=RIGHT, fill=Y)
Win_malwares.mainloop() <------------ je ne devrais pas mettre le mainloop puisqu'il corresponds à un canvas, si je ne fais pas cela pas d'affichage d'image et pas de traitement (cela en 32 bits)
le pire est que je n'ai pas de message d'erreur en IDLE, ??? |
Partager