wx.Size

wx.Size objects in wxPython can sometimes be equated to tuples, but, to deal with the cases and versions where it cannot, it is better not to rely on this.

This means that in function calls that take wx.Size, you should create a wxSize to pass them and not shortcut with a tuple.

This is similar also to wx.Point.

Example

To create a wx.Size object -

   1 size = wx.Size(width, height)

wxSize (last edited 2010-06-21 18:11:59 by pg0)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.