testinggtk r202 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r202 - trunk/tests
- Date: Sat, 21 Jun 2008 17:10:01 +0000 (UTC)
Author: bjornl
Date: Sat Jun 21 17:10:01 2008
New Revision: 202
URL: http://svn.gnome.org/viewvc/testinggtk?rev=202&view=rev
Log:
Test subclassing gtk.MenuBar
Modified:
trunk/tests/test_menubar.py
Modified: trunk/tests/test_menubar.py
==============================================================================
--- trunk/tests/test_menubar.py (original)
+++ trunk/tests/test_menubar.py Sat Jun 21 17:10:01 2008
@@ -2,6 +2,8 @@
Tests for the ``gtk.MenuBar`` class.
'''
import gtk
+from gtk import gdk
+import gobject
import utils
def test_default_attributes():
@@ -30,3 +32,13 @@
'''
menubar = gtk.MenuBar()
menubar.append(gtk.Label())
+
+def test_subclass_menubar():
+ '''
+ Ensure that subclassing the ``gtk.MenuBar`` class works as
+ expected.
+ '''
+ class MyMenuBar(gtk.MenuBar):
+ pass
+ gobject.type_register(MyMenuBar)
+ bar = MyMenuBar()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]