473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

wxPython, wxcombobox opening

Hi,

Does somebody knows a way to automaticely open the list part of a
wxCombobox when it gets the focus ?

tia,

Rony
Apr 28 '06 #1
3 2411
Hi,

I do not have the answer but am very interested in the issue. I tried this:

l_ev = wx.MouseEvent(wx.wxEVT_LEFT_DOWN)
l_ev.SetEventObject(self.GetCombo())
self.GetEventHandler().ProcessEvent(l_ev)

Which did send the event to the combo (which is in a pannel in my case) ..
but that is apparently not the event that triggers the dropping of the
list.

I posed elsewhere and will forward here any hint.

Philippe

Rony Steelandt wrote:
Hi,

Does somebody knows a way to automaticely open the list part of a
wxCombobox when it gets the focus ?

tia,

Rony


Apr 29 '06 #2
Hi,

From the wxPython list:
Hi,

Which event must I catch to be called when the user clicks on the combo
"button" to make the drop down list to appear ?
No, there isn't a specific event for the opening of the drop-down box.
Regards,

Philippe

Philippe Martin wrote:
Hi,

I do not have the answer but am very interested in the issue. I tried
this:

l_ev = wx.MouseEvent(wx.wxEVT_LEFT_DOWN)
l_ev.SetEventObject(self.GetCombo())
self.GetEventHandler().ProcessEvent(l_ev)

Which did send the event to the combo (which is in a pannel in my case) ..
but that is apparently not the event that triggers the dropping of the
list.

I posed elsewhere and will forward here any hint.

Philippe

Rony Steelandt wrote:
Hi,

Does somebody knows a way to automaticely open the list part of a
wxCombobox when it gets the focus ?

tia,

Rony


May 2 '06 #3
That is what I was afraid for....

Thanks for answering,

Rony
Hi,

From the wxPython list:
Hi,

Which event must I catch to be called when the user clicks on the combo
"button" to make the drop down list to appear ?


No, there isn't a specific event for the opening of the drop-down box.
Regards,

Philippe

Philippe Martin wrote:
Hi,

I do not have the answer but am very interested in the issue. I tried
this:

l_ev = wx.MouseEvent(wx.wxEVT_LEFT_DOWN)
l_ev.SetEventObject(self.GetCombo())
self.GetEventHandler().ProcessEvent(l_ev)

Which did send the event to the combo (which is in a pannel in my case) ..
but that is apparently not the event that triggers the dropping of the
list.

I posed elsewhere and will forward here any hint.

Philippe

Rony Steelandt wrote:
Hi,

Does somebody knows a way to automaticely open the list part of a
wxCombobox when it gets the focus ?

tia,

Rony

May 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Piet | last post by:
Hello, I need some help with the design of a "dynamic" wxDialog. The dialog window is divided into several sizers, the first contains a wxComboBox. When choosing an entry from this wxComboBox, a...
0
by: Piet | last post by:
Hello wxPythoneers. I have a problem with a dialog box derived from wxFrame which has a wxComboBox as main element. Depending on the entry selected from the ComboBox, the dialog box will be...
1
by: flupke | last post by:
Hi, i'm trying to convert my java console app to a python gui. Now, the only problem i seem to have at the moment are the resizers for the layout. It seems that for the purpose of what i'm...
1
by: JZ | last post by:
Is there any way to fill wxComboBox with a dictionary, not a list? All normal combobox widgets in HTML or Flash return id, not label. I would like to display 'A', 'B' and return 'a' or 'b'...
11
by: Viktor | last post by:
Which GUI is the most stable one? I don't need any fancy looking widgets (look and feel doesn't realy matter to me), I "just" need it to be rock stable and fast...
0
by: Andy Leszczynski | last post by:
Hi, I need a help with following problem which is blocking me quite seriously. I noted some weird behavior on Windows (Python 2.3, wxPython 2.5). The same code works fine under Linux. When...
10
by: Mario | last post by:
Hello all, I'm trying hard to make possible to print some simple text from python to the default printer using wxPython, after days of internet searches I found this page:...
3
by: Roland Rickborn | last post by:
Hi folks, I am relatively new to Python. Although I read a lot of howtos, introductions and wikis, I am still having trouble ;-) My querstion: As the subject says, I'd like to feed a...
0
by: Conrad | last post by:
Greetings, For user actions on a wxWidget that trigger multiple events for that wxWidget, is the order those events are processed in undefined, and therefore arbitrary from one platform (ie...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.