[wxPython] Re: [PyCrust] AutoComplete window size

Patrick K. O'Brien:

   wxSTC questions should really go to the wxPython list so Robin and others
can see them.

Is there a way to change the size, particularly the width, of the
auto-completion list window? Some attribute names can be long
and it seems like the window could stand to be a bit wider.

   The Windows and GTK+ platform layers size the list box to fit the widest
string. It looks like the wxSTC platform code (in
contrib\stc\contrib\src\stc\PlatWX.cpp) does not do this although there is a
call to GetBestSize which may be returning a smaller width than will fit the
widest string.

   Neil

The latest wxPython beta (2.3.2b5) still generates an autocomplete window
that is too narrow for its items. Is this something that can be fixed? Take
a look at just about any object in PyCrust to see what I mean. Here is the
simplest example. Just type "shell." and scroll through the list:

Welcome To PyCrust 0.6.1 - The Flakiest Python Shell
Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
Startup script executed: C:\Code\.pythonrc.py

···

shell.

---
Patrick K. O'Brien
Orbtech (http://www.orbtech.com)
"I am, therefore I think."

-----Original Message-----
From: pycrust-users-admin@lists.sourceforge.net
[mailto:pycrust-users-admin@lists.sourceforge.net]On Behalf Of Neil Hodgson
Sent: Thursday, August 02, 2001 6:05 PM
To: pycrust-users@lists.sourceforge.net
Cc: wxpython-users@lists.wxwindows.org
Subject: Re: [PyCrust] AutoComplete window size

Patrick K. O'Brien:

   wxSTC questions should really go to the wxPython list so Robin and others
can see them.

Is there a way to change the size, particularly the width, of the
auto-completion list window? Some attribute names can be long
and it seems like the window could stand to be a bit wider.

   The Windows and GTK+ platform layers size the list box to fit the widest
string. It looks like the wxSTC platform code (in
contrib\stc\contrib\src\stc\PlatWX.cpp) does not do this although there is a
call to GetBestSize which may be returning a smaller width than will fit the
widest string.

   Neil

_______________________________________________
PyCrust-users mailing list
PyCrust-users@lists.sourceforge.net

The latest wxPython beta (2.3.2b5) still generates an autocomplete window
that is too narrow for its items. Is this something that can be fixed?

I've noticed this too and will take a look at it the next time I am working
in the wxSTC code.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!