Hi, everybody!
What i'm trying to do is to write my own intellisense-like completion
for string entering.
Here is use case:
Control looks like this:
···
-------------------------------
Enter some text |\/|
-------------------------------
When user clicks on DOWN ARROW - all possible choices should appear
in popup window.
When user start entering some text - popup window should appear.
With possible choices - should be loaded from database dinamically.
Choices should look like wx.ListCtrl (virtual) - with images and
colourful text.
If user proceed with entering, choices automagically got filtered.
Native look & feel - a must.
So now i'm evaluating wxComboBox for native look and feel - looks ok
but i can't intercept mouse click.
Is it possible?
- python2.3
- wxPython 2.6.something
- Windows XP.
P.S.
I'm writing db aware application for some time now and i'm suffering
from lack of db controls like dbgrid, ergonomic datepicker
(Andrea Gavana - i know you are a master in writing custom controls.
Don't you organization want such a thing? ;))
I have some thougts about what wxPython (and wxWidgets) lacks in
this area, if someone interested i can write it there.
P.P.S.
I have evaluated Dabo framework - but it's not an option for me.
Because my data can be up to 100 000 records long.
Dabo dbgrid load them way toooo long and eats up A LOT of memory.
Nothing personal - i appreciate your work guys.
But my customers wants special ergonomic controls.
--
mailto:igor@tyumbit.ru
I have recently written a similar thing using a wx.TextCtrl and a virtual
wx.ListCtrl, but of course the ListCtrl is always visible - which is what
I want in *my* case. What about putting the list in a pop-up dialog that
AFAIK, wxpopup is "misbehaving" on ms win (comments in wxdemo on that).
So it's not recommended for using.
contains nothing else - so that the dialog appears when (say) the text
control receives focus, or the first text is entered and is automatically
closed when the user clicks on a list item to make a selection? If the
That's ok. But wxTextCtrl doesn't contain graphical DOWN arrow. What
if user wants to use mouse?
···
--
mailto:igor@tyumbit.ru
Hello, Chris.
I have checked you solution.
Results are below:
def DrawSelf(self, dc):
rend = wx.RendererNative_GetDefault()
import wx
wx.RendererNative_GetDefault()
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute 'RendererNative_GetDefault'
wxPython 2.6.
WinXP
python 2.3
Seems, like the only way to get what i need is to draw bitmap button in
wxTextCtrl?
···
--
Ñ óâàæåíèåì, Ïðèùåïîâ Èãîðü
mailto:igor@tyumbit.ru
Hello, Chris.
I have checked you solution.
Results are below:
> def DrawSelf(self, dc):
> rend = wx.RendererNative_GetDefault()
>>> import wx
>>> wx.RendererNative_GetDefault()
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
AttributeError: 'module' object has no attribute 'RendererNative_GetDefault'
wxPython 2.6.
WinXP
python 2.3
I have checked it. It works fine with wxPython 2.6.2, Python 2.4,
WinXP and GTK. I'm not sure exactly when wxNativeRenderer was exposed
to wxPython, but apparently it was sometime after 2.6
···
On 11/20/05, Igor Prischepoff <igor@tyumbit.ru> wrote:
Seems, like the only way to get what i need is to draw bitmap button in
wxTextCtrl?
--
С уважением, Прищепов Игорь
mailto:igor@tyumbit.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
I have checked it. It works fine with wxPython 2.6.2, Python 2.4,
WinXP and GTK. I'm not sure exactly when wxNativeRenderer was exposed
to wxPython, but apparently it was sometime after 2.6
Ooops, where did you get 2.6.2?
Is it stable?
Officially released only 2.6.1.0 - it's on www.wxpython.org as
"hottest release".
My wxpython is 2.6.1.0 also.
···
--
Igor.
mailto:igor@tyumbit.ru
> I have checked it. It works fine with wxPython 2.6.2, Python 2.4,
> WinXP and GTK. I'm not sure exactly when wxNativeRenderer was exposed
> to wxPython, but apparently it was sometime after 2.6
Ooops, where did you get 2.6.2?
Is it stable?
Officially released only 2.6.1.0 - it's on www.wxpython.org as
"hottest release".
My wxpython is 2.6.1.0 also.
Hmm, it's in 2.6.1.1 pre-release too. It must have been added then.
You can find the 2.6.2 pre-releases at http://kevino.theolliviers.com/wxpython/
···
On 11/21/05, Igor Prischepoff <igor@tyumbit.ru> wrote:
--
Igor.
mailto:igor@tyumbit.ru