dibbler/text_interface/faq.py

109 lines
4.5 KiB
Python
Raw Normal View History

2017-02-20 13:19:03 +01:00
# -*- coding: utf-8 -*-
from .helpermenus import MessageMenu, Menu
class FAQMenu(Menu):
def __init__(self):
Menu.__init__(self, 'Frequently Asked Questions')
self.items = [MessageMenu('What is the meaning with this program?',
'''
2018-08-31 13:48:13 +02:00
We want to avoid keeping lots of cash in PVVVV's money box and to
2017-02-20 13:19:03 +01:00
make it easy to pay for stuff without using money. (Without using
money each time, that is. You do of course have to pay for the things
you buy eventually).
Dibbler stores a "credit" amount for each user. When you register a
purchase in Dibbler, this amount is decreased. To increase your
2018-08-31 13:48:13 +02:00
credit, purchase products for dibbler, and register them using "Add
stock and adjust credit".
Alternatively, add money to the money box and use "Adjust credit" to
tell Dibbler about it.
2017-02-20 13:19:03 +01:00
'''),
MessageMenu('Can I still pay for stuff using cash?',
2018-08-31 13:48:13 +02:00
'''
Please put money in the money box and use "Adjust Credit" so that
dibbler can keep track of credit and purchases.'''),
2017-02-20 13:19:03 +01:00
MessageMenu('How do I exit from a submenu/dialog/thing?',
2019-09-21 16:52:40 +02:00
'Type "exit", "q", or ^d.'),
2017-02-20 13:19:03 +01:00
MessageMenu('What does "." mean?',
'''
The "." character, known as "full stop" or "period", is most often
used to indicate the end of a sentence.
It is also used by Dibbler to indicate that the program wants you to
read some text before continuing. Whenever some output ends with a
line containing only a period, you should read the lines above and
then press enter to continue.
'''),
MessageMenu('Why is the user interface so terribly unintuitive?',
'''
Answer #1: It is not.
2018-08-31 13:48:13 +02:00
Answer #2: We are trying to compete with PVV's microwave oven in
2017-02-20 13:19:03 +01:00
userfriendliness.
Answer #3: YOU are unintuitive.
'''),
MessageMenu('Why is there no help command?',
'There is. Have you tried typing "help"?'),
MessageMenu('Where are the easter eggs? I tried saying "moo", but nothing happened.',
'Don\'t say "moo".'),
MessageMenu('Why does the program speak English when all the users are Norwegians?',
2018-08-19 16:38:45 +02:00
'Godt spørsmål. Det virket sikkert som en god idé der og da.'),
2018-08-31 13:48:13 +02:00
MessageMenu('Why does the screen have strange colours?',
'''
Type "c" on the main menu to change the colours of the display, or
"cs" if you are a boring person.
'''),
2017-02-20 13:19:03 +01:00
MessageMenu('I found a bug; is there a reward?',
'''
No.
But if you are certain that it is a bug, not a feature, then you
should fix it (or better: force someone else to do it).
Follow this procedure:
2018-08-31 13:48:13 +02:00
1. Check out the Dibbler code: https://github.com/Programvareverkstedet/dibbler
2017-02-20 13:19:03 +01:00
2. Fix the bug.
3. Check that the program still runs (and, preferably, that the bug is
in fact fixed).
4. Commit.
5. Update the running copy from svn:
$ su -
# su -l -s /bin/bash pvvvv
$ cd dibbler
2018-08-31 13:48:13 +02:00
$ git pull
2017-02-20 13:19:03 +01:00
6. Type "restart" in Dibbler to replace the running process by a new
one using the updated files.
'''),
MessageMenu('My question isn\'t listed here; what do I do?',
'''
2018-08-31 13:48:13 +02:00
DON'T PANIC.
2017-02-20 13:19:03 +01:00
Follow this procedure:
1. Ask someone (or read the source code) and get an answer.
2018-08-31 13:48:13 +02:00
2. Check out the Dibbler code: https://github.com/Programvareverkstedet/dibbler
2017-02-20 13:19:03 +01:00
3. Add your question (with answer) to the FAQ and commit.
4. Update the running copy from svn:
$ su -
# su -l -s /bin/bash pvvvv
$ cd dibbler
2018-08-31 13:48:13 +02:00
$ git pull
2017-02-20 13:19:03 +01:00
5. Type "restart" in Dibbler to replace the running process by a new
one using the updated files.
''')]