28.10.2021 Views

Python Tutorial ( PDFDrive )

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B2.pack()

B3.pack()

B4.pack()

B5.pack()

top.mainloop()

When the above code is executed, it produces the following result:

Bitmaps

You would use this attribute to display a bitmap. There are following type of bitmaps available:

• "error"

• "gray75"

• "gray50"

• "gray25"

• "gray12"

• "hourglass"

• "info"

• "questhead"

• "question"

• "warning"

Example:

from Tkinter import *

import Tkinter

top = Tkinter.Tk()

TUTORIALS POINT

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!