일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- shapeArea
- 백준
- C++
- Python
- markdown
- flask
- All Longest Strings
- 피보나치 수
- collections.deque
- almostIncreasingSequence
- Sequential Search
- 파이썬머신러닝완벽가이드
- recursion
- 2015 봄학기 알고리즘
- baekjun
- codesingal
- 수 정렬하기
- centuryFromYear
- codesignal
- matrixElementsSum
- Numpy
- 2750
- Daily Commit
- cpp
- 파이썬 포렌식
- Counting cells in a blob
- til
- data_structure
- adjacentElementsProduct
- 10953
Archives
- Today
- Total
Introfor
Canvas Flower 본문
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | __author__="Introfor" """ history: 2016/12/27 : Canvas flower START """ from Tkinter import * root = Tk() root.title("Canvas_Flower") xy_size =300 canvas = Canvas(root, bg="white", width = xy_size, height =xy_size) def corner(): n=0 for i in range(10): #1 coord = 0, 0, n,xy_size line = canvas.create_line(coord, fill="black") coord = 0,0, xy_size,n line = canvas.create_line(coord,fill="black") #2 coord = 0, n, xy_size, xy_size line = canvas.create_line(coord, fill="black") coord = n, 0, xy_size, xy_size line = canvas.create_line(coord, fill="black") #3 coord = xy_size, 0, n, xy_size line = canvas.create_line(coord, fill="black") #4 coord = xy_size, n, 0, xy_size line = canvas.create_line(coord, fill="black") n += 30 def rest_width(): n=0 a=0 for i in range(9): a+=30 n=0 for j in range(10): coord = a, 0, n, xy_size line = canvas.create_line(coord, fill="black") n+=30 def rest_heigth(): n=0 a=0 for i in range(9): a+=30 n=0 for j in range(10): coord = 0, a, xy_size, n line = canvas.create_line(coord, fill="black") n+=30 corner() rest_width() rest_heigth() canvas.pack() root.mainloop() | cs |
'Doing > Python' 카테고리의 다른 글
How to install Pycharm on ubuntu (0) | 2017.02.02 |
---|---|
랜덤 뽑기 & excel 연동 (0) | 2017.02.01 |
Socket_Chatting (0) | 2016.12.22 |
List Functions (0) | 2016.10.19 |
기초 문법(1) (0) | 2016.05.27 |
Comments