How to setup Button press from 2 separate widgets?

Okay so i have 2 widgets one is my main one and the other is my card widget but because my card widget button isnt ya know on the main widget the on clicked n all that isnt available and as far as ive learned so far all i can do instead to check for it is a tick event and ive heard thats bad asf to use to if theres a smarter way lmk thanks!