In this video I'll show you how to use Bitmaps on your Buttons for Tkinter and Python.
You can use your own bitmap images, but there are nine bitmaps that come with Tkinter that you can use. They are:
error
gray75
gray50
gray12
hourglass
info
questhead
question
warning
And you just use them by slapping them into your Button code:
Button(root, bitmap="error)
And that's all there is to it! You can use your own .xbm files if you want, but I generally recommend not doing that. Instead just use a png image file like we've done in other videos.
On this page of the site you can watch the video online Button Bitmaps - Python Tkinter GUI Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Codemy.com 05 January 2021, share the link with friends and acquaintances, this video has already been watched 6,274 times on youtube and it was liked by 177 viewers. Enjoy your viewing!