Member Avatar for rbyrd

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()

Is this blue enough ?

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

This works. Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.