Code Monkey home page Code Monkey logo

quo's People

Contributors

pyup-bot avatar quantum-quirks avatar snyk-bot 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

Watchers

 avatar  avatar

quo's Issues

Broken placeholder()

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

unicode characters not displaying on windows

You may find a solution to your problem in the docs or issues.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS, Ubuntu]
  • Version [e.g. 22]

Android(please complete the following information):

  • Model [e.g. Samsung]
  • OS: [eg. Android 11]
  • App [e.g. Termux]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

TypeError()

Describe the bug
TypeError: prompt() got an unexpected keyword argument 'autoconfirm'

Missing dependency and .flair() function not available.

Describe the bug
wcwidth is a required module but deosn't get installed when installing quo via pip.
The examples refer to quo.flair() but it doesn't seem to have such a function

To Reproduce

import quo
quo.flair(f'Hello, World!', fg="red", bold=True)
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'quo' has no attribute 'flair'

Expected behavior
.flair() function should be available

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac OSX Big Sur with Homebrew
  • Python 3.9.6 (installed via Homebrew).

[BUG]

You may find a solution to your problem in the docs or issues.

Describe the bug
:meth:quo.console.Console.size object not Callable

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Overline text

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
Adding and overline

Dialogs gives an error to start [BUG]

You may find a solution to your problem in the docs or issues.

Describe the bug
When i use the module quo.dialog i recived a some errors using a
template of the docs which are that:

Traceback (most recent call last):
  File "C:\Users\esteb\Downloads\Haciendouncliente\Launch(thanks-to-portablemc).py", line 4, in <module>
    MessageBox(
  File "C:\Users\esteb\scoop\apps\python\current\Lib\site-packages\quo\dialog.py", line 475, in MessageBox
    return _MessageBox(
           ^^^^^^^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\site-packages\quo\dialog.py", line 201, in _MessageBox
    dialog = Dialog(
             ^^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\site-packages\quo\widget\dialogs.py", line 88, in __init__
    body=Frame(
         ^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\site-packages\quo\widget\core.py", line 538, in __init__
    Label(
  File "C:\Users\esteb\scoop\apps\python\current\Lib\site-packages\quo\widget\core.py", line 388, in __init__
    FormattedTextControl(Text(text)),
                         ^^^^^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\site-packages\quo\text\html.py", line 31, in __init__
    mini = minidom.parseString(f"<html-root>{value}</html-root>")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\xml\dom\minidom.py", line 2000, in parseString
    return expatbuilder.parseString(string)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\xml\dom\expatbuilder.py", line 925, in parseString
    return builder.parseString(string)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\esteb\scoop\apps\python\current\Lib\xml\dom\expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 36

Code:

import subprocess
from quo.dialog import MessageBox

MessageBox(
    title='Message window',
    text='Do you want to continue?\nPress ENTER to quit.')

To Reproduce
Steps to reproduce the behavior:

  1. Run the code up ☝️

Expected behavior
A clear and concise description of what you expected to happen.
I belive that a some argument (i don't know which) may be crashed by a error in the loading of the dialog and the core. I don't know, but i was looking in to source code and then i found the core (I don't know if this matters) and i found that would be outdated or simply broken.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Desktop (please complete the following information):

  • OS: [e.g. Windows 11]
  • Version [e.g. 22H2 (KB5025305)]

Android(please complete the following information):

  • Model [e.g. Samsung]
  • OS: [eg. Android 11]
  • App [e.g. Termux]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
I think is probably a problem of my computer should be my ssd that's may be no too high quality and i saw some problems to start apps and programs.

Import error within package

Describe the bug
I tried to execute examples from README.md, this one is for prompt, however I get an ImportError

>>> completer = quo.completion.WordCompleter(['USA', 'UK', 'Canada', 'Kenya'])
>>> session = quo.Prompt(completer=completer)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python\Python38\lib\site-packages\quo\shortcuts\prompt.py", line 452, in __init__
    self.app = self._create_application(editing_mode, erase_when_done)
  File "C:\Python\Python38\lib\site-packages\quo\shortcuts\prompt.py", line 703, in _create_application
    application: Suite[_T] = Suite(
  File "C:\Python\Python38\lib\site-packages\quo\suite\suite.py", line 280, in __init__
    self.output = output or session.output
  File "C:\Python\Python38\lib\site-packages\quo\suite\current.py", line 70, in output
    self._output = create_output()
  File "C:\Python\Python38\lib\site-packages\quo\output\defaults.py", line 59, in create_output
    from .console_emulator import ConEmu
  File "C:\Python\Python38\lib\site-packages\quo\output\console_emulator.py", line 8, in <module>
    from .win32 import Win32Output
  File "C:\Python\Python38\lib\site-packages\quo\output\win32.py", line 16, in <module>
    from quo.utils import get_cwidth
ImportError: cannot import name 'get_cwidth' from 'quo.utils' (C:\Python\Python38\lib\site-packages\quo\utils\__init__.py)

To Reproduce
Steps to reproduce the behavior:

  1. Try to execute example
import quo

completer = quo.completion.WordCompleter(['USA', 'UK', 'Canada', 'Kenya'])
session = quo.Prompt(completer=completer)
session.prompt('Which country are you from?: ')
  1. See error

Expected behavior
Not throw an error.

Desktop (please complete the following information):

  • OS: Windows 10 x64
  • Python version: 3.8
  • Quo version: 2021.07

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.