I believe it is "mouse_callbacks", with an 's' at the end. Other than that your code looks ok.
On Saturday, 7 November 2020 at 03:20:24 UTC+1 [email protected] wrote: > Hey everyone, > > so, I'm fairly new to qtile and I'm trying to set a mouse callback > function in an image widget and it's not working so far, I've followed > pretty much every tutorial and piece of documentation out there and it's > still not working. Can you guys help me out? > > Here is the code for the callback function: > > def run_rofi(qtile): > rofi_cmd = 'rofi -combi-modi window,drun,ssh -theme solarized -font > "hack 10" -show drun' > qtile.cmd_spawn(rofi_cmd) > > And here is the code for the widget: > > widget.Image( > filename='~/Pictures/manjaro_logo.png', > mouse_callback={'Button1': run_rofi}, > margin=5, > ) > > I appreciate any help. > -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/66237358-cc17-4643-8347-c0c8505455d3n%40googlegroups.com.
