dabo Commit
Revision 2987
Date: 2007-03-26 12:20:40 -0700 (Mon, 26 Mar 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/2987

Changed:
U   trunk/dabo/ui/uiwx/dEditor.py

Log:
autoComplete under Windows was adding the default Dabo icon to each entry, 
causing the longer ones to get cut off in the popup. This fixes that by 
explicitly setting the icon to zero.

Also fixed a comment to reflect a change I made a little while ago.

Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2007-03-26 19:11:19 UTC (rev 2986)
+++ trunk/dabo/ui/uiwx/dEditor.py       2007-03-26 19:20:40 UTC (rev 2987)
@@ -401,7 +401,7 @@
 
                ## Autocomplete settings:
                self.AutoCompSetIgnoreCase(True)
-               self.AutoCompSetAutoHide(True)   ## don't hide when the typed 
string no longer matches
+               self.AutoCompSetAutoHide(True)   ## hide when the typed string 
no longer matches
                self.AutoCompStops(" ")  ## characters that will stop the 
autocomplete
                self.AutoCompSetFillUps(".(")
                # This lets you go all the way back to the '.' without losing 
the AutoComplete
@@ -1330,7 +1330,10 @@
                if words:
                        words.sort(lambda a,b: cmp(a.upper(), b.upper()))
                        try:
-                               self.AutoCompShow(len(word), " ".join(words))
+                               # For some reason, the STC editor in Windows 
likes to add icons
+                               # even if they aren't requested. This 
explicitly removes them.
+                               wds = ["%s?0" % wd for wd in words]             
                
+                               self.AutoCompShow(len(word), " ".join(wds))
                        except:
                                pass
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to