Tải bản đầy đủ (.pdf) (1 trang)

Graphical user interfaces for Python programs Phần 7 pdf

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (132.37 KB, 1 trang )

390 APPENDIX A MAPPING TK TO TKINTER
l
Table A.12 Create line
Tk Tkinter
canvas create line x1 y1 xN yN
[option value ]
canvas.create_line(x1, y1, xN, yN,
[option=value ])
Table A.13 Line options
Tk Tkinter
-arrow none|first|last|both arrow=NONE|FIRST|LAST|BOTH
-arrowshape shape arrowshape=shape
-capstyle butt|projecting|round capstyle=BUTT|PROJECTING|ROUND
-fill color fill=color
-joinstyle bevel|miter|round joinstyle=BEVEL|MITER|ROUND
-smooth boolean smooth=boolean
-splinesteps number splinesteps=number
-stipple bitmap stipple=bitmap
-tags tagList tags=tagList
-width outlineWidth width=outlineWidth
Table A.14 Create oval
Tk Tkinter
canvas create oval x1 y1 x2 y2
[option value ]
canvas.create_oval(x1, y1, x2, y2
[, option=value ])
Table A.15 Oval options
Tk Tkinter
-fill color fill=color
-outline color outline=color
-stipple bitmap stipple=bitmap


-tags tagList tags=tagList
-width outlineWidth width=outlineWidth

×