Skip to content

Dynamic Textbox #4771

Closed Answered by elParaguayo
mdSlash asked this question in Q&A
Apr 17, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Ok, if you're using a hook, then you can do something like this:

from libqtile import qtile

my_text_1 = "text 1"
my_text_2 = "text 2"

@hook.subscribe....
def my_hooked_func():
    qtile.widgets_map["textbox1"].update(my_text_2)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mdSlash
Comment options

@elParaguayo
Comment options

@mdSlash
Comment options

@elParaguayo
Comment options

Answer selected by mdSlash
@mdSlash
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants