Toolbar

class gamegridp.gamegrid_toolbar.Toolbar(grid)[Quellcode]
add_button(text, img_path=None, color=(255, 255, 255), border=(255, 255, 255))[Quellcode]

adds a button to toolbar :param img_path: image button :param text: button text. This is also the text for the data variable in listen(event,data) :return:

draw()[Quellcode]

Creates a toolbar on the left side of the window