I am trying to make a 8 x 8 grid of boxes to manipulate for a matching game. I started with wxPython since I have no experience with pygame. I have it laid out with:
WINDOW_WIDTH = 1200 WINDOW_HEIGHT = 1200 class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, title = 'matching game', pos = (200, 75), size = (WINDOW_WIDTH, WINDOW_HEIGHT)) self.background = wx.Panel(self) self.box = wx.Button(self.background, (..picture?))
So, I need 64 150 x 150 clickable boxes that i can bind stuff to. I'm not sure which direction to go with this. Loops? and if so, how do i define the position of each box inside a loop?
Also wondering if i should attach permanent pictures to each box1 - box32 (since there will be 2 of each on the board at a time) and shuffle the numbers, or shuffle the pictures among the boxs.
Possibly make a switch to pygame?
Or this may just be a bit over my head. Thanks regardless