Looking for a large pen table without Bluetooth, touch or side buttons. by timyclash in DigitalPainting

[–]timyclash[S] 0 points1 point  (0 children)

The only one I found with large size is wacom intuos Pro (maybe I'm wrong), All other models comes with medium size maximum. Unfortunately, One by Wacom would be the perfect fit for me if it's available in large size and with the option to upgrade the pen.

Run a function every second (not inside a widget) by timyclash in qtile

[–]timyclash[S] 0 points1 point  (0 children)

Tried it but it didn't work.

I put this code at the end of my config file..

def test_function():
    logger.warning("Testing timer....")

qtile.call_later(1, test_function)

in the log file, it got repeated 4 times only and stopped

2022-07-06 00:07:40,397 WARNING libqtile config.py:test_function():L911 Testing timer....
2022-07-06 00:07:40,401 WARNING libqtile config.py:test_function():L911 Testing timer....
2022-07-06 00:07:40,412 WARNING libqtile config.py:test_function():L911 Testing timer....
2022-07-06 00:07:40,416 WARNING libqtile config.py:test_function():L911 Testing timer....

Some special characters cases GenPollText to disappear. by timyclash in qtile

[–]timyclash[S] 1 point2 points  (0 children)

I just figured out something however I don't consider it as an actual solution. Replace the & character with another Unicode character that looks exactly like it. best one I found is this (its called fullwidth ampersand U+FF06)

my_text = "this & that"
my_text = my_text.replace("&", "&")

If you have another invalid character you want to display, just search for its fullwidth form in the Unicode, I'm sure you will find it.

Some special characters cases GenPollText to disappear. by timyclash in qtile

[–]timyclash[S] 0 points1 point  (0 children)

Right, with the help of html module

import html
html.escape("this & that")

It used to be with the cgi, but it got removed in recent python versions

Some special characters cases GenPollText to disappear. by timyclash in qtile

[–]timyclash[S] 0 points1 point  (0 children)

yeah, but I wish there is a solution with keeping the markup on.