testinggtk r277 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r277 - trunk/tests
- Date: Sat, 28 Jun 2008 09:31:29 +0000 (UTC)
Author: bjornl
Date: Sat Jun 28 09:31:29 2008
New Revision: 277
URL: http://svn.gnome.org/viewvc/testinggtk?rev=277&view=rev
Log:
Test getting/setting gtk.NO_WINDOW flag
Modified:
trunk/tests/test_widget.py
Modified: trunk/tests/test_widget.py
==============================================================================
--- trunk/tests/test_widget.py (original)
+++ trunk/tests/test_widget.py Sat Jun 28 09:31:29 2008
@@ -132,3 +132,11 @@
assert widget.get_has_tooltip()
widget.set_has_tooltip(False)
assert not widget.get_has_tooltip()
+
+def test_set_get_no_window_flag():
+ widget = gtk.Button()
+ assert widget.flags() & gtk.NO_WINDOW
+ widget.unset_flags(gtk.NO_WINDOW)
+ assert (widget.flags() & gtk.NO_WINDOW) == 0
+ widget.set_flags(gtk.NO_WINDOW)
+ assert widget.flags() & gtk.NO_WINDOW
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]