Re: Put a variable list in Combobox

Carsten Grohmann <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi Carlos,

Carlos Romero Martin schrieb am 12.08.2015:
> Hello list,
> 
> When I use wxGlade and definie a Combobox, the result is:
> 
> self.wxSysNotMatCompEmpresa = wx.ComboBox(self.NoteBookMatrizCom,
> wx.ID_ANY, choices=[_(*"<set by wxGlade>"*)], style=wx.CB_DROPDOWN |
> wx.TE_PROCESS_ENTER )
> 
> But how I can generate "[_(*"<set by *wxGlade>”)]” by a variable name
> directly in wxGlade soft, the result must be
> 
> self.wxSysNotMatCompEmpresa = wx.ComboBox(self.NoteBookMatrizCom,
> wx.ID_ANY, choices=VariableName, style=wx.CB_DROPDOWN |
> wx.TE_PROCESS_ENTER    )

unfortunately you can't. It's not possible in wxGlade to store choices
in lists and use the list in widget constructor. The C++ code uses such
a list internally, but it's not public accessible.

May you use SetString() and SetColumns() to fill your wxComboBox widget.

Regards,
Carsten


------------------------------------------------------------------------------
_______________________________________________
wxGlade-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxglade-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.