forked from israel-dryer/ttkbootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Chinese Translation (israel-dryer#212)
* Update entry.zh.md Update Chinese Translation. * Update entry.zh.md * Update entry.zh.md Update Chinese Translation * Update entry.zh.md Update Chinese Translation * Update entry.zh.md Update Chinese Translation * Update treeview.zh.md Update Chinese Translation * Update separator.zh.md Update Chinese Translation * Update and rename docs/styleguide/separator.zh.md to 文档/风格指南/separator.zh.md Update Chinese Translation * Update separator.md Update Chinese Translation * Delete 文档/风格指南 directory * Fix translation errors Fix translation errors * Fix translation errors Fix translation errors * Rename separator.md to separator.zn.md 更改错误 * go * fix fix something * fix something fix something * Update treeview.zh.md fix something * Fix translation errors * Fix errors that may be caused by copying Fix errors that may be caused by copying
- Loading branch information
Showing
5 changed files
with
38 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,51 @@ | ||
# Entry | ||
# 文本框 | ||
|
||
This widget style features a input box with a styled border. The border color | ||
is muted by default and changes to **primary** or the | ||
[selected color](index.md#colors) on _hover_. The border increases in thickness | ||
on _focus_. | ||
此小部件带有可选各种颜色的文本框。 | ||
边框颜色在失去焦点时默认为 __淡色__ , _得到焦点后_ 颜色会被更改为 **主要颜色** 或 [选定颜色](index.md#colors)。 | ||
_获得焦点时_ 边框厚度将会被增加。 | ||
|
||
This widget also supports special styles for [disabled state](#disabled-entry), | ||
[readonly state](#readonly-entry), and [invalid state](#invalid-entry). | ||
此小部件还支持 [禁用状态](#disabled-entry), | ||
[只读状态](#readonly-entry)和[无效状态](#invalid-entry)的特殊样式。 | ||
|
||
 | ||
|
||
```python | ||
# default entry style | ||
# 默认的文本框(样式) | ||
Entry() | ||
|
||
# danger colored entry style | ||
# 应用了"danger"样式的文本框 | ||
Entry(bootstyle="danger") | ||
``` | ||
|
||
## Other entry styles | ||
## 其他文本框样式 | ||
|
||
#### Disabled entry | ||
#### 被禁用的文本框 | ||
|
||
This style _cannot be applied via keywords_; it is configured through widget | ||
settings. | ||
此样式 _不能通过关键字来创建_;它是通过小部件设置进行配置的。 | ||
|
||
```python | ||
# create the widget in a disabled state | ||
# 创建一个被禁用的文本框 | ||
Entry(state="disabled") | ||
|
||
# disable the widget after creation | ||
# 创建之后再设置文本框为禁用 | ||
e = Entry() | ||
e.configure(state="disabled") | ||
``` | ||
|
||
#### Readonly entry | ||
#### 只读输入框 | ||
|
||
This style _cannot be applied via keywords_; it is configured through widget | ||
settings. | ||
此样式 _不能通过关键字来创建_;它是通过小部件设置进行配置的。 | ||
|
||
```python | ||
# create the widget in a readonly state | ||
# 创建一个只读的文本框 | ||
Entry(state="readonly") | ||
|
||
# set the widget readonly state after creation | ||
# 创建之后再设置文本框为只读 | ||
e = Entry() | ||
e.configure(state="readonly") | ||
``` | ||
|
||
#### Invalid entry | ||
#### 验证无效输入 | ||
|
||
This style _cannot be applied via keywords_, but rather is the result of a | ||
validation process implemented on the widget. In the **Cookbook** you will find | ||
an example of [how to apply validation](../cookbook/validate-user-input.md) to an | ||
`Entry` based widget. | ||
此样式 _不能通过关键字来创建_;你需要在输入框上实施验证。 | ||
在**Cookbook**中,你将会找到一个名为[如何验证无效输入并且应用到到文本框](../cookbook/validate-user-input.md)的事例。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# Separator | ||
# 分隔线 | ||
|
||
This widget style features a thin horizontal _or_ vertical line drawn in the | ||
default color (typically gray) or the [selected color](index.md#colors). | ||
此小部件样式可以用默认颜色(通常为灰色)或[选定颜色](index.md#colors)来绘制细直线或垂线。 | ||
|
||
 | ||
|
||
```python | ||
# default separator style | ||
# 默认分隔线样式 | ||
Separator() | ||
|
||
# info colored separator style - handle color | ||
# 彩色分隔符样式 'info' | ||
Separator(bootstyle="info") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# Sizegrip | ||
# 大小调整手柄 | ||
|
||
This widget style features a pattern of squares in a default muted color | ||
by default, or the [selected color](index.md#colors). | ||
此小部件样式在默认情况下显示为具有柔和颜色或[选定颜色](index.md#colors)的正方形图案。 | ||
|
||
 | ||
|
||
```python | ||
# default separator style | ||
# 默认大小调整手柄样式 | ||
Sizegrip() | ||
|
||
# info colored separator style - handle color | ||
# 应用了'info'彩色样式的大小调整手柄 | ||
Sizegrip(bootstyle="info") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters