A simple GUI for the Quiz Composer meant to be run on a local server.
Project description
Quiz Composer Simple GUI
A simple and self-contained server and web GUI for the Quiz Composer.
Sample quizzes that demonstrate all question types are available in the CSE Cracks course.
Documentation Table of Contents:
Installation / Requirements
Python
This project requires Python >= 3.9.
The project can be installed from PyPi with:
pip install edq-quizcomp-simple-gui
Standard Python requirements are listed in pyproject.toml.
The project and Python dependencies can be installed from source with:
pip3 install .
PDF Files
To compile PDF files, see the Quiz Composer documentation.
Math Equations in HTML
To output equations in HTML documents (which includes Canvas), see the Quiz Composer documentation.
Usage
Command Line
To use this project, you first need to start the web server and then navigate to the web page.
To start the server, use the qcg.cli.server Python module and point it to your Quiz Composer project.
For example, to point to the sample quiz mentioned above, we could do
(assuming we already downloaded the example repository):
python3 -m qcg.cli.server cse-cracks-course/quizzes/regex
This should open a web browser to our editor, but if not we can navigate to the page manually at; 127.0.0.1:12345.
You can change the port and other settings on the command line.
Use the --help flag to see all the options:
python3 -m qcg.cli.server --help
Web
Once you are in the web editor, you should see your project directory displayed as a file tree on the left side of the screen. To the right of that is the code editor area. You can click directories to expand them, and double click files to open them in the editor area.
When you have an editable file related to a quiz open and selected in the editor, then the "Save & Compile" option/button above the code editor will activate with the available output options in the drop down menu to the right of the button. The "-" option means that you just want to save your current file. You may select any other available output format from the drop down menu. (Note that the "pdf" option will not be available if they cannot be compiled on your system (see this documentation)). With your format selected, the "Save & Compile" button will now save your current file and compile your current quiz or question. Once completed, the compilation output will appear in a new editor tab. Saving a file will always cause exiting output tabs to recompile.
Keyboard Shortcuts
| Key | Action |
|---|---|
control + s |
Save and Compile. This is the same as clicking the "Save & Compile" button. |
Known Issues
PDF Focus
How PDFs are rendered is largely handled by your browser. As such, we have less control over how exactly they are displayed and how they interact with the rest of the UI. You may find some issues when working with PDFs such as not being able to focus the PDF when clicking between editor tabs. Sometimes clicking multiple times or clicking on the tab's header can help.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edq_quizcomp_simple_gui-0.1.0.tar.gz.
File metadata
- Download URL: edq_quizcomp_simple_gui-0.1.0.tar.gz
- Upload date:
- Size: 266.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aab063ce6234a070692d367d1d5ad222596263d6eb71cc28f01bd0df4902a360
|
|
| MD5 |
5afe3bf3713229a0437b12f5b88d4e91
|
|
| BLAKE2b-256 |
c9008d4e66697fbf1564b3d72558e8c1abfbf602f5476580dcfe23fae90131d7
|
File details
Details for the file edq_quizcomp_simple_gui-0.1.0-py3-none-any.whl.
File metadata
- Download URL: edq_quizcomp_simple_gui-0.1.0-py3-none-any.whl
- Upload date:
- Size: 277.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad0c9490a4e3b740faf0a3d042bf19c74433e49006e487133289c3165df9d253
|
|
| MD5 |
41da565b5941faaeb02275c5fa6f6263
|
|
| BLAKE2b-256 |
0621034dce0bf8447fb379961624f5bcf617fcff240be1019396079f1b1c865e
|