toolbar module

class ui.toolbar.Toolbar(screen, x, y, path)

Bases: object

Toolbar class

Parameters
  • screen (pygame.Surface) -- surface of the toolbar

  • path (string) -- : path to the image

  • x (int) -- position of the toolbar

  • y (int) -- position of the toolbar

cancel()

cancel animation for money

collide(pos)
Parameters

pos (tupple (x, y)) -- position of the mouse

Returns

True if collided else False

Return type

bool

draw()

draw the toolbar