changeset 18:09b7a34603c0

Made a few fixes related to the QUASIMODE_MAX_SUGGESTIONS variable.
author Atul Varma <varmaa@toolness.com>
date Fri, 22 Feb 2008 17:50:37 -0600
parents 981fc94ec6d0
children 422dc98d3080
files enso/ui/quasimode/__init__.py enso/ui/quasimode/layout.py enso/ui/quasimode/window.py
diffstat 3 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/enso/ui/quasimode/__init__.py	Fri Feb 22 16:32:02 2008 -0600
+++ b/enso/ui/quasimode/__init__.py	Fri Feb 22 17:50:37 2008 -0600
@@ -59,7 +59,6 @@
 from enso.utils.strings import stringRatioBestMatch
 from enso.utils.xml_tools import escapeXml
 from enso.ui.quasimode.suggestionlist import TheSuggestionList
-from enso.ui.quasimode.suggestionlist import MAX_SUGGESTIONS
 from enso.ui.quasimode.window import TheQuasimodeWindow
 
 # Import the standard allowed key dictionary, which relates virtual
--- a/enso/ui/quasimode/layout.py	Fri Feb 22 16:32:02 2008 -0600
+++ b/enso/ui/quasimode/layout.py	Fri Feb 22 17:50:37 2008 -0600
@@ -46,8 +46,6 @@
 from enso.ui.graphics import getTextSize
 from enso.utils.xml_tools import escapeXml
 
-from enso.config import MAX_SUGGESTIONS
-
 
 # ----------------------------------------------------------------------------
 # Layout Constants
--- a/enso/ui/quasimode/window.py	Fri Feb 22 16:32:02 2008 -0600
+++ b/enso/ui/quasimode/window.py	Fri Feb 22 17:50:37 2008 -0600
@@ -69,7 +69,6 @@
 from enso.ui.quasimode.layout import HEIGHT_FACTOR
 from enso.ui.quasimode.layout import DESCRIPTION_SCALE
 from enso.ui.quasimode.layout import AUTOCOMPLETE_SCALE, SUGGESTION_SCALE
-from enso.ui.quasimode.suggestionlist import MAX_SUGGESTIONS
 from enso import config
 
 
@@ -114,7 +113,7 @@
         top += height
     
         self.__suggestionWindows = []
-        for i in range( MAX_SUGGESTIONS ):
+        for i in range( config.QUASIMODE_MAX_SUGGESTIONS ):
             height = int( pointsToPixels( SUGGESTION_SCALE[-1] )*HEIGHT_FACTOR )
             self.__suggestionWindows.append( TextWindow(
                 height = height,