Draw a line,drawline,from Tkinter
Draw a line,drawline,from Tkinter
from Tkinter import *root = Tk()#root.option_readfile('optionDB')root.title('Canvas')canvas = Canvas(root, width =400, height=400)#canvas.create_bitmap(355, 53, bitmap='questhead')canvas.create_line(105,10,200,105)canvas.pack()root.mainloop()
- Demonstrates creating new strings with a for loop,,mes
- Assignment to slices: Replace some items,assignmentsli
- Define and call a function inside another function,def
- Tuple indexing and slicing,tupleslicing,T = (1, 2, 3
- Filter demo: lambda function inside,filterlambda,foo =
- Handle File reading Exception,handlereading,import sys
热门文章:
相关内容
- Demonstrates creating new strings with a for loop,,message = ra
- Assignment to slices: Replace some items,assignmentslices,a = ['spa
- Define and call a function inside another function,defineinside,def
- Tuple indexing and slicing,tupleslicing,T = (1, 2, 3
- Filter demo: lambda function inside,filterlambda,foo = [2, 18
- Handle File reading Exception,handlereading,import systr
- Create a base class for exceptions defined by a module,exceptionsde
- Assign list to a list item,assignitem,L = ['Alread
- String literals span multiple lines in several ways.,literalsmultip
- A Simple function definition: return a tuple.,definitiontuple,def q
评论关闭