semvec/pypi-packages huggingface dataset:
tkstylesheet 0.0.1b0
This library helps you to set style to tkinter default widget using stylesheet with ease.
License: MIT
Requires Python: >=3.6
Keywords: tkinter,stylesheet,tkss,tkinter stylesheet

# Tkinter stylesheet - Tkss

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

This library helps you to set style to tkinter default widget using stylesheet without
much work.

**Quick Example:**

```python
from tkinter import *
from tkstylesheet import TkThemeLoader

_style = """
        Tk{
            background: "#565657"; /*background color of the root widget*/
        }
        
        Label{
            foreground: "#ebebeb";
            background: "#565657";
        }
        
        Button{
            foreground: "#ebebeb";
            background: "#565657";
        }
        
        """

root = Tk()

Label(root, text="label").pack()
Button(root, text="Button").pack()

theme = TkThemeLoader(root)
theme.setStylesheet(_style)  # pass as string

root.mainloop()
```

If you want to load tkss from a file:

1. save you theme in a file
2. load it using TkThemeLoader().loadStyleSheet(file_path)

example:

theme.tkss
```
Tk{
    background: "#565657";
}

Label{
    foreground: "#ebebeb";
    background: "#565657";
}

Button{
    foreground: "#ebebeb";
    background: "#565657";
}
```
project.py

```python
from tkinter import *
from tkstylesheet import TkThemeLoader

root = Tk()

Label(root, text="label").pack()
Button(root, text="Button").pack()

theme = TkThemeLoader(root)
theme.loadStyleSheet("theme.tkss")  # pass file path

root.mainloop()
```

Please read further examples on how to switch theme etc, [here](https://github.com/PaulleDemon/tkStyleSheet/tree/master/Examples).
Refer stylesheets examples [here](https://github.com/PaulleDemon/tkStyleSheet/tree/master/Examples/Themes)

Documentation [here](https://github.com/PaulleDemon/tkStyleSheet/blob/master/Documentation.md)
envconfig 0.2.1
Parse config options from the OS environment.
License: MIT
Keywords: config,environment,12factor

envconfig
=========


.. image:: https://api.travis-ci.org/dbader/envconfig.png
        :target: https://travis-ci.org/dbader/envconfig

.. image:: https://coveralls.io/repos/dbader/envconfig/badge.png
        :target: https://coveralls.io/r/dbader/envconfig

.. image:: https://pypip.in/v/envconfig/badge.png
        :target: https://pypi.python.org/pypi/envconfig

A module for reading configuration values from the OS environment variables.

Compared to using straight os.getenv() this module provides a view
convenience functions, for example, for parsing booleans.

I was not happy with using straight os.getenv() because we've had a
number of errors that were related to missing config values in .env
files. This module should help with that by providing a clean way for
accessing config variables.

Usage
-----

.. code-block:: bash

    $ pip install envconfig

.. code-block:: python

    import envconfig

    boolopt = envconfig.bool("BOOL_OPTION")
    intopt = envconfig.int("INTEGER_OPTION")
    stropt = envconfig.int("STRING_OPTION")
    listopt = envconfig.list("LIST_OPTION")
    dictopt = envconfig.dict("DICT_OPTION")

Meta
----

Daniel Bader – `@dbader_org <https://twitter.com/dbader_org>`_ – mail@dbader.org

Distributed under the MIT license. See ``LICENSE.txt`` for more information.

https://github.com/dbader/envconfig


.. :changelog:

History
-------

0.2.1 (2021-07-23)
++++++++++++++++++

- envconfig.list(): return [] if env var is empty
- envconfig.dict(): return {} if env var is empty

0.2.0 (2021-07-23)
++++++++++++++++++

- Add envconfig.dict()


0.1.0 (2013-05-27)
++++++++++++++++++

- Initial release
aqwebengine 0.0.2
Async helpers for QWebEngine
License: MIT
Requires Python: >= 3.9

# aqwebengine

Qt QWebEngine on `async` steroids:

* `async` versions of methods to load URL and set page html
* `async` versions of methods to get page content as HTML and plain text
* `async` method to call python from JS
* `async` method to call JS from Python

Uses [qasync](https://pypi.org/project/qasync/) as an engine to run PyQt/PySide2 asyncronously.

## Examples

```
w = AQWebEngine()
...
await w.set_html_async('<b>Hello</b>, world!')
...
await w.load('https://www.example.com')
...
html = await w.to_html_async()  # get current page as HTML
...
text = await w.to_plain_text()  # get current page as plain text
...
await w.eval_js('function inc(x) { return x + 1; }')
result = await w.eval_js('inc(41)')
assert result == 42
...
def do_something(x):
    return x + 1
w.register_python_function('do_something', do_something)
result = await w.eval_js('qt.callPython("do_something", 41)')
assert result == 42
```

## Python API

### `eval_js`
Asynchronously evaluates the string argument as a JS expression.
Returns result to the Python caller. JSError is raised if evaluation of JS expression throws an exception.

### register_python_function
Registeres a python (sync or async) function to be callable from JS (see qt.callPython JS API below).

Python function should take a single JSON-serializable parameter.

Arguments:
* `function_name` - the name of the function, as seen by JS
* `function` - python function. Can be sync or async, should take a single JSON-serializable argument.

## JS API

### `qt.callPython`
Calls python host.

Arguments:
* `function_name` - the name of the registered python function
* (optional) `args` - any JSON-serializable value

Python function may return JSON-serializable value, that will be returned to the JS caller.