From 9cb9c0b9d352c2ebdaad5cb4c829c0cd8f3a5a97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Tue, 13 Nov 2012 12:45:27 -0300
Subject: [PATCH toolkit 2/2] Add insensitive button to buttons testcase - SL
#4172
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
tests/graphics/buttons.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/graphics/buttons.py b/tests/graphics/buttons.py
index 6e6969a..a222215 100644
a
|
b
|
button = Gtk.Button('Button') |
46 | 46 | vbox.pack_start(button, False, False, 1) |
47 | 47 | button.show() |
48 | 48 | |
| 49 | # test Gtk.Button insensitive: |
| 50 | |
| 51 | insensitive_button = Gtk.Button('Insensitive Button') |
| 52 | vbox.pack_start(insensitive_button, False, False, 1) |
| 53 | insensitive_button.props.sensitive = False |
| 54 | insensitive_button.show() |
| 55 | |
49 | 56 | # test Gtk.ToggleButton: |
50 | 57 | |
51 | 58 | toggle_button = Gtk.ToggleButton('ToggleButton') |