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/834c6885-7aa8-4408-8cad-51465f9ed2f5n%40googlegroups.com.

Reply via email to