semvec/pypi-packages huggingface dataset:
RangeDisplay 2021.7.1
2D Fractional display widget for Python Tkinter GUI developement
License: MIT
Keywords: Python,tkinter,range,display,widget

# RangeDisplay 2021.7.1

2D Fractional display widget for Python Tkinter GUI developement.

***Features:***
+ Range Display
+ Dimensions and Colour customisable

# Preview
[![N|Solid](https://github.com/harshvinay752/RangeDisplay/blob/main/plot.PNG?raw=true)](https://github.com/harshvinay752/RangeDisplay)

## Usage

***Importing display***
```
from RangeDisplay.RangeDisplay import RangeDisplay
```

***Creating RangeDisplay widget:***
```
from tkinter.ttk import *
from tkinter import as tk
 
root = tk.Tk()
 
display = RangeDisplay(root, 200, 200)
display.pack()  # or grid or place method could be used

root.mainloop()
```

***Updating display fraction***
``` 
display.update(0.5,0.5,0.75,0.75)
```
***Attributes***

|Attribute|Default value|Acceptable value|
|--|--|--|
|master| N/A | parent like Tk instance, TopLevel, or Frame etc.|
|Width| N/A | width of widget in px |
|Height| N/A | height of widget in px |
|padX | 6 | x padding distributed both sides of widget|
|padY | 6 | y padding distributed both sides of widget|
|radiusO | 20 | percentage rounding the corners of base display|
|radiusI | 20 | percentage rounding the corners of inner display|
|bdSize | 2 | thickness of border of displays and reference lines in px|
|bgColor | "#f3ffed" |color of base display|
|bdColor | "#000000" |color of border and reference lines|
|fgColor | "#2ef245" |color of inner display|
|xsf | 0.5 | x start fraction 0 to 1|
|xef | 0.8 | x end fraction 0 to 1|
|ysf | 0.2 | y start fraction 0 to 1|
|yef | 0.6 | y end fraction 0 to 1|


# Words of Developer

This is the first version of this library. It is one of its kind widget for tkinter. When I was developing a tool for my college project I found that at the time no inbuilt or external tool is available for tkinter allowing range selection. However, range selection is a high demand tool specially for applications dealing with data visualizations. I would appreciate any developer from any community who wants to contribute to this project.

Being a graduation student, I am unable to work over it for long. I will try to release next version having more features as soon as possible.
notifierlib 1.0.0
A library that implements a kind of fan-out pattern, sending messages to very different endpoints. Extendable through the implementation of custom Channels.
License: MIT
Keywords: notifierlib

===========
notifierlib
===========

A library that implements a kind of fan-out pattern, sending messages to very different endpoints.
Extendable through the implementation of custom Channels.


* Documentation: http://notifierlib.readthedocs.io/en/latest/

Features
--------

Introduced concepts are:

* Channels
    A channel is a communication endpoint capable of sending some type of message exposing a "notify" method.

* Groups
    A group is a construct bringing channels together under a common entrypoint showing up as a method call of the main Notifier object.

* Notifier
    The main object bringing together channels as broadcast by default and exposing methods to register and unregister channels and add and remove groups.

The payload of the notification methods is by convention a dictionary with at least a "subject" and a "message" key with the appropriate values.
It is designed like this so it can be very easy to implement much more complex structures like templates without needed any domain knowledge on all the channels.

Each channel can implement their own template as in instantiation argument in their class and handle the interpolation of variables in the notify method.

An example could be :

.. code-block:: python

    from notifierlib.channels import Email
    from notifierlib import Notifier, Group

    import logging
    logging.basicConfig(level=logging.DEBUG)
    template='<b>{{subject}}</b> <i>{{message}}</i> <a href="http://google.com">link</a>.'

    email=Email('email',
                sender='sender@gmail.com',
                recipient='recipient@gmail.com',
                smtp_address='smtp.domain.com',
                username='smtp_username',
                password='smtp_password',
                tls=True,
                ssl=False,
                port=587,
                template=template,
                content='html')

    notifier=Notifier()
    notifier.register(email)
    notifier.broadcast(subject='this is a test of a template', message="""this is a nice and long message""")

The above would render the template with the provided values on the notify method of the email channel before the mail gets sent.




For a more detailed explanation please see the USAGE.rst file.




History
-------

0.0.1 (18-09-2017)
---------------------

* First code creation


1.0.0 (07-07-2021)
------------------

* Dropped support for python2.7, implemented a pipeline and bumped dependencies.