Hey friendly users!<br><br>I'm trying to make a simple program to calculate the odds when playing poker. The idea is that you select both your cards from listboxes. However, no matter what I try, I just can't select a entry in either of the listboxes! I can click all I want, it just won't select. Here's the code which I use to create the boxes:
<br><br><span style="font-family: times new roman,serif;">ID_BOX1 = 120<br>ID_BOX2 = 130<br>...<br> #Boxes, to select cards</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
self.box1 = wx.ListBox(parent=self, id=ID_BOX1, size=(60,163) , name='Card 1',</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;"> choices=['Ace','King','Queen','Ten','9','8','7','6','5','4','3','2'],style=0)
</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;"> self.box2 = wx.ListBox(parent=self, id=ID_BOX2, size=(60,163) , name='Card 2',</span><br style="font-family: times new roman,serif;">
<span style="font-family: times new roman,serif;"> choices=['Ace','King','Queen','Ten','9','8','7','6','5','4','3','2'],style=0)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
self.box1.Bind(wx.EVT_LISTBOX, self.b1func,id=ID_BOX1)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;"> self.box2.Bind(wx.EVT_LISTBOX, self.b2func,id=ID_BOX2)
</span><br><br>I hope anybody can help me. If you need to see the full code, just send me a reply<br><br>Thanks in advance to anybody reading/helping!<br>Toon Pieton<br>