[ocrfeeder] Change the DataBox's text argument's default value to '' instead of NULL
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Change the DataBox's text argument's default value to '' instead of NULL
- Date: Tue, 27 Jul 2010 22:07:51 +0000 (UTC)
commit 1852ac7c45db2aab36ad53b5ab02212851a22da4
Author: Joaquim Rocha <jrocha igalia com>
Date: Thu Jul 8 10:40:45 2010 +0200
Change the DataBox's text argument's default value to '' instead of NULL
studio/dataHolder.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/studio/dataHolder.py b/studio/dataHolder.py
index f1e5237..0902b8a 100644
--- a/studio/dataHolder.py
+++ b/studio/dataHolder.py
@@ -70,7 +70,7 @@ class DataBox(gobject.GObject):
(gobject.TYPE_INT,))
}
- def __init__(self, x = 0, y = 0, width = 0, height = 0, image = None, type = TEXT_TYPE, text = None):
+ def __init__(self, x = 0, y = 0, width = 0, height = 0, image = None, type = TEXT_TYPE, text = ''):
super(DataBox, self).__init__()
self.x = int(x)
self.y = int(y)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]