From 5969ee92e1115e70f899599c7516296478a9b719 Mon Sep 17 00:00:00 2001 From: maicss Date: Sat, 8 Oct 2016 22:11:35 -0500 Subject: [PATCH 1/3] =?UTF-8?q?Update=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 自定义控件.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/自定义控件.md b/自定义控件.md index ff4ac19..dfdf00f 100644 --- a/自定义控件.md +++ b/自定义控件.md @@ -202,5 +202,5 @@ def changeValue(self, value): ``` When we move the slider, the changeValue() method is called. Inside the method, we send a custom updateBW signal with a parameter. The parameter is the current value of the slider. The value is later used to calculate the capacity of the Burning widget to be drawn. The custom widget is then repainted. -The burning widget +![burning widget](./image/10-burning.png) Figure: The burning widget \ No newline at end of file From 55087fc6fa3fbd09970e93067fea99b2dad88c7a Mon Sep 17 00:00:00 2001 From: maicss Date: Sat, 8 Oct 2016 22:11:38 -0500 Subject: [PATCH 2/3] =?UTF-8?q?Update=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 自定义控件.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/自定义控件.md b/自定义控件.md index dfdf00f..b08d681 100644 --- a/自定义控件.md +++ b/自定义控件.md @@ -202,5 +202,4 @@ def changeValue(self, value): ``` When we move the slider, the changeValue() method is called. Inside the method, we send a custom updateBW signal with a parameter. The parameter is the current value of the slider. The value is later used to calculate the capacity of the Burning widget to be drawn. The custom widget is then repainted. -![burning widget](./image/10-burning.png) -Figure: The burning widget \ No newline at end of file +![burning widget](./image/10-burning.png) \ No newline at end of file From 29e27caac6b2749c3affb956ac04f90e3cd39e9c Mon Sep 17 00:00:00 2001 From: maicss Date: Sat, 8 Oct 2016 22:14:33 -0500 Subject: [PATCH 3/3] =?UTF-8?q?Update=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 自定义控件.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/自定义控件.md b/自定义控件.md index b08d681..d89733d 100644 --- a/自定义控件.md +++ b/自定义控件.md @@ -155,7 +155,7 @@ if __name__ == '__main__': ex = Example() sys.exit(app.exec_()) ``` -In our example, we have a QSlider and a custom widget. A slider controls the custom widget. This widget shows graphically the total capacity of a medium and the free space available to us. The minimum value of our custom widget is 1, the maximum is 750. If we reach value 700, we begin drawing in red colour. This normally indicates overburning. +本例中,我们使用了`QSlider`和一个自定义组件。 and a custom widget. A slider controls the custom widget. This widget shows graphically the total capacity of a medium and the free space available to us. The minimum value of our custom widget is 1, the maximum is 750. If we reach value 700, we begin drawing in red colour. This normally indicates overburning. The burning widget is placed at the bottom of the window. This is achieved using one QHBoxLayout and one QVBoxLayout. ```