def __init__(self, parent, gridsize, choices, text):
        """
        __init__(self, parent, gridsize, choices, text)
        gridsize is a tuple in form of (rows, cols, vertical_gap, horizontal_gap)
        """
        box = wx.StaticBox(parent, wx.ID_ANY, "")
        super(check_boxes, self).__init__(box, orient=wx.VERTICAL)

        gridSizer2 = wx.GridSizer(gridsize[0], gridsize[1], gridsize[2], gridsize[3])
        self.boxes = []
        for choice in choices:
            cb = wx.CheckBox(parent, -1, choice)
            self.boxes.append(cb)
            gridSizer2.Add(cb, wx.ALIGN_RIGHT)
        self.Add(wx.StaticText(parent, label=text), wx.ALIGN_LEFT)
        self.Add(gridSizer2, wx.ALIGN_RIGHT)
        self.AddSpacer(4)
def __init__ ( self , parent , gridsize , choices , text ) : box = wx . StaticBox ( parent , wx . ID_ANY , "" ) super ( check_boxes , self ) . __init__ ( box , orient = wx . VERTICAL ) gridSizer2 = wx . GridSizer ( gridsize [ 0 ] , gridsize [ 1 ] , gridsize [ 2 ] , gridsize [ 3 ] ) self . boxes = [ ] for choice in choices : cb = wx . CheckBox ( parent , - 1 , choice ) self . boxes . append ( cb ) gridSizer2 . Add ( cb , wx . ALIGN_RIGHT ) self . Add ( wx . StaticText ( parent , label = text ) , wx . ALIGN_LEFT ) self . Add ( gridSizer2 , wx . ALIGN_RIGHT ) self . AddSpacer ( 4 )
__init__(self, parent, gridsize, choices, text)
        gridsize is a tuple in form of (rows, cols, vertical_gap, horizontal_gap)