Popups are very much implemented.

I've been working on making popups a bit more accessible and there's a 
current draft of my popup "toolkit" included in this 
PR: https://github.com/qtile/qtile/pull/2601



On Sunday, 1 August 2021 at 22:37:36 UTC+1 yobleck wrote:

> nvm. found that create_internal() is not implemented
>
> On Sunday, July 18, 2021 at 11:06:15 AM UTC-4 yobleck wrote:
>
>> I just discovered the popup class: 
>> https://github.com/qtile/qtile/blob/master/libqtile/popup.py
>>
>> But I'm having trouble figuring out how to use it.
>> My config contains the following:
>> ```
>> from time import sleep
>> from libqtile.popup import Popup
>> def popup_test(qtile):
>>     send_notification("popup_test_1", "this is test #1")
>>     popup = Popup(qtile, text="Hello World", background="#000055")
>>     #popup.text("hello world!")
>>     popup.text = "hello world"
>>     popup.foreground = "#ff0000"
>>     popup.draw()
>>     popup.place()
>>     #popup.draw_text(x=0, y=0)
>>     popup.unhide()
>>     sleep(5)
>>     popup.kill()
>>     send_notification("popup_test_2", "this is test #2")
>> ```
>> and this key bind:
>> Key([mod], "o", lazy.function(popup_test), desc="popup"),
>>
>> This successfully creates a blank black window at the default location, 
>> but all my attempts to add text or change other attributes like background 
>> color don't do anything.
>> I'm assuming that I'm just not calling the draw, place and unhide methods 
>> correctly.
>>
>

-- 
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/90ed487e-2417-47ba-970f-0924349f22bbn%40googlegroups.com.

Reply via email to