Hello,
I m trying to upgrade my python from 2.1 to 2.3, and thus wxPython 2.3.2.1
to 2.4.2.4.
Doing this, I tried to launch some applications made with old version of
wxPython, but I'm facing 2 problems :
1. invalid tool button bitmap
Traceback (most recent call last):
File "WxGestionArticles.py", line 82, in ?
WxGestionArticles(0).MainLoop()
File "C:\Python23\Lib\site-packages\wxPython\wx.py", line 1957, in
__init__
_wxStart(self.OnInit)
File "WxGestionArticles.py", line 71, in OnInit
self.ctlWinArticle = ctlWinGestionArticle(self)
File
"C:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
ctlWinGestionArticle.py", line 77, in __init__
self.view = wxWinGestionArticle(self)
File
"C:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
wxWinGestionArticle.py", line 133, in __init__
tb.Realize()
File "C:\Python23\Lib\site-packages\wxPython\stattool.py", line 227, in
Realize
val = stattoolc.wxToolBarBase_Realize(self, *_args, **_kwargs)
wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed in
e:\Projects\wx2.4\src\msw\tbar95.cpp(582): invalid tool button bitmap
Is there something to change between old and new versoin of wxPython?
2. wxNotebook_AddPage() takes at least 3 arguments (1 given)
I decided to test without toolbar, then got the following error :
Traceback (most recent call last):
File
"c:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
wxSelectionArticle.py", line 80, in O
nItemDClicked
self.OnCloseWindow(event)
File
"c:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
wxSelectionArticle.py", line 83, in O
nCloseWindow
wxEndBusyCursor()
wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed in
e:\Projects\wx2.4\src\msw\utils.cpp(1352): no
matching wxBeginBusyCursor() for wxEndBusyCursor()
Traceback (most recent call last):
File
"C:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
ctlWinGestionArticle.py", line 193, i
n OnOuvrirArticle
self.openArticleInGUI( article )
File
"C:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
ctlWinGestionArticle.py", line 296, i
n openArticleInGUI
self.displayArticle()
File
"C:\Python23\GestionArticles_new\Dupuis\GestionCatalogue\WxGestionCatalogue\
ctlWinGestionArticle.py", line 355, i
n displayArticle
self.notebook.AddPage(strText = self.DefaultListePanels[0], bSelect =
true, pPage = self.panel[1], imageId = -1)
File "C:\Python23\Lib\site-packages\wxPython\windows2.py", line 104, in
AddPage
val = windows2c.wxNotebook_AddPage(self, *_args, **_kwargs)
TypeError: wxNotebook_AddPage() takes at least 3 arguments (1 given)
Did the wxNotebook class change? What are the 2 arguments missing?
Any clue?
Thanks
Sebastien Walgraffe