[wxPython-users] ListBox and TE_PROCESS_ENTER

Oswaldo Hernández listas at soft-com.es
Tue Jan 16 06:07:21 PST 2007


Eli Golovinsky escribió:
> The TE_ in TE_PROCESS_ENTER refers to TextEdit which means that it is a 
> style that works only with TextEdit controls.
> 
> There's nothing wrong with two styles for two separate controls having 
> the same value. They are never used together.
> 
> 
> As for your question, could you paste the code that you're using to bind 
> the event handler?
> 
> 

Thanks for clearing TE_. I was thinking that works with all widgets. I solved the problem using a 
wx.Frame instead a wx.Dialog.


> Oswaldo Hernández wrote:
> 
>> Hello,
>>
>> I'm trying to capture Enter Key in a ListBox but if i declare the 
>> listbox with wx.TE_PROCESS_ENTER the list box show the vertical scroll 
>> bar and don't capture the enter key.
>>
>> I notice that wx.TE_PROCESS_ENTER and wx.LB_ALWAYS_SB have the same 
>> value.
>>
>>
>> >>> import wx
>> >>> wx.version()
>> '2.8.0.1 (msw-unicode)'
>> >>>
>> >>> print wx.TE_PROCESS_ENTER, wx.LB_ALWAYS_SB
>> 1024 1024
>> >>>
>>
>> It's a bug?
>>
>> How can I capture Enter key in a ListBox?
>>
>> Thanks
>>
> --------------------------------------------------------------------- To 
> unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org For 
> additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org


-- 
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************




More information about the wxpython-users mailing list