Andrea,
It does not support "SetImageList" and the corresponding "SetPageImage".
Anyway one can work around this or are you planning to implement these methods?
Werner
Andrea,
It does not support "SetImageList" and the corresponding "SetPageImage".
Anyway one can work around this or are you planning to implement these methods?
Werner
Hi Werner & All,
Andrea,
It does not support "SetImageList" and the corresponding "SetPageImage".
Anyway one can work around this or are you planning to implement these
methods?
I didn't implement it as it doesn't exist in wxAUI (C++ version) too.
However, it is on the TODOs list in the __init__.py file of AUI. I
didn't implement SetImageList and SetPageBitmap because the
behaviour/implementation of AuiNotebook is so different from the one
of wx.Notebook that it may be hard to make SetImageList work
correctly.
I'll see what I can do about it, hopefully I won't break anything again
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
On Tue, Apr 21, 2009 at 2:05 PM, Werner F. Bruhin wrote:
Hi Werner & All,
On Tue, Apr 21, 2009 at 2:18 PM, Andrea Gavana wrote:
Hi Werner & All,
On Tue, Apr 21, 2009 at 2:05 PM, Werner F. Bruhin wrote:
Andrea,
It does not support "SetImageList" and the corresponding "SetPageImage".
Anyway one can work around this or are you planning to implement these
methods?I didn't implement it as it doesn't exist in wxAUI (C++ version) too.
However, it is on the TODOs list in the __init__.py file of AUI. I
didn't implement SetImageList and SetPageBitmap because the
behaviour/implementation of AuiNotebook is so different from the one
of wx.Notebook that it may be hard to make SetImageList work
correctly.I'll see what I can do about it, hopefully I won't break anything again
OK, in the end I just implemented Set/GetPageImage and
SetImageList/AssignImageList in the latest SVN. Could you give it a
try and see if it works?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
Andrea Gavana wrote:
Hi Werner & All,
Hi Werner & All,
Andrea,
It does not support "SetImageList" and the corresponding "SetPageImage".
Anyway one can work around this or are you planning to implement these
methods?
I didn't implement it as it doesn't exist in wxAUI (C++ version) too.
However, it is on the TODOs list in the __init__.py file of AUI. I
didn't implement SetImageList and SetPageBitmap because the
behaviour/implementation of AuiNotebook is so different from the one
of wx.Notebook that it may be hard to make SetImageList work
correctly.I'll see what I can do about it, hopefully I won't break anything again
OK, in the end I just implemented Set/GetPageImage and
SetImageList/AssignImageList in the latest SVN. Could you give it a
try and see if it works?
I just checked SetImageList and SetPageImage. On the later I get:
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 222, in __init__
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py", line 2950, in SetPageImage
if image >= len(self._imageList.GetImageCount()):
TypeError: object of type 'int' has no len()
Werner
On Tue, Apr 21, 2009 at 2:18 PM, Andrea Gavana wrote:
On Tue, Apr 21, 2009 at 2:05 PM, Werner F. Bruhin wrote:
Hi Werner & All,
I just checked SetImageList and SetPageImage. On the later I get:
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 222, in __init__
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in
LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2950, in SetPageImage
if image >= len(self._imageList.GetImageCount()):
TypeError: object of type 'int' has no len()
Ops, that should have been simply:
if image >= self._imageList.GetImageCount():
:ashamed:
A new fix is in SVN. Thank you!
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
On Tue, Apr 21, 2009 at 3:52 PM, Werner F. Bruhin wrote:
Andrea Gavana wrote:
Hi Werner & All,
I just checked SetImageList and SetPageImage. On the later I get:
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 222, in __init__
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in
LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2950, in SetPageImage
if image >= len(self._imageList.GetImageCount()):
TypeError: object of type 'int' has no len()
Ops, that should have been simply:if image >= self._imageList.GetImageCount():
:ashamed:
A new fix is in SVN. Thank you!\
Sorry, a little different problem now:
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py", line 2959, in SetPageImage
self.SetPageImage(page, bitmap)
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py", line 2944, in SetPageImage
"%s"%repr(image))
Exception: The image parameter must be an integer, you passed <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 0x5b295b8> >
Werner
On Tue, Apr 21, 2009 at 3:52 PM, Werner F. Bruhin wrote:
Andrea."Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Hi Werner,
On Tue, Apr 21, 2009 at 4:32 PM, Werner F. Bruhin wrote:
Andrea Gavana wrote:
Hi Werner & All,
On Tue, Apr 21, 2009 at 3:52 PM, Werner F. Bruhin wrote:
I just checked SetImageList and SetPageImage. On the later I get:
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 222, in __init__
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in
LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2950, in SetPageImage
if image >= len(self._imageList.GetImageCount()):
TypeError: object of type 'int' has no len()Ops, that should have been simply:
if image >= self._imageList.GetImageCount():
:ashamed:
A new fix is in SVN. Thank you!\
Sorry, a little different problem now:
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in
LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2959, in SetPageImage
self.SetPageImage(page, bitmap)
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2944, in SetPageImage
"%s"%repr(image))
Exception: The image parameter must be an integer, you passed
<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 0x5b295b8> >
Sorry about that, it should be fixed now...
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
Hi Andrea,
Andrea Gavana wrote:
....
Sorry, a little different problem now:
self.LoadNotebookPages()
File "C:\Dev\twcbBranchv31\Program\appwine.py", line 1580, in
LoadNotebookPages
self.wineDetailsNB.SetPageImage(8, 8)
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2959, in SetPageImage
self.SetPageImage(page, bitmap)
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py",
line 2944, in SetPageImage
"%s"%repr(image))
Exception: The image parameter must be an integer, you passed
<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 0x5b295b8> >
Sorry about that, it should be fixed now...
Yeap, now it works nicely.
Thanks and have a nice evening.
Werner