2-team Fraction Quiz/Test in Python 3 with tkinterPython tkinter GUIBasic text editor in Python with TkinterQuiz application with tkinterPython YouTube downloader with tkinterPython - Quiz Game with TkinterMinesweeper in Python TkinterPython 3 calculator with tkinterPython tkinter SnakePython UI with TkinterPython 3 tkinter calculator
Partial sums of primes
node command while defining a coordinate in TikZ
Are taller landing gear bad for aircraft, particulary large airliners?
Superhero words!
Lifted its hind leg on or lifted its hind leg towards?
You're three for three
Is there an Impartial Brexit Deal comparison site?
Have I saved too much for retirement so far?
What is the smallest body in which a sling shot maneuver can be performed?
Can I Retrieve Email Addresses from BCC?
Is there enough fresh water in the world to eradicate the drinking water crisis?
Should my PhD thesis be submitted under my legal name?
Greatest common substring
A social experiment. What is the worst that can happen?
Fast sudoku solver
Visiting the UK as unmarried couple
Why is delta-v is the most useful quantity for planning space travel?
Indicating multiple different modes of speech (fantasy language or telepathy)
What (else) happened July 1st 1858 in London?
Giant Toughroad SLR 2 for 200 miles in two days, will it make it?
Simulating a probability of 1 of 2^N with less than N random bits
How to be able to process a large JSON response?
Can I rely on these GitHub repository files?
Can somebody explain Brexit in a few child-proof sentences?
2-team Fraction Quiz/Test in Python 3 with tkinter
Python tkinter GUIBasic text editor in Python with TkinterQuiz application with tkinterPython YouTube downloader with tkinterPython - Quiz Game with TkinterMinesweeper in Python TkinterPython 3 calculator with tkinterPython tkinter SnakePython UI with TkinterPython 3 tkinter calculator
$begingroup$
I created a math quiz/game called "Factions". In the game, there are 2 teams. Red team and Blue team. They take turns answering questions relating to fractions. If they get it correct, they gain points equal to the round number * 100. If not, then they lose points equal to the round number * 100. Each team starts off with 100 points. When a team's points reaches 0, they lose the game. Here is the code for the game.
from tkinter import *
import random
import time
class Game(object):
def __init__(self):
global root
self.round = 1
self.operators = ["+", "+", "+", "+", "-", "-", "-", "*", "*", "/"]
self.operator = ""
# Scores and team labels
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points = 1000
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points = 1000
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
self.question = "(self.first_numerator / self.first_denominator) " + self.operator +
"(self.second_numerator / self.second_denominator) "
self.turn = "BLUE TURN"
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
# Questions
self.generate_question()
def generate_question(self):
"""
Generate the questions for the game.
"""
self.first_numerator = random.randint(1, 5 * self.round)
self.operator = random.choice(self.operators)
self.second_numerator = random.randint(1, 5 * self.round)
self.first_denominator = random.randint(1, 5 * self.round)
self.second_denominator = random.randint(1, 5 * self.round)
self.row_1_question = Label(root, text=str(self.first_numerator) + " " + " " + " " + str(self.second_numerator))
self.row_2_question = Label(root, text=" " + "/" + " " + self.operator + " " + "/" + " = ")
self.row_3_question = Label(root, text="0 1".format(str(self.first_denominator),
str(self.second_denominator)))
self.row_1_question.grid(row=25, column=10, columnspan=5)
self.row_2_question.grid(row=26, column=10, columnspan=5)
self.row_3_question.grid(row=27, column=10, columnspan=5)
self.row_1_question.config(font=("courier", 12))
self.row_2_question.config(font=("courier", 12))
self.row_3_question.config(font=("courier", 12))
self.question = "(self.first_numerator / self.first_denominator) " + self.operator + "(self.second_numerator "
"/ self.second_denominator) "
self.question_entry_box = Entry(root)
self.question_entry_box.grid(row=26, pady=12, column=16, columnspan=3)
self.question_check_button = Button(root, text="ENTER", command=self.check_answer)
self.question_check_button.grid(row=26, column=20)
self.turn_label = Label(root, text=self.turn)
self.turn_label.config(font=("courier", 20))
self.turn_label.grid(row=26, column=0, columnspan=9)
def check_answer(self):
self.answer = eval(self.question)
self.attempted_answer = self.question_entry_box.get()
if self.turn == "BLUE TURN":
if self.answer == float(self.attempted_answer):
self.blue_team_points += self.round * 100
else:
self.blue_team_points -= self.round * 100
else:
if self.answer == float(self.attempted_answer):
self.red_team_points += self.round * 100
else:
self.red_team_points -= self.round * 100
self.update()
def update(self):
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
if self.turn == "BLUE TURN":
self.turn = "RED TURN"
else:
self.turn = "BLUE TURN"
self.round += 1
if self.blue_team_points < 1:
game_over_label = Label(root, text="BLUE TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
if self.red_team_points < 1:
game_over_label = Label(root, text="RED TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
self.generate_question()
root = Tk()
root.title("Factions")
game = Game()
mainloop()
This is my first project with tkinter, and one of my first in Python. I want feedback on how to make the game better, and any glitches you find.
python-3.x tkinter
$endgroup$
add a comment |
$begingroup$
I created a math quiz/game called "Factions". In the game, there are 2 teams. Red team and Blue team. They take turns answering questions relating to fractions. If they get it correct, they gain points equal to the round number * 100. If not, then they lose points equal to the round number * 100. Each team starts off with 100 points. When a team's points reaches 0, they lose the game. Here is the code for the game.
from tkinter import *
import random
import time
class Game(object):
def __init__(self):
global root
self.round = 1
self.operators = ["+", "+", "+", "+", "-", "-", "-", "*", "*", "/"]
self.operator = ""
# Scores and team labels
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points = 1000
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points = 1000
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
self.question = "(self.first_numerator / self.first_denominator) " + self.operator +
"(self.second_numerator / self.second_denominator) "
self.turn = "BLUE TURN"
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
# Questions
self.generate_question()
def generate_question(self):
"""
Generate the questions for the game.
"""
self.first_numerator = random.randint(1, 5 * self.round)
self.operator = random.choice(self.operators)
self.second_numerator = random.randint(1, 5 * self.round)
self.first_denominator = random.randint(1, 5 * self.round)
self.second_denominator = random.randint(1, 5 * self.round)
self.row_1_question = Label(root, text=str(self.first_numerator) + " " + " " + " " + str(self.second_numerator))
self.row_2_question = Label(root, text=" " + "/" + " " + self.operator + " " + "/" + " = ")
self.row_3_question = Label(root, text="0 1".format(str(self.first_denominator),
str(self.second_denominator)))
self.row_1_question.grid(row=25, column=10, columnspan=5)
self.row_2_question.grid(row=26, column=10, columnspan=5)
self.row_3_question.grid(row=27, column=10, columnspan=5)
self.row_1_question.config(font=("courier", 12))
self.row_2_question.config(font=("courier", 12))
self.row_3_question.config(font=("courier", 12))
self.question = "(self.first_numerator / self.first_denominator) " + self.operator + "(self.second_numerator "
"/ self.second_denominator) "
self.question_entry_box = Entry(root)
self.question_entry_box.grid(row=26, pady=12, column=16, columnspan=3)
self.question_check_button = Button(root, text="ENTER", command=self.check_answer)
self.question_check_button.grid(row=26, column=20)
self.turn_label = Label(root, text=self.turn)
self.turn_label.config(font=("courier", 20))
self.turn_label.grid(row=26, column=0, columnspan=9)
def check_answer(self):
self.answer = eval(self.question)
self.attempted_answer = self.question_entry_box.get()
if self.turn == "BLUE TURN":
if self.answer == float(self.attempted_answer):
self.blue_team_points += self.round * 100
else:
self.blue_team_points -= self.round * 100
else:
if self.answer == float(self.attempted_answer):
self.red_team_points += self.round * 100
else:
self.red_team_points -= self.round * 100
self.update()
def update(self):
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
if self.turn == "BLUE TURN":
self.turn = "RED TURN"
else:
self.turn = "BLUE TURN"
self.round += 1
if self.blue_team_points < 1:
game_over_label = Label(root, text="BLUE TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
if self.red_team_points < 1:
game_over_label = Label(root, text="RED TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
self.generate_question()
root = Tk()
root.title("Factions")
game = Game()
mainloop()
This is my first project with tkinter, and one of my first in Python. I want feedback on how to make the game better, and any glitches you find.
python-3.x tkinter
$endgroup$
add a comment |
$begingroup$
I created a math quiz/game called "Factions". In the game, there are 2 teams. Red team and Blue team. They take turns answering questions relating to fractions. If they get it correct, they gain points equal to the round number * 100. If not, then they lose points equal to the round number * 100. Each team starts off with 100 points. When a team's points reaches 0, they lose the game. Here is the code for the game.
from tkinter import *
import random
import time
class Game(object):
def __init__(self):
global root
self.round = 1
self.operators = ["+", "+", "+", "+", "-", "-", "-", "*", "*", "/"]
self.operator = ""
# Scores and team labels
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points = 1000
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points = 1000
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
self.question = "(self.first_numerator / self.first_denominator) " + self.operator +
"(self.second_numerator / self.second_denominator) "
self.turn = "BLUE TURN"
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
# Questions
self.generate_question()
def generate_question(self):
"""
Generate the questions for the game.
"""
self.first_numerator = random.randint(1, 5 * self.round)
self.operator = random.choice(self.operators)
self.second_numerator = random.randint(1, 5 * self.round)
self.first_denominator = random.randint(1, 5 * self.round)
self.second_denominator = random.randint(1, 5 * self.round)
self.row_1_question = Label(root, text=str(self.first_numerator) + " " + " " + " " + str(self.second_numerator))
self.row_2_question = Label(root, text=" " + "/" + " " + self.operator + " " + "/" + " = ")
self.row_3_question = Label(root, text="0 1".format(str(self.first_denominator),
str(self.second_denominator)))
self.row_1_question.grid(row=25, column=10, columnspan=5)
self.row_2_question.grid(row=26, column=10, columnspan=5)
self.row_3_question.grid(row=27, column=10, columnspan=5)
self.row_1_question.config(font=("courier", 12))
self.row_2_question.config(font=("courier", 12))
self.row_3_question.config(font=("courier", 12))
self.question = "(self.first_numerator / self.first_denominator) " + self.operator + "(self.second_numerator "
"/ self.second_denominator) "
self.question_entry_box = Entry(root)
self.question_entry_box.grid(row=26, pady=12, column=16, columnspan=3)
self.question_check_button = Button(root, text="ENTER", command=self.check_answer)
self.question_check_button.grid(row=26, column=20)
self.turn_label = Label(root, text=self.turn)
self.turn_label.config(font=("courier", 20))
self.turn_label.grid(row=26, column=0, columnspan=9)
def check_answer(self):
self.answer = eval(self.question)
self.attempted_answer = self.question_entry_box.get()
if self.turn == "BLUE TURN":
if self.answer == float(self.attempted_answer):
self.blue_team_points += self.round * 100
else:
self.blue_team_points -= self.round * 100
else:
if self.answer == float(self.attempted_answer):
self.red_team_points += self.round * 100
else:
self.red_team_points -= self.round * 100
self.update()
def update(self):
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
if self.turn == "BLUE TURN":
self.turn = "RED TURN"
else:
self.turn = "BLUE TURN"
self.round += 1
if self.blue_team_points < 1:
game_over_label = Label(root, text="BLUE TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
if self.red_team_points < 1:
game_over_label = Label(root, text="RED TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
self.generate_question()
root = Tk()
root.title("Factions")
game = Game()
mainloop()
This is my first project with tkinter, and one of my first in Python. I want feedback on how to make the game better, and any glitches you find.
python-3.x tkinter
$endgroup$
I created a math quiz/game called "Factions". In the game, there are 2 teams. Red team and Blue team. They take turns answering questions relating to fractions. If they get it correct, they gain points equal to the round number * 100. If not, then they lose points equal to the round number * 100. Each team starts off with 100 points. When a team's points reaches 0, they lose the game. Here is the code for the game.
from tkinter import *
import random
import time
class Game(object):
def __init__(self):
global root
self.round = 1
self.operators = ["+", "+", "+", "+", "-", "-", "-", "*", "*", "/"]
self.operator = ""
# Scores and team labels
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points = 1000
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points = 1000
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
self.question = "(self.first_numerator / self.first_denominator) " + self.operator +
"(self.second_numerator / self.second_denominator) "
self.turn = "BLUE TURN"
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
# Questions
self.generate_question()
def generate_question(self):
"""
Generate the questions for the game.
"""
self.first_numerator = random.randint(1, 5 * self.round)
self.operator = random.choice(self.operators)
self.second_numerator = random.randint(1, 5 * self.round)
self.first_denominator = random.randint(1, 5 * self.round)
self.second_denominator = random.randint(1, 5 * self.round)
self.row_1_question = Label(root, text=str(self.first_numerator) + " " + " " + " " + str(self.second_numerator))
self.row_2_question = Label(root, text=" " + "/" + " " + self.operator + " " + "/" + " = ")
self.row_3_question = Label(root, text="0 1".format(str(self.first_denominator),
str(self.second_denominator)))
self.row_1_question.grid(row=25, column=10, columnspan=5)
self.row_2_question.grid(row=26, column=10, columnspan=5)
self.row_3_question.grid(row=27, column=10, columnspan=5)
self.row_1_question.config(font=("courier", 12))
self.row_2_question.config(font=("courier", 12))
self.row_3_question.config(font=("courier", 12))
self.question = "(self.first_numerator / self.first_denominator) " + self.operator + "(self.second_numerator "
"/ self.second_denominator) "
self.question_entry_box = Entry(root)
self.question_entry_box.grid(row=26, pady=12, column=16, columnspan=3)
self.question_check_button = Button(root, text="ENTER", command=self.check_answer)
self.question_check_button.grid(row=26, column=20)
self.turn_label = Label(root, text=self.turn)
self.turn_label.config(font=("courier", 20))
self.turn_label.grid(row=26, column=0, columnspan=9)
def check_answer(self):
self.answer = eval(self.question)
self.attempted_answer = self.question_entry_box.get()
if self.turn == "BLUE TURN":
if self.answer == float(self.attempted_answer):
self.blue_team_points += self.round * 100
else:
self.blue_team_points -= self.round * 100
else:
if self.answer == float(self.attempted_answer):
self.red_team_points += self.round * 100
else:
self.red_team_points -= self.round * 100
self.update()
def update(self):
self.blue_team_label = Label(root, text="BLUE TEAM", bg="blue")
self.blue_team_label.config(font=("Courier", 50))
self.blue_team_label.grid(row=0, column=0, columnspan=10)
self.red_team_label = Label(root, text="RED TEAM", bg="red")
self.red_team_label.config(font=("Courier", 50))
self.red_team_label.grid(row=0, column=23, columnspan=10)
self.blue_team_points_label = Label(root, text="Points: " + str(self.blue_team_points))
self.blue_team_points_label.config(font=("Courier", 30))
self.blue_team_points_label.grid(row=5, column=0, columnspan=10)
self.red_team_points_label = Label(root, text="Points: " + str(self.red_team_points))
self.red_team_points_label.config(font=("Courier", 30))
self.red_team_points_label.grid(row=5, column=23, columnspan=10)
if self.turn == "BLUE TURN":
self.turn = "RED TURN"
else:
self.turn = "BLUE TURN"
self.round += 1
if self.blue_team_points < 1:
game_over_label = Label(root, text="BLUE TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
if self.red_team_points < 1:
game_over_label = Label(root, text="RED TEAM LOSES")
game_over_label.config(font=("courier", 20))
game_over_label.grid(row=50, column=0, columnspan=10)
time.sleep(3)
sys.exit()
self.round_label = Label(root, text="ROUND " + str(self.round))
self.round_label.config(font=("courier", 20))
self.round_label.grid(row=26, column=23, columnspan=10)
self.generate_question()
root = Tk()
root.title("Factions")
game = Game()
mainloop()
This is my first project with tkinter, and one of my first in Python. I want feedback on how to make the game better, and any glitches you find.
python-3.x tkinter
python-3.x tkinter
asked 7 mins ago
Jerry CuiJerry Cui
264
264
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
);
);
, "mathjax-editing");
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "196"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f216191%2f2-team-fraction-quiz-test-in-python-3-with-tkinter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Code Review Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f216191%2f2-team-fraction-quiz-test-in-python-3-with-tkinter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown