@@ -658,7 +658,10 @@ def _set_image_for_button(self, button):
658
658
659
659
def _Button (self , text , image_file , toggle , command ):
660
660
if not toggle :
661
- b = tk .Button (master = self , text = text , command = command )
661
+ b = tk .Button (
662
+ master = self , text = text , command = command ,
663
+ relief = "flat" , overrelief = "groove" , borderwidth = 1 ,
664
+ )
662
665
else :
663
666
# There is a bug in tkinter included in some python 3.6 versions
664
667
# that without this variable, produces a "visual" toggling of
@@ -667,8 +670,10 @@ def _Button(self, text, image_file, toggle, command):
667
670
# https://bugs.python.org/issue25684
668
671
var = tk .IntVar (master = self )
669
672
b = tk .Checkbutton (
670
- master = self , text = text , command = command ,
671
- indicatoron = False , variable = var )
673
+ master = self , text = text , command = command , indicatoron = False ,
674
+ variable = var , offrelief = "flat" , overrelief = "groove" ,
675
+ borderwidth = 1
676
+ )
672
677
b .var = var
673
678
b ._image_file = image_file
674
679
if image_file is not None :
0 commit comments