Giter Site home page Giter Site logo

dashing's People

Contributors

aareon avatar federicoceratto avatar helveg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dashing's Issues

Code not working correctly.

I tested demo.py and does not work correctly. I could not find or fix the problem. I have python 3.8.5.
This is the screen I get:
Screen Shot 2020-10-08 at 11 21 44

Could you please provide a solution?

The command line changes the font color after the execution of the program

Hello, i've been playing with the library and I'm having a bug in which after the execution of the program, the color of the font of my console changes entirely and I have to close the terminal and open a new one.

For reference i'm using Windows 10

Here the program executed correctly but I cannot read the working directory of my terminal and whatever I type.
image

Here I changed the color of the background and foreground
image

Also, how can I contribute to the project? I modified it a bit to allow it to have a Text object alone that accepts a fixed width and height.

Cannot add items to splits

Cannot add items to split objects as the documentation suggests. This is because it creates a local copy of the tuple used to assign the items at creation. I have proposed a workaround by casting the tuple to list on the assignment to remedy this. Issue corresponds to pull request #24

PyPI package install doesn't work

Using pip install dashing will install only the dist-info, making the package unusable.

This behavior is the same with both Python 3.7 and 2.7.

Not on pypi

pip2 install dashing
Collecting dashing
Could not find a version that satisfies the requirement dashing (from versions: )
No matching distribution found for dashing

pip3 install dashing
Collecting dashing
Could not find a version that satisfies the requirement dashing (from versions: )
No matching distribution found for dashing

Example not working

when I try your example i get this error:

ui = HSplit(
NameError: name 'HSplit' is not defined

I'm a bit sad because the library looks so promising :-)

Logs widget doesn't display anything

Hi, I'm using dashing and the "Log" widget doesn't show anaything. Y try the append method and it doesn't change. Also, do you have a better documentation?

UnboundLocalError: local variable 'i' referenced before assignment

In attempting to use the Log object, I'm receiving an error stating that a local variable is being referenced before assignment.

Code:

from dashing import *

ui = HSplit(
    Log(title='logs', border_color=5)
)

log = ui.items[0]

ui.display()

log.append("hello")

Traceback:

Traceback (most recent call last):                                                                                                                                                                                                                                                                                │
  File "/LOCAL/scratch.py", line 9, in <module>                                                                                                                                                                                                │
    ui.display()                                                                                                                                                                                                                                                                                                  │
  File "/home/user/.local/lib/python3.10/site-packages/dashing/dashing.py", line 100, in display                                                                                                                                                                                                             │
    self._display(tbox, None)                                                                                                                                                                                                                                                                                     │
  File "/home/tuser/.local/lib/python3.10/site-packages/dashing/dashing.py", line 144, in _display                                                                                                                                                                                                            │
    i._display(TBox(tbox.t, x, y, item_width, item_height), self)                                                                                                                                                                                                                                                 │
  File "/home/user/.local/lib/python3.10/site-packages/dashing/dashing.py", line 205, in _display                                                                                                                                                                                                            │
    if i < tbox.h:                                                                                                                                                                                                                                                                                                │
UnboundLocalError: local variable 'i' referenced before assignment 

Reproduced in Python versions 3.9 & 3.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.