I just found the solution:
I was missing the "()" at the end of the command:
the command should be :
q.cmd_next_layout()

On Saturday, December 12, 2020 at 6:45:28 p.m. UTC-5 Joe Yabuki wrote:

> I tried also :
> mouse_callbacks ={"Button1": lambda q: q.cmd_next_layout}
> It didn't work either!
> By the way , the following command it's working if execute it from the 
> terminal.
>
>  qtile-cmd -o cmd -f next_layout 
>
> I don't see anything wrong with my code, why it's not working?
> On Friday, December 11, 2020 at 11:14:25 p.m. UTC-5 Joe Yabuki wrote:
>
>> Hello guys
>> I created the following textbox widget :
>> widget.TextBox(text='text 
>> ',fontsize=16,padding=5,foreground='#00FF7F',mouse_callbacks 
>> ={'Button4':pl,'Button5':nl}),
>>
>> the 2 function are defined as follows:
>> def pl(qtile):
>>     qtile.cmd_prev_layout
>> def nl(qtile):
>>     qtile.cmd_next_layout
>>
>> I don't have errors, but nothing happens when I scroll up and down over 
>> the widget above!
>> Someone has an idea?
>> Thanks in advance
>>
>

-- 
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/ac46ae2d-4f2b-4c75-9195-3b78865a8a22n%40googlegroups.com.

Reply via email to