Htag

Latest version: v0.113.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 35

0.103.0

prepare the import "ui" for the new htagui version >=0.3

nothing else

0.102.0

declare an "htag.ui" namespace for objects defined in "htagui" package

0.101.0

Runner is now in htag namespace

technically, you can do
python
from htag import Tag, Runner

...

no more need to import from "htag.runners"

0.100.1

minor fixes

- the autostop server (aka "watchdog"), when UI close : works better (it wait the 1st cnx before watching for suicide)
- the "ev" mechanism works well in all cases (see previous release bug)
- new `manual_tests_event_0.100.1.py` which tests all kinds of event bindings in one shot ;-) (todo: will be in selenium tests later)

0.100.0

Here come the "**ev**" system for (real) events mechanism.

I didn't planned to introduce such a big change like this, but it will be a lot better !

Til now ... the "object" (caller_object) which is passed to the callback method is the current object which has emitted the event.

python

def add_content( caller_object ): caller_object is the Tag.button
self += "hello"

self += Tag.button("add", _onclick=add_content)



Now, there is a quirk, to pass a "real event" (like a javascript dom event) : if you name it "ev", htag will pass an "event" ! So you will need to adapt your code to :

python

def add_content( ev ): ev is a event (namedTuple)
self += "hello"

self += Tag.button("add", _onclick=add_content)



And now, **ev** is not a "caller object" anymore, but an "event" ... and so, the "caller object" is in `ev.target` (like in js side), others properties are properties of **ev** (ex: `ev.clientX`)

It's a quirk (because it's only based on the name of the argument), but I have a lot of components to adapt ... and don't want to introduce big api changes too. But need to find a better way for the future 1.0 ;-)

**IMPORTANT** : this version works only on simple callback (with a unique parameter "ev"). If you try to bind "ev" and other parameters : it can't work ! Need to fix soon

0.91.1

minor changes

(no more internal/example/ut of use of `.set(x)`)

Page 2 of 35

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.