From 880daac58d7e650d33051e7b983852003f1275e9 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Tue, 18 Nov 2008 11:17:10 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@526 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_fill_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/cl_fill_client.py b/pym/cl_fill_client.py index 2b0b6db..514bda7 100644 --- a/pym/cl_fill_client.py +++ b/pym/cl_fill_client.py @@ -55,6 +55,7 @@ class fillVars(object, cl_base.glob_attr): if resolution: self.Set('hr_x11_width',resolution[0]) return resolution[1] + return "" def get_hr_x11_width(self): """Получить ширину экрана в пикселах""" @@ -62,6 +63,7 @@ class fillVars(object, cl_base.glob_attr): if resolution: self.Set('hr_x11_height',resolution[1]) return resolution[0] + return "" def get_hr_x11_standart(self): """Получить ближайший стандартный размер изображения к текущему разрешению""" @@ -69,7 +71,7 @@ class fillVars(object, cl_base.glob_attr): widthVal = self.Get('hr_x11_width') heightVal = self.Get('hr_x11_height') if not widthVal or not heightVal: - return None + return "" width = int(widthVal) height = int(heightVal) res = [(1024,768),