how i can set the size of TreeBook?

the size of my treebook control is limited to the long of the text of
one item in the tree how i can put more space?

Hi,

the size of my treebook control is limited to the long of the text of
one item in the tree how i can put more space?

I don't think you can, although I thought wx.TreeBook was smart enough
to resize itself if the item text was too long. Of course, *very* long
item texts are not going to work well with wx.TreeBook, as too much of
space would be wasted to display the item itself.

That being said, I don't think it would be that difficult to roll your
own wx.TreeBook, maybe using CustomTreeCtrl and wrapping the long
items into multiline texts. I may be even try an implementation in the
next few days...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

import PyQt4.QtGui

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named PyQt4.QtGui

import pygtk

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named pygtk

···

On 26 August 2011 23:14, iozk_Live wrote:

import wx

thanks for answer, maybe i can solve it if review the source code

···

On 26 ago, 22:22, Andrea Gavana <andrea.gav...@gmail.com> wrote:

Hi,

On 26 August 2011 23:14, iozk_Live wrote:

> the size of mytreebookcontrol is limited to the long of the text of
> one item in the tree how i can put more space?

I don't think you can, although I thought wx.TreeBookwas smart enough
to resize itself if the item text was too long. Of course, *very* long
item texts are not going to work well with wx.TreeBook, as too much of
space would be wasted to display the item itself.

That being said, I don't think it would be that difficult to roll your
own wx.TreeBook, maybe using CustomTreeCtrl and wrapping the long
items into multiline texts. I may be even try an implementation in the
next few days...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."http://xoomer.alice.it/infinity77/

>>> import PyQt4.QtGui

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named PyQt4.QtGui

>>> import pygtk

Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named pygtk

>>> import wx