To practice my English skill, I will use English to finish my idea.
Because of my study, I have to finish it later, but trust me, I will finish it.
Introduce
In our daily life, we need to process the sentences, which includes chaotic characters, usually.
To solve this problem, I prepare to compile my own tool.
- Lanage
Python
- UI
Tkinter
The reason why I use Python
and Tkinter
is that I have used before. Meanwhile, I can finish it quickly.
Feature
- Real-time processing
- Usage record
- Adaptive interface
- Small function with my heart
- Character conversion
- Punctuation modification
- Spaces and blank lines
- Links convert
- Markdown shortcut
- Find and Replace
- so on
Procedure
Continuous updating
Real-time processing
Usage record
Adaptive interface
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20def window():
root = Tk() # 建立根窗口 自定义的Tk对象名称,也可以取其它名称
screenWidth = root.winfo_screenwidth() # 屏幕宽度
screenHeight = root.winfo_screenheight() # 屏幕高度
w = 550 # 窗口宽
x = (screenWidth - w) / 2 # 窗口左上角x轴位置
y = (screenHeight - w) / 2 # 窗口左上角y轴位置
root.geometry("%dx%d+%d+%d" % (w, w, x, y)) # 表示距离屏幕左上角(400,200)
root.title("Text tool") # 窗口的标题
root.geometry("550x550") # 窗口的大小
root.configure(bg='white')
# root.iconbitmap("snake.ico")
maintext = Text(root,bg='#2B2B2B',borderwidth=0,font=('microsoft yahei', 14, 'bold'),foreground='white')
maintext.place(relx=0, rely=0, relwidth=1, relheight=1)
root.mainloop() # 让程序继续运行,同时进入等待与处理窗口事件,放在程序最后一行Small function with my heart
Character conversion
Punctuation modification
Spaces and blank lines
Links convert
Markdown shortcut
Find and Replace