Hi all
Some more news, win98se, Py 2.3.3, wxPy 2.5.latest
···
--------------------------------------------------------------
- Starting the demo, the log window shows this message:
Debug: ..\..\src\msw\dc.cpp(2035): 'StretchDIBits' failed with error
0x00000057 (paramètre incorrect.).
(paramètre incorrect.) == incorrect parameter
I did no localize the source of the error. I get this error msg
when
o I resize the demo main frame
o I move one of the splitter bar in the main window.
o I click on a tree item.
o I move some frames or dialogs in the demo like, wxDialog, wxToolbar
demo frame, ...
Note that the same error msg was appearing in wxPy 2.5.1.0p4.
Is that a sequence of event, or does any one of them cause that to happen?
Doesn't appear under W2K here if the latter.
I made some more tests.
- wxPy2424 demo with wxPy2424, no problem
- wxPy2424 demo with wxPy25, problem as above
- wxPy25 demo with wxPy25, problem as above
That seems to indicate, the issue lies in a wxPy lib(s)
and not in the demo application.
Is that a sequence of event, or does any one of them cause that
to happen?
No. I disabled all the events (main.py) except the one in the splash
screen class that launches the demo: same issue.
But I noticed the following:
If I comment the line ~600
wx.Log_SetActiveTarget(MyLog(self.log))
the messages are displayed in MessageBoxes. The above issue
does no more appear. It looks like the MessageBox is "eating"
a pending event. Note that the first appearing msg is "window handle:
<integer>", the other msgs are "normal" msgs like "running demo
wxListbox.py"
If I activate the lines
# for serious debugging
wx.Log_SetActiveTarget(wx.LogStderr())
wx.Log_SetTraceMask(wx.TraceMessages)
the above debug message is present and it is send to stderr.
That's ok, I mean, depite the error, it is logical.
The main issue appears when I click on the "Demo code" notebook
page, I get the debug message over and over because the demo app
goes in a infinite loop. It can be the log window or stderr.
I should kill the demo/process from within my editor.
Also notice that if I comment the line
wx.Log_SetActiveTarget(MyLog(self.log))
the stc control holding the code is working and reacting
nicely. Using the log, the stc reacts very slowly - I have
time to see a "repaint" of the ctrl.
I tryied to remove any reference to the log class. This
implies to many change in the main.py code, so I gave up
--------------------------------------------------------------
-ActiveX wrappers Acrobat and IE: demo crashes.
No crash here, though.
Let's forget it for the while. This was always an issue
on my platform. I do not know if it is a win, Python,
Acrobat or a wxPython problem.
--------------------------------------------------------------
- May I suggest to use the "official" Python boolean type True/False
in the demo.
We're getting it there, but in this case:
...
...
are essentially the same, the code would become a lot less readable. Using
numerics for all four states makes it more consistent and readable.
Mea culpa. You are right. This was a bad example. No, I was
mainly thinking about defs returning 0 or not(0), instead of
True or False. It's not very important.
--------------------------------------------------------------
- Colour Select: the button corresponding to
the label 'With a label' is too small, the text is truncated.
I suspect this is a problem in the colorselect library. I'll make a note of
it.
No. Just define a size for the right button.
file: ColourSelect.py line 72
("With a Label", (127, 0, 255), (80, -1), "Colour..."),
instead of
("With a Label", (127, 0, 255), wx.DefaultSize, "Colour..."),
A value of 80 is ok.
--------------------------------------------------------------
- MaskedEditControls: demo crashes
Ditto, no crash here.
In my editor:
...
File "C:\Python23\Lib\site-packages\wxPython\demo\MaskedEditControls.py", line 632, in __init__
win = demoPage2(self, log)
File "C:\Python23\Lib\site-packages\wxPython\demo\MaskedEditControls.py", line 202, in __init__
grid.Add( mctl.wxMaskedCtrl( self, -1, "",
AttributeError: 'module' object has no attribute 'wxMaskedCtrl'
Debug: ..\..\src\msw\dc.cpp(2035): 'StretchDIBits' failed with error 0x00000057 (paramètre incorrect.).
Probably wxMaskedCtrl instead of wx.
See final note.
--------------------------------------------------------------
- wxMultiSash: demo crashes
Not under W2K, though.
Sorry it is also ok here.
The problem is that I get sometimes the Unhandled Exception message box.
It seems this message is not connected to a particular
demo, but happens when ...?
--------------------------------------------------------------
A final note:
To be sure the demo is running with the new namespace, I keep
only the wx subdir and rename wxPython to wxPythonXXX.
I think this is one of the best way to check if an app
is a pure wxPy2.5 app.
Did you try this?
Regards.
jmf
PS I forgot to say, I am pleased the demo code is displayed with a
fixed pitch font.