Set Frame background color : Frame : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » Frame »

 

Set Frame background color


Set Frame background color


from Tkinter import *

class App:
  def __init__(self, root):
    fm = Frame(root, width=300, height=200, bg="blue")
    fm.pack(side=TOP, expand=NO, fill=NONE)
    
    

root = Tk()
display = App(root)
root.mainloop()

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo GUI Tk
» Frame