13.07.2015 Views

The wxPython tutorial

The wxPython tutorial

The wxPython tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>wxPython</strong> griptshttp://www.zetcode.com/wxpython/gripts/self.sizer = wx.GridSizer(3, 3, 0, 0)For this gript, wx.GridSizer fits ideally.numbers = [0, 1, 2, 3, 4, 5, 6, 7]random.shuffle(numbers)We have eight numbers. Those numbers are shuffled so that we have arandom number order. Each time we start the gript, we will have a differentorder of bitmaps.self.panel = wx.Button(self, -1, size=(112, 82))self.sizer.Add(self.panel)This button has no bitmap. It is the 'travelling' button. It always exchangesit's position with the hitted button.Ruby on Rails Developmentfor business critical solutions backed by afully managed servicePython Purse on saleGenuine python handbags on sale WeCustom make handbag for youHome ‡ Contents ‡ Top of PageZetCode last modified June 3, 2007© 2007 Jan Bodnar12 de 12 27/04/2008 1:09

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!