OS-X users, please test -- this time with the app!

I see a blueb background with three dashed lines.

stdout:

2.4.4 (#1, Oct 18 2006, 10:34:39)

[GCC 4.0.1 (Apple Computer, Inc. build 5341)]

2.8.6.1

OS X 10.4.11

Intel Core2Duo

Python 2.4.4

wxPython 2.8.6.1

PGP.sig (186 Bytes)

···

Am 13.12.2007 um 00:00 schrieb Christopher Barker:

OK,

Let me try this again:

I’m trying to track down a bug in wx.DC.SetLogicalFunction()

Could you please run the enclosed small app, and report how many lines you see across the screen (there should be 3). then tell us:

OS-X version

Processor type

Python Version

wxPython Version

In particular, it’s looking like this is a problem with wxPython 2.8.7.1 on PPC – can someone else test that?

Thanks

  • Chris

For the record, this doesn’t work (I get one line):

OS-X 10.4.11

PPC Dual G5

Python2.5

wxPython 2.8.7.1 (from the build on the wxPython site)

These do:

OS-X 10.4.11

PPC Dual G5

Python2.4

wxPython 2.6.3

OS-X 10.4.11

Intel

Python 2.5.1

wxPython 2.8.3.0

wxPython 2.8.7.1

Christopher Barker, Ph.D.

Oceanographer

Emergency Response Division

NOAA/NOS/OR&R (206) 526-6959 voice

7600 Sand Point Way NE (206) 526-6329 fax

Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

#!/usr/bin/env python

“”"

Very simple test app to see if wx.XOR and/or wx.INVERT work

“”"

import wx

import sys

print sys.version

print wx.version

class DemoFrame(wx.Frame):

""" This window displays a button """
def __init__(self, *args, **kwargs):
    wx.Frame.__init__(self, *args, **kwargs)
    self.Bind(wx.EVT_PAINT, self.OnPaint)
def OnPaint(self,Event):
    dc = wx.PaintDC(self)
    dc.SetBackground(wx.BLUE_BRUSH)
    dc.Clear()
    dc.SetPen(wx.Pen('WHITE', 2, wx.SHORT_DASH))
    dc.SetBrush(wx.TRANSPARENT_BRUSH)
    dc.DrawLine( 0, 100, 400, 100)
    dc.SetLogicalFunction(wx.INVERT)
    dc.DrawLine( 0, 200, 400, 200)
    dc.SetLogicalFunction(wx.XOR)
    dc.DrawLine( 0, 300, 400, 300)

app = wx.App(False)

frame = DemoFrame(None, size=(400,400))

frame.Show()

app.MainLoop()


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org