Draw oval using Python,ovalpython,from Tkinter
Draw oval using Python,ovalpython,from Tkinter
from Tkinter import *class AllTkinterWidgets: def __init__(self, master): frame = Frame(master, width=500, height=400, bd=1) frame.pack() iframe5 = Frame(frame, bd=2, relief=RAISED) iframe5.pack(expand=1, fill=X, pady=10, padx=5) c = Canvas(iframe5, bg='white', width=340, height=100) c.pack() for i in range(25): c.create_oval(5+(4*i),5+(3*i),(5*i)+60,(i)+60, fill='gray70') c.create_text(260, 80, text='Canvas', font=('verdana', 10, 'bold')) iframe5.pack(expand=1, fill=X, pady=10, padx=5)root = Tk()all = AllTkinterWidgets(root)root.title('Tkinter Widgets')root.mainloop()
- Functional Programming Tools: map: More than one sequenc
- range() function with step,rangefunction,print '\n\nC
- Divide in Python,divideinpython,print '19 /
- Fibonacci sequences using generators,,'''Fibonacci
- Pass immutable and mutable value into function,immutab
- Nest lists (create lists containing other lists),lists
热门文章:
相关内容
- Functional Programming Tools: map: More than one sequence may be pass
- range() function with step,rangefunction,print '\n\nC
- Divide in Python,divideinpython,print '19 /
- Fibonacci sequences using generators,,'''Fibonacci
- Pass immutable and mutable value into function,immutablemutable,def
- Nest lists (create lists containing other lists),listscontaining,q
- Random integer chosen from range(6),randomchosen,import rando
- Default Argument Values: If you don't want the default to be
- Keyword Parameters and Defaults,parametersdefaults,def hello_1(
- Label font,labelfont,from Tkinter
评论关闭