Bitmap Button in python tkinter 

(Using for  Loop)


Bitmap represents a pixel of the image. A Bitmap is a file format or memory organization of rows and columns of bits (or pixels) that collectively display a graphical representation. Most graphic images contain thousands of bits. Also called a bit array, Bitmap index, raster image, and sometimes pixmap, a bitmap is a domain and range of bits that present
a rectangular visual made up of pixels. A Bitmap is a type of memory organization or image file format used to store digital images.


******Your code Below*****

from tkinter import *

root = Tk()
root.title("Button Bitmap")
root.geometry("800x600+450+86")


List = ['error', 'gray75', 'gray50', 'gray25', 'gray12',
'hourglass', 'info', 'questhead', 'question','warning']

for L in List:
Button(root, bitmap=L,width=50, height=30,bg="#FF4040", fg="green" ).pack(pady=10)

root.mainloop()

********End Code**********

Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.




Enjoy..............

If You Want To Learn More Plz Visit www.newpost24.com

If You Find Specific link plz Follow This Page.



Post a Comment

أحدث أقدم