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
| # self.iconbitmap('@' + ImageAppli)
self.withdraw()
wisplash = Toplevel()
wisplash.FondImage = PhotoImage(file = PathWasabi + "arriere.ppm")
wisplash.overrideredirect(1)
wt = wisplash.winfo_screenwidth()
ht = wisplash.winfo_screenheight()
w = wisplash.FondImage.width()
h = wisplash.FondImage.height()
wisplash.geometry("%dx%d+%d+%d" % (w,h, (wt-w)/2, (ht-h)/2 ) )
wisplash.cv = Canvas(wisplash, width=w, height=h)
wisplash.cv.pack(side='top', fill='both', expand='yes')
wisplash.cv.create_image(0, 0, image=wisplash.FondImage, anchor='nw')
wisplash.cvtexte1 = 'Wasabi'
wisplash.cvtexte2 = WsbFonction
wisplash.cvtexte3 = 'Version : ' + VersionNumber
wisplash.cvtexte4 = ProgDate
wisplash.cv.create_text(150, 100, font=("arial", 26, "bold italic"),
text=wisplash.cvtexte1, fill='#8b4513')
wisplash.cv.create_text(150, 140, font=("arial", 12, "bold"),
text=wisplash.cvtexte2, fill='#8b4513')
wisplash.cv.create_text(150, 190, font=("arial", 12, "bold"),
text=wisplash.cvtexte3, fill='#8b4513')
wisplash.cv.create_text(150, 270, font=("arial", 12, "bold"),
text=wisplash.cvtexte4, fill='#8b4513')
wisplash.bind('<1>', self.showRoot)
self.after(600, self.showRoot) |
Partager