POLL: wx.DC methods

For me is really obvious that both versions are useful to use in some situations, so I'm sure I like to have both.
I agree that we can't say that one of them is closer to the python style, because there is no such thing. So, no matter the name of each one I like to have both.

···

-----Mensaje original-----
De: Doug Holton [mailto:d.holton@vanderbilt.edu]
Enviado el: Jueves, 22 de Abril de 2004 19:06
Para: wxPython-users@lists.wxwidgets.org
Asunto: [wxPython-users] Re: POLL: wx.DC methods

For example, in Python, I'd naturally generate a list of random points
as

    l = [(randint(0,100), randint(0,200)) for n in range(200)]

Then, to draw radius-10 circles at each point,

    for pt in l:
        dc.DrawCircle(pt, 10)

Compare this to the non-tuple version:

for n in xrange(200):
     x, y = randint(0,100), randint(0,200)
     dc.DrawCircle(x, y, 10)

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