Thanks for the reply.

I actually did try it with and without the braces. Qtile reloads fine, 
vscode doesn''t show any errors but the textbox just doesn't update.  Here 
is the snippet. 

def change_text():
    c=InteractiveCommandClient()
    c.widget['textbox'].update('replaced_text')

screens=[
Screen(
     bottom=bar.Bar(widget.TextBox('text', mouse_callbacks={'Button1' : 
change_text}
)

It just doesn't change on mouse click. What are the other ways to access 
widgets and update them in config.py?


On Saturday, October 17, 2020 at 9:46:24 PM UTC+5:30 elParaguayo wrote:

> I've never used the InteractiveCommandClient but I would think you need to 
> create an instance of it first before trying to update the widget i.e.
>
> from libqtile.command_client import InteractiveCommandClient
> c=InteractiveCommandClient()
> c.widget['textbox'].update('xyz') 
>
> Note the "()" at the end of the second line.
>
> If it doesn't work, what error messages do you get?
>
>
> On Sat, 17 Oct 2020 at 14:05, rickroller <[email protected]> wrote:
>
>>
>> I wanted to update the TextBox widget every 5 minutes through the output 
>> of a script. I tried 
>>
>> from libqtile.command_client import InteractiveCommandClient
>> c=InteractiveCommandClient
>> c.widget['textbox'].update('xyz')  
>>
>> For people without more than a basic knowledge of python, its very tough 
>> to understand the basic skeleton of how this works. I know, its on me. But 
>> can anyone please 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/2a7f2150-462e-4673-9d99-f09ce0c0888bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/qtile-dev/2a7f2150-462e-4673-9d99-f09ce0c0888bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/8029133e-5834-47de-a9ee-fcdfc6d45d37n%40googlegroups.com.

Reply via email to