Skip to content

Commit 49ee14a

Browse files
committed
ui
1 parent 2d8104c commit 49ee14a

31 files changed

+655
-144
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Common/.DS_Store

0 Bytes
Binary file not shown.

Common/Common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ def cur_file_dir():
2121
elif os.path.isfile(path):
2222
return os.path.dirname(path)
2323

24+
@staticmethod
25+
def GetMidString(text,head,end):
26+
strmid = text[text.find(head)+len(head):]
27+
return strmid[0:strmid.find(end)]
28+
2429

Common/File/FileUtil.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ def GetLastDirofDir(path):
135135
ret = path[0:idx]
136136
return ret
137137

138+
def GetDirOfPath(path):
139+
str_split = '/'
140+
if Platform.isWindowsSystem():
141+
str_split = '\\'
142+
idx = path.rfind(str_split)
143+
144+
ret = path[0:idx]
145+
return ret
146+
138147
# 不包含.
139148
@staticmethod
140149
def GetFileExt(path):
@@ -187,6 +196,25 @@ def CreateDir(dir):
187196
if os.path.exists(dir)==False:
188197
os.mkdir(dir)
189198

199+
@staticmethod
200+
# 循环创建
201+
def CreateDir2(dir):
202+
dirlast = FileUtil.GetDirOfPath(dir)
203+
listdir = []
204+
while(True):
205+
if os.path.exists(dirlast)==False:
206+
# print("dirlast=",dirlast)
207+
listdir.insert(0,dirlast)
208+
dirlast = FileUtil.GetDirOfPath(dirlast)
209+
else:
210+
break
211+
212+
if os.path.isdir(dir):
213+
listdir.append(dir)
214+
215+
for dirtmp in listdir:
216+
if os.path.exists(dirtmp)==False:
217+
os.mkdir(dirtmp)
190218

191219
@staticmethod
192220
def RemoveDir(dir):
513 Bytes
Binary file not shown.
203 Bytes
Binary file not shown.

ProjectConfig/.DS_Store

0 Bytes
Binary file not shown.

ProjectConfig/CmdDefault/.DS_Store

0 Bytes
Binary file not shown.
6 KB
Binary file not shown.
Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<root>
33
<cn>
4-
这是一款针对儿童的有趣的涂色绘画软件.
5-
从孩子的绘画兴趣启蒙作为出发点,为孩子们提供一个有趣实用的涂色绘画工具,让他们创作出属于自己的美妙绝伦的绘画作品,充分发挥孩子们的想象力和创造力,感受绘画及色彩的乐趣。
6-
我们产品的特点:
7-
色彩随心涂:简易操作,宝宝轻松上手。
8-
任意自由画 :在线条和色彩的世界天马行空,尽情挥洒想象力。
9-
保存绘画作品:保留孩子们的创作成果。
10-
丰富的线稿:100多种精美的动物图片。
11-
自定义颜色:直接点选颜色或者直接输入颜色RGB,让宝宝能够选择任何颜色。
12-
独特颜色吸管:直接再画作中选取想要的颜色,方便又快捷。
13-
自动识别边界:让孩子们在图案上涂色不会超出界。
4+
_KEY_CN_
145
</cn>
156

167

17-
<en>This is a children's interesting coloring software.
18-
As a starting point from the child's interest in drawing enlightenment, provide an interesting and practical color painting tools for the children, let them create their own wonderful paintings, give full play to the children's imagination and creativity, and color painting feel fun.
19-
20-
21-
The features of our products:
22-
Color with heart smear: easy operation, baby easy to hand.
23-
Free painting: in the world of lines and colors, the sky and the sky, and all the imagination.
24-
Save the paintings: keep the children's creative work.
25-
Rich line draft: more than 100 beautiful animal pictures.
26-
Custom color: directly select the color or direct input color RGB, so that the baby can choose any color.
27-
Unique color sucker: it is convenient and quick to choose the desired color in the direct painting.
28-
Automatic recognition of boundaries: let the children in the pattern painted not transcendence.
8+
<en>
9+
_KEY_EN_
2910
</en>
3011

3112
</root>

0 commit comments

Comments
 (0)