from state_manager import State
from shared import term
import shared


class QuestionState(State):
    def enter(self):
        print(term.black_on_darkkhaki(term.center("New question")))

    def loop(self):
        title = input("Title: ")
        body = input("Body: ")
        shared.post = shared.db.new_question(title, body, shared.user)
        print("testing shared post")
        self.manager.change_state("post")

87840bfb5860c7de4636251d9724e68c1241ef4a
<mask token>


class QuestionState(State):
    <mask token>
    <mask token>

<mask token>


class QuestionState(State):
    <mask token>

    def loop(self):
        title = input('Title: ')
        body = input('Body: ')
        shared.post = shared.db.new_question(title, body, shared.user)
        print('testing shared post')
        self.manager.change_state('post')

<mask token>


class QuestionState(State):

    def enter(self):
        print(term.black_on_darkkhaki(term.center('New question')))

    def loop(self):
        title = input('Title: ')
        body = input('Body: ')
        shared.post = shared.db.new_question(title, body, shared.user)
        print('testing shared post')
        self.manager.change_state('post')

from state_manager import State
from shared import term
import shared


class QuestionState(State):

    def enter(self):
        print(term.black_on_darkkhaki(term.center('New question')))

    def loop(self):
        title = input('Title: ')
        body = input('Body: ')
        shared.post = shared.db.new_question(title, body, shared.user)
        print('testing shared post')
        self.manager.change_state('post')

from state_manager import State
from shared import term
import shared


class QuestionState(State):
    def enter(self):
        print(term.black_on_darkkhaki(term.center("New question")))

    def loop(self):
        title = input("Title: ")
        body = input("Body: ")
        shared.post = shared.db.new_question(title, body, shared.user)
        print("testing shared post")
        self.manager.change_state("post")
