def geometry(self):
        rect = self.widget.geometry()
        return Rect(rect.x(), rect.y(), rect.width(), rect.height())
It works if the value ends in a slash.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_window.py/QtWindow.geometry--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/settings_tests/tests.py/TrailingSlashURLTests.test_end_slash