Hi,
I noticed a wx.Bitmap has a GetSize() method but no GetSizeTuple()
method. Should we not consider having this method, at least for the
beauty and consistency of the toolkit?
Regards.
Jean-Michel Fauth, Switzerland
Hi,
I noticed a wx.Bitmap has a GetSize() method but no GetSizeTuple()
method. Should we not consider having this method, at least for the
beauty and consistency of the toolkit?
Regards.
Jean-Michel Fauth, Switzerland
Jean-Michel Fauth wrote:
Hi,
I noticed a wx.Bitmap has a GetSize() method but no GetSizeTuple()
method. Should we not consider having this method, at least for the
beauty and consistency of the toolkit?
Actually I'd like to go the other way and deprecate the other *Tuple() functions. There is no need for them any longer as wx.Point, wx.Size, etc. can be used as a sequence, so you can do things like:
w, h = bmp.GetSize()
t = tuple(bmp.GetSize())
s = bmp.GetSize()
for x in s:
print x
etc.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!