0

Can anyone tell me how to get rid of the white boxes around the buttons? I want the boxes to be blue so the buttons appear on an entirely blue panel at the bottom of the ffame. I'm using OSX 10.6.8 and Python 2.7. Thanks in advance.

from Tkinter import *

class App:
    def __init__(self):
        root = Tk()
        root.wm_resizable(0,0)
        self.frame = Frame(root, background="blue")
        self.frame.pack()

        self.cnvs = Canvas(self.frame, width=800, height=800, background = "#faf0e6")
        self.cnvs.pack(fill=X)

        self.btnTest = Button(self.frame, text="Test")
        self.btnTest.pack(side=LEFT, expand=1)

        self.btnClear = Button(self.frame, text="Clear Test")
        self.btnClear.pack(side=RIGHT, expand=1)

        root.mainloop()

if __name__ == '__main__':
    App()
2
Contributors
2
Replies
32
Views
3 Years
Discussion Span
Last Post by rbyrd
0

Is this blue enough ?

        self.btnClear = Button(
            self.frame, text="Clear Test", relief = FLAT,
            bg = "blue",highlightbackground="blue", fg="white")

Edited by Gribouillis

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.