[wxPython] ListCtrl multiple lines?

Hi everybody

Thanks to everyone on this list who have helped me in the past. wxPython is
great and thanks to you I'm really getting the hang of it.

Is there a way to put multiple lines of text in a ListCtrl widget? I tried
just using \r and \r\n, but that only produces a | character. If there's
not, is there maybe another widget that can do this?

Also, how difficult is it to write your own widgets. Is there some
information on this somewhere?

Thanks

···

--
------------------
Sarel Botha
sjbotha@email.com
------------------

99 little bugs in the code, 99 bugs in the code,
          fix one bug, compile it again...
          101 little bugs in the code....

"Sarel J. Botha" wrote:

Hi everybody

Thanks to everyone on this list who have helped me in the past. wxPython is
great and thanks to you I'm really getting the hang of it.

Is there a way to put multiple lines of text in a ListCtrl widget? I tried
just using \r and \r\n, but that only produces a | character. If there's
not, is there maybe another widget that can do this?

Create a wxTextCtrl with style = wxTE_MULTILINE in the constructor.

Also, how difficult is it to write your own widgets. Is there some
information on this somewhere?

See wxGenButton and friends in wxPyton.lib.buttons. These are widgets
completely implemented in wxPython.

···

--
Riaan >>> a='a=%s;a%%`a`';a%`a`
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
     http://boa-constructor.sourceforge.net

Hrm... I'm not quite sure where to put the code. The widget's implemented in
C++.

···

On Thu, Aug 03, 2000 at 05:46:53PM +0200, Riaan Booysen wrote:

"Sarel J. Botha" wrote:
> Is there a way to put multiple lines of text in a ListCtrl widget? I tried
> just using \r and \r\n, but that only produces a | character. If there's
> not, is there maybe another widget that can do this?

Create a wxTextCtrl with style = wxTE_MULTILINE in the constructor.

--
------------------
Sarel Botha
sjbotha@email.com
------------------

99 little bugs in the code, 99 bugs in the code,
          fix one bug, compile it again...
          101 little bugs in the code....

"Sarel J. Botha" wrote:

> "Sarel J. Botha" wrote:
> > Is there a way to put multiple lines of text in a ListCtrl widget? I tried
> > just using \r and \r\n, but that only produces a | character. If there's
> > not, is there maybe another widget that can do this?
>
> Create a wxTextCtrl with style = wxTE_MULTILINE in the constructor.

Hrm... I'm not quite sure where to put the code. The widget's implemented in
C++.

Like I said, put it in the constructor:
e.g. myTextCtrl = wxTextCtrl(self, -1, style = wxTE_MULTILINE)

···

On Thu, Aug 03, 2000 at 05:46:53PM +0200, Riaan Booysen wrote:

--
Riaan >>> a='a=%s;a%%`a`';a%`a`
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
     http://boa-constructor.sourceforge.net

"Sarel J. Botha" wrote:

> Like I said, put it in the constructor:
> e.g. myTextCtrl = wxTextCtrl(self, -1, style = wxTE_MULTILINE)

But it's a wxListCtrl.

Do you maybe mean when the TextCtrl inside the ListCtrl is created? But
that code is written in C++.

Nope, sorry, my mistake, I misread your first post.
I don't know of any way to have multiple lines per item in a wxListCtrl.

···

On Sat, Aug 05, 2000 at 05:19:06PM +0200, Riaan Booysen wrote:

--
Riaan >>> a='a=%s;a%%`a`';a%`a`
___________________________________________________
Boa Constructor - RAD GUI building IDE for wxPython
     http://boa-constructor.sourceforge.net