[wxpython-users] Adding same item to sizers
Rickey, Kyle W
Kyle.Rickey at bakerhughes.com
Wed May 14 07:50:15 PDT 2008
How about something like this:
sizer = wx.GridSizer(5, 5)
for x in range(1, 26):
b = wx.Button(self, -1, "Button %i" % x)
sizer.Add(b)
-Kyle Rickey
________________________________
From:
wxpython-users-bounces+kyle.rickey=bakerhughes.com at lists.wxwidgets.org
[mailto:wxpython-users-bounces+kyle.rickey=bakerhughes.com at lists.wxwidge
ts.org] On Behalf Of Arthur Valadares
Sent: Wednesday, May 14, 2008 9:24 AM
To: wxPython-users at lists.wxwidgets.org
Subject: [wxpython-users] Adding same item to sizers
Hi everyone, I'm trying to do a demo of an interface, so I was thinking
of using using the same objects many times to show the impression of a
page filled with objects, but i keep getting the message that I can't
add the same item twice to a sizer. Is there any way I can add a same
item more times to a sizer? If not, how can I make a simple copy of the
item, so i don't have to recreate it? i tried copy.deepcopy(item) with
no success (error from the copy library)
Thank you,
--
Arthur Valadares
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080514/9beff7e4/attachment.htm
More information about the wxpython-users
mailing list