From 2b9f09b32ad688b48df5171fcf47c8c55856f6a6 Mon Sep 17 00:00:00 2001 From: Jonathan Corwin Date: Fri, 23 Dec 2011 21:52:54 +0000 Subject: [PATCH] Minor fixes --- openlp/core/ui/screen.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openlp/core/ui/screen.py b/openlp/core/ui/screen.py index fab2e0f35..1f3a1e7f8 100644 --- a/openlp/core/ui/screen.py +++ b/openlp/core/ui/screen.py @@ -224,8 +224,10 @@ class ScreenList(object): def which_screen(self, window): """ - Return the Screen number that the centre of the passed window is in - Window is a QWidget + Return the screen number that the centre of the passed window is in. + + ``window`` + A QWidget we are finding the location of. """ x = window.x() + (window.width() / 2) y = window.y() + (window.height() / 2) @@ -234,7 +236,6 @@ class ScreenList(object): if x >= size.x() and x <= (size.x() + size.width()) \ and y >= size.y() and y <= (size.y() + size.height()): return screen[u'number'] - return None def _load_screen_settings(self): """