Re: Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-03 Thread Roy Hann
Kevin M. Wilson wrote: > Folks, help please! What the @#$! are these doing popping up. Code styles are > personal, and not subject to debate. [snip] "Expected 2 blanks"? Or "Expected 2 blank _lines_"? Two blank lines between function/method definitions has been recommended for more than 20 year

Re: Using loguru in a library

2023-05-02 Thread Roy Hann
Dieter Maurer wrote: > Roy Hann wrote at 2023-4-30 15:40 -: >>Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >>library? >> ... >> import mylib >> logger.enable('mylib') >> >>expecting that it would report any l

Re: Using loguru in a library

2023-05-02 Thread Roy Hann
MRAB wrote: > On 2023-04-30 16:40, Roy Hann wrote: >> Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >> library? >> >> >> In my __init__.py in mylib I do >> >>logger.disable('mylib') >> >>

Using loguru in a library

2023-05-01 Thread Roy Hann
Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a library? In my __init__.py in mylib I do logger.disable('mylib') which definitely works. I don't get any more logging. I "pip install ." the library, then in mytest.py I do import mylib logger.enable('mylib') exp

Re: Suppress tooltips in Pygal charts (solved)

2019-10-12 Thread Roy Hann
Roy Hann wrote: > Is there any way to tell Pygal not to generate references to on-line > resources? I can now answer my own question. The solution was not obvious from reading the documentation but a glance at the pygal code uncovered the answer. The js configuration parameter specifies

Re: Suppress tooltips in Pygal charts

2019-10-12 Thread Roy Hann
Dennis Lee Bieber wrote: > On Fri, 11 Oct 2019 12:46:10 + (UTC), Roy Hann > declaimed the following: > >>Following up on Elijah's suggestion responding to my earlier question >>about drawing gauges in a mobile (i.e. not normally internet connected) >>applicat

Suppress tooltips in Pygal charts

2019-10-11 Thread Roy Hann
Following up on Elijah's suggestion responding to my earlier question about drawing gauges in a mobile (i.e. not normally internet connected) application on a Raspberry Pi I am using Pygal and rendering to SVG. I have found no way to stop Pygal from generating SVG that downloads and invokes JavaSc

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-29 Thread Roy Hann
Eli the Bearded wrote: > In comp.lang.python, Roy Hann wrote: >> I am designing a mobile application to run on a Raspberry Pi 3 model B. >> It will not have any Internet access. I need to generate a static image >> consisting of a simple arc representing (say) a speedom

Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Roy Hann
I am designing a mobile application to run on a Raspberry Pi 3 model B. It will not have any Internet access. I need to generate a static image consisting of a simple arc representing (say) a speedometer or a pressure gauge. The image will need to be regenerated every 5 seconds. The image must be d