Giter Site home page Giter Site logo

sphinx's People

Stargazers

 avatar  avatar

Watchers

 avatar

sphinx's Issues

Questions without answers

Often, active-recall questions are created without answers. People then self-check and if they don't know the answer they look it up. Right now Sphinx requires answers to be present in the set.
It would be better to make this optional.

Bug when changing sets

What?

Weird index error when changing between sets. Happens probably quite rarely when one set is much longer the the other.

Reproduce:

Use the sets provided in the repo by default. Create a new set with just one pack with one question. Go to set: site, pack: web_otazky.csv then change to the new set. It should crash with some tui related index error.

The result after crash:

Traceback (most recent call last):
  File "/home/arklez/codes/Git/sphinx/main_tui.py", line 233, in <module>
    res = main_loop()
  File "/home/arklez/codes/Git/sphinx/main_tui.py", line 70, in main_loop
    res = d.handle_input(key)
  File "/home/arklez/codes/Git/sphinx/venv/lib/python3.10/site-packages/picotui/basewidget.py", line 66, in handle_input
    res = self.handle_mouse(inp[0], inp[1])
  File "/home/arklez/codes/Git/sphinx/venv/lib/python3.10/site-packages/picotui/widgets.py", line 142, in handle_mouse
    return w.handle_mouse(x, y)
  File "/home/arklez/codes/Git/sphinx/venv/lib/python3.10/site-packages/picotui/widgets.py", line 322, in handle_mouse
    self.signal("changed")
  File "/home/arklez/codes/Git/sphinx/venv/lib/python3.10/site-packages/picotui/basewidget.py", line 28, in signal
    self.signals[sig](self)
  File "/home/arklez/codes/Git/sphinx/main_tui.py", line 165, in w_listbox_changed
    pack_listbox.redraw()
  File "/home/arklez/codes/Git/sphinx/venv/lib/python3.10/site-packages/picotui/editor.py", line 61, in redraw
    self.show_line(self.content[i], i)
IndexError: list index out of range

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.