[wingide-users] Interference between debugger and wxPython on MacOS
luc_j_bourhis at mac.com
Sun Feb 17 07:30:58 MST 2008
I have run into a strange problem while debugging wxPython programs on
Here is a self-contained script to reproduce the problem.
from __future__ import division
#import wingdbstub # if this line is not commented out, the bug appears
def __init__(self, parent):
wx.Window.__init__(self, parent, size=(-1, 50))
def OnPaint(self, event):
w,h = self.Size
dc = wx.PaintDC(self)
for i in xrange(h):
u = i/h
c = (u*100 + (1-u)*200,)*3
dc.DrawLine(0, i, w, i)
a = wx.App()
w = wx.Frame(None)
s = wx.BoxSizer(wx.VERTICAL)
p1 = MyWindow(w)
p2 = MyWindow(w)
q = wx.StaticText(w, label="The controls above are custom-filled")
This script should open a window with 3 panes stacked up vertically:
the top two are filled with a gradient of grey while the bottom one is
just a static text.
If the script is run as it is, it works. But if it is launched with
the debugger, or if it is run without commenting out the line "import
wingdbstub", then only the top pane is correctly painted. The next one
down is not painted with the gradient and the static text at the
bottom is not either. Worth, the buttons in the window title bar are
not painted either.
I am running WingIDE 3.0.3-1 on MacOS 10.5.2 with wxPython 220.127.116.11
Any help will be greatly appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2425 bytes
Desc: not available
Url : /pipermail/wingide-users/attachments/20080217/049cb551/smime.bin
More information about the wingide-users