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.

B1 = Tkinter.Button(top, text ="error", relief=RAISED,\

bitmap="error")

B2 = Tkinter.Button(top, text ="hourglass", relief=RAISED,\

bitmap="hourglass")

B3 = Tkinter.Button(top, text ="info", relief=RAISED,\

bitmap="info")

B4 = Tkinter.Button(top, text ="question", relief=RAISED,\

bitmap="question")

B5 = Tkinter.Button(top, text ="warning", relief=RAISED,\

bitmap="warning")

B1.pack()

B2.pack()

B3.pack()

B4.pack()

B5.pack()

top.mainloop()

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

Cursors

Python Tkinter supports quite a number of different mouse cursors available. The exact graphic may vary

according to your operating system.

Here is the list of interesting ones:

• "arrow"

• "circle"

• "clock"

• "cross"

• "dotbox"

• "exchange"

• "fleur"

TUTORIALS POINT

Simply Easy Learning

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

Saved successfully!

Ooh no, something went wrong!