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
|
Win_help=Tk()
Win_help.title("Manuel")
Win_help.wm_iconbitmap('icone_guw.ico') # icon
#Win_help.configure(bg = 'LightSteelBlue')
options_pack = dict(expand=1, fill=BOTH, padx=5, pady=5)
# encadré
cadre = LabelFrame(Win_help, text="Faites votre choix :")
cadre.pack(**options_pack)
cadre.pack(padx=10, pady=10)
cadre2 = LabelFrame(Win_help, text="Faites votre choix :")
cadre2.pack(**options_pack)
cadre2.pack(padx=10, pady=10)
Win_aide = Canvas(Win_help, height=512, width=512)
Win_aide.pack(side=TOP, fill=BOTH, expand=1)
Txt_Help = Text(Win_aide, height=20, width=30)
Txt_Help.tag_configure('bold_italics',
font=('Arial', 12, 'bold', 'italic'))
Txt_Help.tag_configure('big',
font=('Verdana', 14, 'bold'))
Txt_Help.tag_configure('color', foreground='#476042',
font=('Tempus Sans ITC', 12, 'bold'))
Txt_Help.insert(END,'\nAIDE\n', 'big')
photo=PhotoImage(file='telecharger.gif')
Txt_Help.insert(END,'\n')
Txt_Help.image_create(END, image=photo)
v = IntVar()
Label(Win_aide,
text="""GUIDE """,
justify = LEFT,
padx = 20).pack()
opts = dict(expand=1,fill=Y,padx=5)
# choix de l'aide
Radiobutton(cadre,
text="Retour Menu Général",
variable=v,
command=tchoix,
bg = 'red',
value=1).pack(side=LEFT,**opts)
Radiobutton(cadre,
text="Outils",
variable=v,
command=tchoix,
value=2).pack(side=LEFT,**opts)
Radiobutton(cadre,
text="Mes téléchargements",
variable=v,
command=tchoix,
value=3).pack(side=LEFT,**opts)
Radiobutton(cadre,
text="Editer un Rapport",
variable=v,
command=tchoix,
value=4).pack(side=LEFT,**opts)
Radiobutton(cadre,
text="Générer Rapport problème",
variable=v,
command=tchoix,
value=5).pack(side=LEFT,**opts)
# 2 cadre
Radiobutton(cadre2,
text="Informations système",
variable=v,
command=tchoix,
value=5).pack(side=LEFT,**opts)
Radiobutton(cadre2,
text="Analyse Sécurité",
variable=v,
command=tchoix,
value=3).pack(side=LEFT,**opts)
Radiobutton(cadre2,
text="Informations complémentaires",
variable=v,
command=tchoix,
value=4).pack(side=LEFT,**opts)
Radiobutton(cadre2,
text="Observateur Evènements",
variable=v,
command=tchoix,
value=5).pack(side=LEFT,**opts)
Radiobutton(cadre2,
text="Environnement système",
variable=v,
command=tchoix,
value=5).pack(side=LEFT,**opts)
Radiobutton(cadre2,
text="Lecture Fichier Hosts",
variable=v,
command=tchoix,
value=5).pack(**opts)
# ==================================================================
Txt_Help.pack(side=LEFT)
can2 = Canvas(Win_aide,bg='white',borderwidth=0,height=20,width=95)
can2.pack(side=LEFT)
scroll = Scrollbar(can2)
Help_box = Listbox(can2,background = 'ghost white', yscrollcommand = scroll.set, height=20, width=95 )
Help_box.pack(side = LEFT, fill = Y)
scroll.pack(side=RIGHT, fill=Y)
scroll.config( command = Help_box.yview )
Help_box.config(yscrollcommand = scroll.set)
Win_aide.mainloop() |
Partager