개정판 1b502652
SymbolGenerator 수정 및 potrace를 이용한 svg파일 생성
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
90 | 90 |
|
91 | 91 |
return symbolNametList |
92 | 92 |
|
93 |
''' |
|
94 |
@brief delete added symbol data |
|
95 |
''' |
|
96 |
def deleteSymbol(self, dbPath, imagePath): |
|
97 |
ret = False |
|
98 |
try: |
|
99 |
conn = sqlite3.connect(dbPath) |
|
100 |
cursor = conn.cursor() |
|
101 |
sql = "DELETE FROM Symbol WHERE path = ?" |
|
102 |
try: |
|
103 |
cursor.execute(sql, (imagePath,)) |
|
104 |
conn.commit() |
|
105 |
ret = True |
|
106 |
except Exception as ex: |
|
107 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
|
108 |
ret = False |
|
109 |
finally: |
|
110 |
conn.close() |
|
111 |
return (ret, imagePath) |
|
112 |
|
|
93 | 113 |
pass |
내보내기 Unified diff