[wxPython] PositionToXY change?

RE: [wxPython] PositionToXY change?
This was noted recently. Take a look through the archive over the last week or so.

Dale Strickland-Clark

Riverhall Systems Ltd. Custom database and Web applications.

Offices: London & Wokingham

···

-----Original Message-----

From: CLARKE,RON (HP-Vancouver,ex1) [mailto:ron_clarke@hp.com]

Sent: Thu, 2002 January 17 22:46

To: ‘wxpython-users@lists.wxwindows.org’

Subject: [wxPython] PositionToXY change?

It appears the wxPython version of wxTextCtrl’s PositionToXY has changed. My

old code returned 2 values. Running the same code under wxPython 2.3.2.1

returns 3 values and, of course, a ValueError ("unpack tuple of wrong

size").

my old code:

    col, line = self.outputwin.PositionToXY(sel[0])

my new code

    unknown, col, line = self.outputwin.PositionToXY(sel[0]) #changed

for 2.3.2.1

The wxWindows 2.3 documentation still says two values: "In Python,

PositionToXY() returns a tuple containing the x and y values, so (x,y) =

PositionToXY() is equivalent to the call described above."

I did not find any mention of this change in the mail lists.

What is this thrid value now being returned?


Ron Clarke

Digital Printing Technologies

Hewlett-Packard Co.

ron_clarke@hp.com

ecard - https://ecardfile.com/id/ron_clarke


wxpython-users mailing list

wxpython-users@lists.wxwindows.org

http://lists.wxwindows.org/mailman/listinfo/wxpython-users