[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8039 - trunk/gnue-forms/src/GFObjects
From: |
btami |
Subject: |
[gnue] r8039 - trunk/gnue-forms/src/GFObjects |
Date: |
Sun, 9 Oct 2005 23:24:06 -0500 (CDT) |
Author: btami
Date: 2005-10-09 23:24:06 -0500 (Sun, 09 Oct 2005)
New Revision: 8039
Modified:
trunk/gnue-forms/src/GFObjects/GFScrollBar.py
Log:
fix for designer started with .gfd containing scrollbar
Modified: trunk/gnue-forms/src/GFObjects/GFScrollBar.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFScrollBar.py 2005-10-07 04:24:18 UTC
(rev 8038)
+++ trunk/gnue-forms/src/GFObjects/GFScrollBar.py 2005-10-10 04:24:06 UTC
(rev 8039)
@@ -84,10 +84,13 @@
@return: tuple (current-record, record-count, rows)
"""
- return (self._block._currentRecord, self._block._recordCount,
+ try:
+ return (self._block._currentRecord, self._block._recordCount,
self._block._rows)
+ except AttributeError:
+ # let designer start
+ return (0, 0, 1)
-
# ---------------------------------------------------------------------------
# Adjust the ui scrollbar to reflect new position and/or record-cound
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8039 - trunk/gnue-forms/src/GFObjects,
btami <=