Skip to content

Commit

Permalink
Update Chinese Translation (israel-dryer#212)
Browse files Browse the repository at this point in the history
* 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
745404527 authored Feb 19, 2022
1 parent c960e3a commit 4f25454
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 46 deletions.
45 changes: 20 additions & 25 deletions docs/styleguide/entry.zh.md
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)的特殊样式。

![entry](../assets/widget-styles/entries.gif)

```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)的事例。
9 changes: 4 additions & 5 deletions docs/styleguide/separator.zh.md
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)来绘制细直线或垂线。

![separator](../assets/widget-styles/separator.png)

```python
# default separator style
# 默认分隔线样式
Separator()

# info colored separator style - handle color
# 彩色分隔符样式 'info'
Separator(bootstyle="info")
```
6 changes: 3 additions & 3 deletions docs/styleguide/sizegrip.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ by default, or the [selected color](index.md#colors).
![sizegrip](../assets/widget-styles/sizegrip.gif)

```python
# default separator style
# default sizegrip style
Sizegrip()

# info colored separator style - handle color
# info colored sizegrip style - handle color
Sizegrip(bootstyle="info")
```
```
9 changes: 4 additions & 5 deletions docs/styleguide/sizegrip.zh.md
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)的正方形图案。

![sizegrip](../assets/widget-styles/sizegrip.gif)

```python
# default separator style
# 默认大小调整手柄样式
Sizegrip()

# info colored separator style - handle color
# 应用了'info'彩色样式的大小调整手柄
Sizegrip(bootstyle="info")
```
15 changes: 7 additions & 8 deletions docs/styleguide/treeview.zh.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
## Treeview
## 树形菜单

This widget style features a solid background header that is the default theme
background by default or the [selected color](index.md#colors).
树形菜单可以应用默认主题的纯色背景或[选定的颜色](index.md#colors)

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)
_获得焦点时_ 边框厚度将会被增加。

![treeview](../assets/widget-styles/treeview.gif)

```python
# default Treeview style
# 默认的树形图样式
Treeview()

# info colored treeview style
# 应用了'info'彩色样式的树形菜单
Treeview(bootstyle='info')
```

Expand Down

0 comments on commit 4f25454

Please sign in to comment.