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/fdc7863e-26d3-48f5-81d6-cf0df8316b61n%40googlegroups.com.

Reply via email to