Ticket #4172: 0002-Add-insensitive-button-to-buttons-testcase-SL-4172.patch

File 0002-Add-insensitive-button-to-buttons-testcase-SL-4172.patch, 1.1 KB (added by manuq, 11 years ago)

Add insensitive button to buttons testcase.

  • tests/graphics/buttons.py

    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') 
    4646vbox.pack_start(button, False, False, 1)
    4747button.show()
    4848
     49# test Gtk.Button insensitive:
     50
     51insensitive_button = Gtk.Button('Insensitive Button')
     52vbox.pack_start(insensitive_button, False, False, 1)
     53insensitive_button.props.sensitive = False
     54insensitive_button.show()
     55
    4956# test Gtk.ToggleButton:
    5057
    5158toggle_button = Gtk.ToggleButton('ToggleButton')