Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Tkinter Frame Widget

from tkinter import *
root = Tk()
frame = Frame(root)
frame.pack()
redbutton = Button(frame, text = 'Red', fg ='red')
redbutton.pack( side = LEFT)
greenbutton = Button(frame, text = 'Brown', fg='brown')
greenbutton.pack( side = LEFT )
bluebutton = Button(frame, text ='Blue', fg ='blue')
bluebutton.pack( side = LEFT )
blackbutton = Button(frame, text ='Black', fg ='black')
blackbutton.pack( side = LEFT)
root.mainloop()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Tkinter #Frame #Widget
ADD COMMENT
Topic
Name
2+8 =