python - Tkinter: smaller button -


i trying create grid of small buttons serve "status lamps", i.e. background changed according data represent (green representing ok values, red = bad).

currently, create buttons with:

buttonl3_0_1 = tk.button(framel3,bg='#003399',relief='flat',width=1,borderwidth=0,height=1) 

however default tkinter button size large. hoping pack 60x24 or @ least 30x48 buttons. might guess, these represent minutes of day. after data given day loaded, minutes represented green buttons.

is there way further reduce button size? or perhaps other method implement this. provide small screenshot of 1x12 button array. had take picture phone because of stupid mint cynamon / amd catalyst / multi monitor setup bug makes screenshots black.

i hoping pack atleast 30 buttons in same width. of course, height reduction appreciated. @ stage, background of buttons blue. enter image description here

well, managed find solution: used 6x6 transparent gif buttons image , solved problem. status functionality remains since gif transparent.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -