Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 144.79 KB | None | 0 0
  1. from tkinter import *
  2.  
  3. # Erzeugung des Fensters
  4. tkFenster = Tk()
  5. tkFenster.title('TicTacToe')
  6. tkFenster.geometry('940x940')
  7.  
  8. #Globale Variablen
  9. Auswahl = 1
  10. B1 = 1
  11. B2 = 1
  12. B3 = 1
  13. B4 = 1
  14. B5 = 1
  15. B6 = 1
  16. B7 = 1
  17. B8 = 1
  18. B9 = 1
  19.  
  20. #Ereignisbehandlung
  21.  
  22.  
  23. def buttonBeendenClick():
  24.     tkFenster.destroy()
  25.     tkErgebnis.destroy()
  26.    
  27.    
  28.  
  29.  
  30. def buttonNochmalClick():
  31.     global B1
  32.     global B2
  33.     global B3
  34.     global B4
  35.     global B5
  36.     global B6
  37.     global B7
  38.     global B8
  39.     global B9
  40.  
  41.     global Auswahl
  42.  
  43.     buttonClick1.config(state='normal')
  44.     buttonClick2.config(state='normal')
  45.     buttonClick3.config(state='normal')
  46.     buttonClick4.config(state='normal')
  47.     buttonClick5.config(state='normal')
  48.     buttonClick6.config(state='normal')
  49.     buttonClick7.config(state='normal')
  50.     buttonClick8.config(state='normal')
  51.     buttonClick9.config(state='normal')
  52.  
  53.     buttonClick1.config(text='')
  54.     buttonClick2.config(text='')
  55.     buttonClick3.config(text='')
  56.     buttonClick4.config(text='')
  57.     buttonClick5.config(text='')
  58.     buttonClick6.config(text='')
  59.     buttonClick7.config(text='')
  60.     buttonClick8.config(text='')
  61.     buttonClick9.config(text='')
  62.  
  63.     Auswahl = 1
  64.     B1 = 1
  65.     B2 = 1
  66.     B3 = 1
  67.     B4 = 1
  68.     B5 = 1
  69.     B6 = 1
  70.     B7 = 1
  71.     B8 = 1
  72.     B9 = 1
  73.  
  74.     tkErgebnis.destroy()
  75.  
  76.    
  77.    
  78.    
  79.  
  80. def buttonClick1() :
  81.     global B1
  82.     if B1 == 1:
  83.         global Auswahl
  84.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  85.             buttonClick1.config(text='T', font=('Arial', 300), fg= 'red')
  86.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  87.             buttonClick1.config(text='L', font=('Arial', 300), fg= 'blue')
  88.         Auswahl = Auswahl + 1
  89.     else:
  90.         pass
  91.  
  92.  
  93.     B1 = 0
  94.  
  95.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  96.         tkErgebnis = Tk()
  97.         tkErgebnis.title('Spieler T gewinnt')
  98.         tkErgebnis.geometry('600x400')
  99.  
  100.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  101.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  102.        
  103.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  104.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  105.  
  106.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  107.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  108.  
  109.    
  110.        
  111.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  112.         tkErgebnis = Tk()
  113.         tkErgebnis.title('Spieler L gewinnt')
  114.         tkErgebnis.geometry('600x400')
  115.  
  116.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  117.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  118.  
  119.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  120.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  121.  
  122.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  123.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  124.        
  125.  
  126.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  127.         tkErgebnis = Tk()
  128.         tkErgebnis.title('Spieler T gewinnt')
  129.         tkErgebnis.geometry('600x400')
  130.  
  131.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  132.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  133.  
  134.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  135.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  136.  
  137.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  138.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  139.  
  140.  
  141.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  142.         tkErgebnis = Tk()
  143.         tkErgebnis.title('Spieler L gewinnt')
  144.         tkErgebnis.geometry('600x400')
  145.  
  146.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  147.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  148.  
  149.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  150.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  151.  
  152.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  153.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  154.  
  155.        
  156.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  157.         tkErgebnis = Tk()
  158.         tkErgebnis.title('Spieler T gewinnt')
  159.         tkErgebnis.geometry('600x400')
  160.  
  161.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  162.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  163.  
  164.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  165.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  166.  
  167.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  168.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  169.  
  170.    
  171.  
  172.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  173.         tkErgebnis = Tk()
  174.         tkErgebnis.title('Spieler L gewinnt')
  175.         tkErgebnis.geometry('600x400')
  176.  
  177.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  178.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  179.  
  180.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  181.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  182.  
  183.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  184.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  185.  
  186.  
  187.  
  188.  
  189.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  190.         tkErgebnis = Tk()
  191.         tkErgebnis.title('Spieler T gewinnt')
  192.         tkErgebnis.geometry('600x400')
  193.  
  194.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  195.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  196.  
  197.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  198.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  199.  
  200.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  201.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  202.  
  203.    
  204.        
  205.        
  206.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  207.         tkErgebnis = Tk()
  208.         tkErgebnis.title('Spieler L gewinnt')
  209.         tkErgebnis.geometry('600x400')
  210.  
  211.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  212.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  213.  
  214.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  215.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  216.  
  217.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  218.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  219.  
  220.    
  221.  
  222.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  223.         tkErgebnis = Tk()
  224.         tkErgebnis.title('Spieler T gewinnt')
  225.         tkErgebnis.geometry('600x400')
  226.  
  227.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  228.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  229.  
  230.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  231.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  232.  
  233.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  234.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  235.  
  236.    
  237.  
  238.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  239.         tkErgebnis = Tk()
  240.         tkErgebnis.title('Spieler L gewinnt')
  241.         tkErgebnis.geometry('600x400')
  242.  
  243.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  244.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  245.  
  246.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  247.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  248.  
  249.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  250.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  251.  
  252.    
  253.        
  254.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  255.         tkErgebnis = Tk()
  256.         tkErgebnis.title('Spieler T gewinnt')
  257.         tkErgebnis.geometry('600x400')
  258.  
  259.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  260.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  261.  
  262.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  263.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  264.  
  265.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  266.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  267.  
  268.    
  269.  
  270.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  271.         tkErgebnis = Tk()
  272.         tkErgebnis.title('Spieler L gewinnt')
  273.         tkErgebnis.geometry('600x400')
  274.  
  275.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  276.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  277.  
  278.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  279.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  280.  
  281.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  282.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  283.  
  284.  
  285.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  286.         tkErgebnis = Tk()
  287.         tkErgebnis.title('Spieler T gewinnt')
  288.         tkErgebnis.geometry('600x400')
  289.  
  290.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  291.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  292.  
  293.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  294.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  295.  
  296.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  297.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  298.  
  299.    
  300.  
  301.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  302.         tkErgebnis = Tk()
  303.         tkErgebnis.title('Spieler L gewinnt')
  304.         tkErgebnis.geometry('600x400')
  305.  
  306.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  307.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  308.  
  309.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  310.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  311.  
  312.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  313.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  314.  
  315.    
  316.        
  317.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  318.         tkErgebnis = Tk()
  319.         tkErgebnis.title('Spieler T gewinnt')
  320.         tkErgebnis.geometry('600x400')
  321.  
  322.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  323.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  324.  
  325.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  326.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  327.  
  328.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  329.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  330.  
  331.        
  332.  
  333.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  334.         tkErgebnis = Tk()
  335.         tkErgebnis.title('Spieler L gewinnt')
  336.         tkErgebnis.geometry('600x400')
  337.  
  338.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  339.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  340.  
  341.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  342.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  343.  
  344.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  345.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  346.  
  347.  
  348.  
  349.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  350.         tkErgebnis = Tk()
  351.         tkErgebnis.title('Unentschieden')
  352.         tkErgebnis.geometry('600x400')
  353.  
  354.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  355.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  356.  
  357.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  358.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  359.  
  360.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  361.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  362.  
  363.  
  364.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  365.             buttonClick1.config(state='disabled')
  366.             buttonClick2.config(state='disabled')
  367.             buttonClick3.config(state='disabled')
  368.             buttonClick4.config(state='disabled')
  369.             buttonClick5.config(state='disabled')
  370.             buttonClick6.config(state='disabled')
  371.             buttonClick7.config(state='disabled')
  372.             buttonClick8.config(state='disabled')
  373.             buttonClick9.config(state='disabled')
  374.  
  375.  
  376.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  377.             buttonClick1.config(state='disabled')
  378.             buttonClick2.config(state='disabled')
  379.             buttonClick3.config(state='disabled')
  380.             buttonClick4.config(state='disabled')
  381.             buttonClick5.config(state='disabled')
  382.             buttonClick6.config(state='disabled')
  383.             buttonClick7.config(state='disabled')
  384.             buttonClick8.config(state='disabled')
  385.             buttonClick9.config(state='disabled')
  386.  
  387.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  388.             buttonClick1.config(state='disabled')
  389.             buttonClick2.config(state='disabled')
  390.             buttonClick3.config(state='disabled')
  391.             buttonClick4.config(state='disabled')
  392.             buttonClick5.config(state='disabled')
  393.             buttonClick6.config(state='disabled')
  394.             buttonClick7.config(state='disabled')
  395.             buttonClick8.config(state='disabled')
  396.             buttonClick9.config(state='disabled')
  397.  
  398.  
  399.    
  400.  
  401. def buttonClick2() :
  402.     global B2
  403.     if B2 == 1:
  404.         global Auswahl
  405.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  406.             buttonClick2.config(text='T', font=('Arial', 300), fg= 'red')
  407.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  408.             buttonClick2.config(text='L', font=('Arial', 300), fg= 'blue')
  409.         Auswahl = Auswahl + 1
  410.     else:
  411.         pass
  412.  
  413.     B2 = 0
  414.  
  415.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  416.         tkErgebnis = Tk()
  417.         tkErgebnis.title('Spieler T gewinnt')
  418.         tkErgebnis.geometry('600x400')
  419.  
  420.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  421.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  422.  
  423.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  424.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  425.  
  426.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  427.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  428.        
  429.        
  430.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  431.         tkErgebnis = Tk()
  432.         tkErgebnis.title('Spieler L gewinnt')
  433.         tkErgebnis.geometry('600x400')
  434.  
  435.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  436.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  437.  
  438.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  439.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  440.  
  441.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  442.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  443.        
  444.  
  445.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  446.         tkErgebnis = Tk()
  447.         tkErgebnis.title('Spieler T gewinnt')
  448.         tkErgebnis.geometry('600x400')
  449.  
  450.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  451.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  452.  
  453.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  454.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  455.  
  456.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  457.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  458.        
  459.  
  460.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  461.         tkErgebnis = Tk()
  462.         tkErgebnis.title('Spieler L gewinnt')
  463.         tkErgebnis.geometry('600x400')
  464.  
  465.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  466.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  467.  
  468.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  469.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  470.  
  471.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  472.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  473.        
  474.        
  475.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  476.         tkErgebnis = Tk()
  477.         tkErgebnis.title('Spieler T gewinnt')
  478.         tkErgebnis.geometry('600x400')
  479.  
  480.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  481.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  482.  
  483.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  484.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  485.  
  486.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  487.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  488.  
  489.        
  490.  
  491.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  492.         tkErgebnis = Tk()
  493.         tkErgebnis.title('Spieler L gewinnt')
  494.         tkErgebnis.geometry('600x400')
  495.  
  496.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  497.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  498.  
  499.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  500.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  501.  
  502.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  503.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  504.  
  505.  
  506.  
  507.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  508.         tkErgebnis = Tk()
  509.         tkErgebnis.title('Spieler T gewinnt')
  510.         tkErgebnis.geometry('600x400')
  511.  
  512.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  513.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  514.  
  515.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  516.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  517.  
  518.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  519.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  520.        
  521.        
  522.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  523.         tkErgebnis = Tk()
  524.         tkErgebnis.title('Spieler L gewinnt')
  525.         tkErgebnis.geometry('600x400')
  526.  
  527.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  528.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  529.  
  530.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  531.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  532.  
  533.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  534.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  535.  
  536.        
  537.  
  538.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  539.         tkErgebnis = Tk()
  540.         tkErgebnis.title('Spieler T gewinnt')
  541.         tkErgebnis.geometry('600x400')
  542.  
  543.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  544.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  545.  
  546.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  547.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  548.  
  549.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  550.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  551.  
  552.        
  553.  
  554.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  555.         tkErgebnis = Tk()
  556.         tkErgebnis.title('Spieler L gewinnt')
  557.         tkErgebnis.geometry('600x400')
  558.  
  559.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  560.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  561.  
  562.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  563.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  564.  
  565.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  566.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  567.  
  568.        
  569.        
  570.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  571.         tkErgebnis = Tk()
  572.         tkErgebnis.title('Spieler T gewinnt')
  573.         tkErgebnis.geometry('600x400')
  574.  
  575.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  576.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  577.  
  578.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  579.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  580.  
  581.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  582.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  583.  
  584.        
  585.  
  586.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  587.         tkErgebnis = Tk()
  588.         tkErgebnis.title('Spieler L gewinnt')
  589.         tkErgebnis.geometry('600x400')
  590.  
  591.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  592.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  593.  
  594.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  595.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  596.  
  597.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  598.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  599.  
  600.  
  601.  
  602.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  603.         tkErgebnis = Tk()
  604.         tkErgebnis.title('Spieler T gewinnt')
  605.         tkErgebnis.geometry('600x400')
  606.  
  607.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  608.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  609.  
  610.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  611.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  612.  
  613.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  614.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  615.  
  616.        
  617.  
  618.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  619.         tkErgebnis = Tk()
  620.         tkErgebnis.title('Spieler L gewinnt')
  621.         tkErgebnis.geometry('600x400')
  622.  
  623.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  624.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  625.  
  626.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  627.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  628.  
  629.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  630.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  631.  
  632.        
  633.        
  634.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  635.         tkErgebnis = Tk()
  636.         tkErgebnis.title('Spieler T gewinnt')
  637.         tkErgebnis.geometry('600x400')
  638.  
  639.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  640.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  641.  
  642.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  643.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  644.  
  645.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  646.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  647.  
  648.        
  649.  
  650.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  651.         tkErgebnis = Tk()
  652.         tkErgebnis.title('Spieler L gewinnt')
  653.         tkErgebnis.geometry('600x400')
  654.  
  655.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  656.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  657.  
  658.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  659.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  660.  
  661.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  662.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  663.  
  664.  
  665.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  666.         tkErgebnis = Tk()
  667.         tkErgebnis.title('Unentschieden')
  668.         tkErgebnis.geometry('600x400')
  669.  
  670.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  671.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  672.  
  673.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  674.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  675.  
  676.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  677.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  678.  
  679.  
  680.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  681.             buttonClick1.config(state='disabled')
  682.             buttonClick2.config(state='disabled')
  683.             buttonClick3.config(state='disabled')
  684.             buttonClick4.config(state='disabled')
  685.             buttonClick5.config(state='disabled')
  686.             buttonClick6.config(state='disabled')
  687.             buttonClick7.config(state='disabled')
  688.             buttonClick8.config(state='disabled')
  689.             buttonClick9.config(state='disabled')
  690.  
  691.  
  692.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  693.             buttonClick1.config(state='disabled')
  694.             buttonClick2.config(state='disabled')
  695.             buttonClick3.config(state='disabled')
  696.             buttonClick4.config(state='disabled')
  697.             buttonClick5.config(state='disabled')
  698.             buttonClick6.config(state='disabled')
  699.             buttonClick7.config(state='disabled')
  700.             buttonClick8.config(state='disabled')
  701.             buttonClick9.config(state='disabled')
  702.  
  703.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  704.             buttonClick1.config(state='disabled')
  705.             buttonClick2.config(state='disabled')
  706.             buttonClick3.config(state='disabled')
  707.             buttonClick4.config(state='disabled')
  708.             buttonClick5.config(state='disabled')
  709.             buttonClick6.config(state='disabled')
  710.             buttonClick7.config(state='disabled')
  711.             buttonClick8.config(state='disabled')
  712.             buttonClick9.config(state='disabled')
  713.  
  714.  
  715. def buttonClick3() :
  716.     global B3
  717.     if B3 == 1:
  718.         global Auswahl
  719.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  720.             buttonClick3.config(text='T', font=('Arial', 300), fg= 'red')
  721.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  722.             buttonClick3.config(text='L', font=('Arial', 300), fg= 'blue')
  723.         Auswahl = Auswahl + 1
  724.     else:
  725.         pass
  726.  
  727.     B3 = 0
  728.  
  729.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  730.         tkErgebnis = Tk()
  731.         tkErgebnis.title('Spieler T gewinnt')
  732.         tkErgebnis.geometry('600x400')
  733.  
  734.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  735.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  736.  
  737.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  738.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  739.  
  740.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  741.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  742.        
  743.        
  744.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  745.         tkErgebnis = Tk()
  746.         tkErgebnis.title('Spieler L gewinnt')
  747.         tkErgebnis.geometry('600x400')
  748.  
  749.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  750.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  751.  
  752.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  753.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  754.  
  755.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  756.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  757.  
  758.        
  759.  
  760.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  761.         tkErgebnis = Tk()
  762.         tkErgebnis.title('Spieler T gewinnt')
  763.         tkErgebnis.geometry('600x400')
  764.  
  765.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  766.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  767.  
  768.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  769.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  770.  
  771.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  772.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  773.  
  774.        
  775.  
  776.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  777.         tkErgebnis = Tk()
  778.         tkErgebnis.title('Spieler L gewinnt')
  779.         tkErgebnis.geometry('600x400')
  780.  
  781.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  782.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  783.  
  784.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  785.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  786.  
  787.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  788.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  789.  
  790.  
  791.        
  792.        
  793.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  794.         tkErgebnis = Tk()
  795.         tkErgebnis.title('Spieler T gewinnt')
  796.         tkErgebnis.geometry('600x400')
  797.  
  798.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  799.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  800.  
  801.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  802.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  803.  
  804.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  805.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  806.  
  807.        
  808.  
  809.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  810.         tkErgebnis = Tk()
  811.         tkErgebnis.title('Spieler L gewinnt')
  812.         tkErgebnis.geometry('600x400')
  813.  
  814.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  815.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  816.  
  817.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  818.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  819.  
  820.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  821.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  822.  
  823.  
  824.  
  825.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  826.         tkErgebnis = Tk()
  827.         tkErgebnis.title('Spieler T gewinnt')
  828.         tkErgebnis.geometry('600x400')
  829.  
  830.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  831.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  832.  
  833.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  834.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  835.  
  836.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  837.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  838.        
  839.        
  840.        
  841.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  842.         tkErgebnis = Tk()
  843.         tkErgebnis.title('Spieler L gewinnt')
  844.         tkErgebnis.geometry('600x400')
  845.  
  846.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  847.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  848.  
  849.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  850.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  851.  
  852.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  853.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  854.  
  855.  
  856.        
  857.  
  858.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  859.         tkErgebnis = Tk()
  860.         tkErgebnis.title('Spieler T gewinnt')
  861.         tkErgebnis.geometry('600x400')
  862.  
  863.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  864.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  865.  
  866.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  867.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  868.  
  869.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  870.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  871.  
  872.        
  873.  
  874.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  875.         tkErgebnis = Tk()
  876.         tkErgebnis.title('Spieler L gewinnt')
  877.         tkErgebnis.geometry('600x400')
  878.  
  879.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  880.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  881.  
  882.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  883.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  884.  
  885.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  886.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  887.  
  888.        
  889.        
  890.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  891.         tkErgebnis = Tk()
  892.         tkErgebnis.title('Spieler T gewinnt')
  893.         tkErgebnis.geometry('600x400')
  894.  
  895.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  896.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  897.  
  898.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  899.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  900.  
  901.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  902.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  903.  
  904.        
  905.  
  906.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  907.         tkErgebnis = Tk()
  908.         tkErgebnis.title('Spieler L gewinnt')
  909.         tkErgebnis.geometry('600x400')
  910.  
  911.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  912.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  913.  
  914.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  915.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  916.  
  917.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  918.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  919.  
  920.  
  921.  
  922.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  923.         tkErgebnis = Tk()
  924.         tkErgebnis.title('Spieler T gewinnt')
  925.         tkErgebnis.geometry('600x400')
  926.  
  927.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  928.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  929.  
  930.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  931.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  932.  
  933.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  934.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  935.  
  936.  
  937.        
  938.  
  939.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  940.         tkErgebnis = Tk()
  941.         tkErgebnis.title('Spieler L gewinnt')
  942.         tkErgebnis.geometry('600x400')
  943.  
  944.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  945.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  946.  
  947.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  948.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  949.  
  950.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  951.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  952.  
  953.        
  954.        
  955.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  956.         tkErgebnis = Tk()
  957.         tkErgebnis.title('Spieler T gewinnt')
  958.         tkErgebnis.geometry('600x400')
  959.  
  960.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  961.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  962.  
  963.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  964.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  965.  
  966.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  967.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  968.  
  969.        
  970.  
  971.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  972.         tkErgebnis = Tk()
  973.         tkErgebnis.title('Spieler L gewinnt')
  974.         tkErgebnis.geometry('600x400')
  975.  
  976.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  977.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  978.  
  979.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  980.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  981.  
  982.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  983.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  984.  
  985.  
  986.  
  987.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  988.         tkErgebnis = Tk()
  989.         tkErgebnis.title('Unentschieden')
  990.         tkErgebnis.geometry('600x400')
  991.  
  992.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  993.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  994.  
  995.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  996.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  997.  
  998.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  999.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1000.  
  1001.  
  1002.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  1003.         buttonClick1.config(state='disabled')
  1004.         buttonClick2.config(state='disabled')
  1005.         buttonClick3.config(state='disabled')
  1006.         buttonClick4.config(state='disabled')
  1007.         buttonClick5.config(state='disabled')
  1008.         buttonClick6.config(state='disabled')
  1009.         buttonClick7.config(state='disabled')
  1010.         buttonClick8.config(state='disabled')
  1011.         buttonClick9.config(state='disabled')
  1012.  
  1013.  
  1014.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  1015.         buttonClick1.config(state='disabled')
  1016.         buttonClick2.config(state='disabled')
  1017.         buttonClick3.config(state='disabled')
  1018.         buttonClick4.config(state='disabled')
  1019.         buttonClick5.config(state='disabled')
  1020.         buttonClick6.config(state='disabled')
  1021.         buttonClick7.config(state='disabled')
  1022.         buttonClick8.config(state='disabled')
  1023.         buttonClick9.config(state='disabled')
  1024.  
  1025.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  1026.             buttonClick1.config(state='disabled')
  1027.             buttonClick2.config(state='disabled')
  1028.             buttonClick3.config(state='disabled')
  1029.             buttonClick4.config(state='disabled')
  1030.             buttonClick5.config(state='disabled')
  1031.             buttonClick6.config(state='disabled')
  1032.             buttonClick7.config(state='disabled')
  1033.             buttonClick8.config(state='disabled')
  1034.             buttonClick9.config(state='disabled')
  1035.  
  1036.  
  1037. def buttonClick4() :
  1038.     global B4
  1039.     if B4 == 1:
  1040.         global Auswahl
  1041.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  1042.             buttonClick4.config(text='T', font=('Arial', 300), fg= 'red')
  1043.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  1044.             buttonClick4.config(text='L', font=('Arial', 300), fg= 'blue')
  1045.         Auswahl = Auswahl + 1
  1046.     else:
  1047.         pass
  1048.  
  1049.     B4 = 0
  1050.  
  1051.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  1052.         tkErgebnis = Tk()
  1053.         tkErgebnis.title('Spieler T gewinnt')
  1054.         tkErgebnis.geometry('600x400')
  1055.  
  1056.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1057.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1058.  
  1059.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1060.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1061.  
  1062.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1063.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1064.        
  1065.        
  1066.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  1067.         tkErgebnis = Tk()
  1068.         tkErgebnis.title('Spieler L gewinnt')
  1069.         tkErgebnis.geometry('600x400')
  1070.  
  1071.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1072.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1073.  
  1074.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1075.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1076.  
  1077.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1078.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1079.  
  1080.        
  1081.  
  1082.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  1083.         tkErgebnis = Tk()
  1084.         tkErgebnis.title('Spieler T gewinnt')
  1085.         tkErgebnis.geometry('600x400')
  1086.  
  1087.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1088.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1089.  
  1090.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1091.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1092.  
  1093.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1094.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1095.  
  1096.        
  1097.  
  1098.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  1099.         tkErgebnis = Tk()
  1100.         tkErgebnis.title('Spieler L gewinnt')
  1101.         tkErgebnis.geometry('600x400')
  1102.  
  1103.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1104.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1105.  
  1106.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1107.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1108.  
  1109.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1110.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1111.  
  1112.        
  1113.        
  1114.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1115.         tkErgebnis = Tk()
  1116.         tkErgebnis.title('Spieler T gewinnt')
  1117.         tkErgebnis.geometry('600x400')
  1118.  
  1119.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1120.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1121.  
  1122.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1123.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1124.  
  1125.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1126.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1127.  
  1128.        
  1129.  
  1130.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1131.         tkErgebnis = Tk()
  1132.         tkErgebnis.title('Spieler L gewinnt')
  1133.         tkErgebnis.geometry('600x400')
  1134.  
  1135.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1136.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1137.  
  1138.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1139.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1140.  
  1141.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1142.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1143.  
  1144.  
  1145.  
  1146.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  1147.         tkErgebnis = Tk()
  1148.         tkErgebnis.title('Spieler T gewinnt')
  1149.         tkErgebnis.geometry('600x400')
  1150.  
  1151.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1152.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1153.  
  1154.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1155.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1156.  
  1157.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1158.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1159.        
  1160.        
  1161.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  1162.         tkErgebnis = Tk()
  1163.         tkErgebnis.title('Spieler L gewinnt')
  1164.         tkErgebnis.geometry('600x400')
  1165.  
  1166.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1167.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1168.  
  1169.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1170.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1171.  
  1172.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1173.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1174.  
  1175.        
  1176.  
  1177.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  1178.         tkErgebnis = Tk()
  1179.         tkErgebnis.title('Spieler T gewinnt')
  1180.         tkErgebnis.geometry('600x400')
  1181.  
  1182.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1183.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1184.  
  1185.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1186.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1187.  
  1188.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1189.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1190.  
  1191.        
  1192.  
  1193.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  1194.         tkErgebnis = Tk()
  1195.         tkErgebnis.title('Spieler L gewinnt')
  1196.         tkErgebnis.geometry('600x400')
  1197.  
  1198.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1199.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1200.  
  1201.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1202.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1203.  
  1204.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1205.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1206.  
  1207.        
  1208.        
  1209.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1210.         tkErgebnis = Tk()
  1211.         tkErgebnis.title('Spieler T gewinnt')
  1212.         tkErgebnis.geometry('600x400')
  1213.  
  1214.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1215.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1216.  
  1217.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1218.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1219.  
  1220.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1221.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1222.  
  1223.        
  1224.  
  1225.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1226.         tkErgebnis = Tk()
  1227.         tkErgebnis.title('Spieler L gewinnt')
  1228.         tkErgebnis.geometry('600x400')
  1229.  
  1230.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1231.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1232.  
  1233.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1234.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1235.  
  1236.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1237.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1238.  
  1239.  
  1240.  
  1241.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1242.         tkErgebnis = Tk()
  1243.         tkErgebnis.title('Spieler T gewinnt')
  1244.         tkErgebnis.geometry('600x400')
  1245.  
  1246.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1247.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1248.  
  1249.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1250.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1251.  
  1252.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1253.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1254.  
  1255.        
  1256.  
  1257.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1258.         tkErgebnis = Tk()
  1259.         tkErgebnis.title('Spieler L gewinnt')
  1260.         tkErgebnis.geometry('600x400')
  1261.  
  1262.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1263.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1264.  
  1265.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1266.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1267.  
  1268.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1269.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1270.  
  1271.        
  1272.        
  1273.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  1274.         tkErgebnis = Tk()
  1275.         tkErgebnis.title('Spieler T gewinnt')
  1276.         tkErgebnis.geometry('600x400')
  1277.  
  1278.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1279.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1280.  
  1281.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1282.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1283.  
  1284.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1285.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1286.  
  1287.        
  1288.  
  1289.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  1290.         tkErgebnis = Tk()
  1291.         tkErgebnis.title('Spieler L gewinnt')
  1292.         tkErgebnis.geometry('600x400')
  1293.  
  1294.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1295.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1296.  
  1297.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1298.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1299.  
  1300.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1301.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1302.  
  1303.        
  1304.  
  1305.  
  1306.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  1307.         tkErgebnis = Tk()
  1308.         tkErgebnis.title('Unentschieden')
  1309.         tkErgebnis.geometry('600x400')
  1310.  
  1311.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  1312.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1313.  
  1314.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1315.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1316.  
  1317.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1318.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1319.  
  1320.  
  1321.  
  1322.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  1323.             buttonClick1.config(state='disabled')
  1324.             buttonClick2.config(state='disabled')
  1325.             buttonClick3.config(state='disabled')
  1326.             buttonClick4.config(state='disabled')
  1327.             buttonClick5.config(state='disabled')
  1328.             buttonClick6.config(state='disabled')
  1329.             buttonClick7.config(state='disabled')
  1330.             buttonClick8.config(state='disabled')
  1331.             buttonClick9.config(state='disabled')
  1332.  
  1333.  
  1334.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  1335.             buttonClick1.config(state='disabled')
  1336.             buttonClick2.config(state='disabled')
  1337.             buttonClick3.config(state='disabled')
  1338.             buttonClick4.config(state='disabled')
  1339.             buttonClick5.config(state='disabled')
  1340.             buttonClick6.config(state='disabled')
  1341.             buttonClick7.config(state='disabled')
  1342.             buttonClick8.config(state='disabled')
  1343.             buttonClick9.config(state='disabled')
  1344.  
  1345.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  1346.             buttonClick1.config(state='disabled')
  1347.             buttonClick2.config(state='disabled')
  1348.             buttonClick3.config(state='disabled')
  1349.             buttonClick4.config(state='disabled')
  1350.             buttonClick5.config(state='disabled')
  1351.             buttonClick6.config(state='disabled')
  1352.             buttonClick7.config(state='disabled')
  1353.             buttonClick8.config(state='disabled')
  1354.             buttonClick9.config(state='disabled')
  1355.  
  1356.  
  1357. def buttonClick5() :
  1358.     global B5
  1359.     if B5 == 1:
  1360.         global Auswahl
  1361.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  1362.             buttonClick5.config(text='T', font=('Arial', 300), fg= 'red')
  1363.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  1364.             buttonClick5.config(text='L', font=('Arial', 300), fg= 'blue')
  1365.         Auswahl = Auswahl + 1
  1366.     else:
  1367.         pass
  1368.  
  1369.     B5 = 0
  1370.  
  1371.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  1372.         tkErgebnis = Tk()
  1373.         tkErgebnis.title('Spieler T gewinnt')
  1374.         tkErgebnis.geometry('600x400')
  1375.  
  1376.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1377.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1378.  
  1379.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1380.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1381.  
  1382.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1383.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1384.        
  1385.        
  1386.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  1387.         tkErgebnis = Tk()
  1388.         tkErgebnis.title('Spieler L gewinnt')
  1389.         tkErgebnis.geometry('600x400')
  1390.  
  1391.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1392.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1393.  
  1394.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1395.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1396.  
  1397.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1398.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1399.  
  1400.        
  1401.  
  1402.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  1403.         tkErgebnis = Tk()
  1404.         tkErgebnis.title('Spieler T gewinnt')
  1405.         tkErgebnis.geometry('600x400')
  1406.  
  1407.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1408.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1409.  
  1410.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1411.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1412.  
  1413.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1414.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1415.  
  1416.        
  1417.  
  1418.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  1419.         tkErgebnis = Tk()
  1420.         tkErgebnis.title('Spieler L gewinnt')
  1421.         tkErgebnis.geometry('600x400')
  1422.  
  1423.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1424.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1425.  
  1426.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1427.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1428.  
  1429.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1430.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1431.  
  1432.        
  1433.        
  1434.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1435.         tkErgebnis = Tk()
  1436.         tkErgebnis.title('Spieler T gewinnt')
  1437.         tkErgebnis.geometry('600x400')
  1438.  
  1439.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1440.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1441.  
  1442.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1443.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1444.  
  1445.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1446.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1447.  
  1448.        
  1449.  
  1450.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1451.         tkErgebnis = Tk()
  1452.         tkErgebnis.title('Spieler L gewinnt')
  1453.         tkErgebnis.geometry('600x400')
  1454.  
  1455.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1456.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1457.  
  1458.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1459.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1460.  
  1461.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1462.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1463.  
  1464.  
  1465.  
  1466.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  1467.         tkErgebnis = Tk()
  1468.         tkErgebnis.title('Spieler T gewinnt')
  1469.         tkErgebnis.geometry('600x400')
  1470.  
  1471.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1472.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1473.  
  1474.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1475.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1476.  
  1477.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1478.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1479.  
  1480.        
  1481.        
  1482.        
  1483.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  1484.         tkErgebnis = Tk()
  1485.         tkErgebnis.title('Spieler L gewinnt')
  1486.         tkErgebnis.geometry('600x400')
  1487.  
  1488.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1489.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1490.  
  1491.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1492.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1493.  
  1494.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1495.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1496.        
  1497.  
  1498.  
  1499.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  1500.         tkErgebnis = Tk()
  1501.         tkErgebnis.title('Spieler T gewinnt')
  1502.         tkErgebnis.geometry('600x400')
  1503.  
  1504.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1505.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1506.  
  1507.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1508.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1509.  
  1510.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1511.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1512.  
  1513.        
  1514.  
  1515.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  1516.         tkErgebnis = Tk()
  1517.         tkErgebnis.title('Spieler L gewinnt')
  1518.         tkErgebnis.geometry('600x400')
  1519.  
  1520.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1521.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1522.  
  1523.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1524.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1525.  
  1526.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1527.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1528.  
  1529.        
  1530.        
  1531.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1532.         tkErgebnis = Tk()
  1533.         tkErgebnis.title('Spieler T gewinnt')
  1534.         tkErgebnis.geometry('600x400')
  1535.  
  1536.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1537.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1538.  
  1539.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1540.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1541.  
  1542.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1543.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1544.  
  1545.        
  1546.  
  1547.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1548.         tkErgebnis = Tk()
  1549.         tkErgebnis.title('Spieler L gewinnt')
  1550.         tkErgebnis.geometry('600x400')
  1551.  
  1552.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1553.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1554.  
  1555.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1556.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1557.  
  1558.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1559.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1560.  
  1561.  
  1562.  
  1563.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1564.         tkErgebnis = Tk()
  1565.         tkErgebnis.title('Spieler T gewinnt')
  1566.         tkErgebnis.geometry('600x400')
  1567.  
  1568.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1569.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1570.  
  1571.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1572.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1573.  
  1574.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1575.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1576.  
  1577.        
  1578.  
  1579.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1580.         tkErgebnis = Tk()
  1581.         tkErgebnis.title('Spieler L gewinnt')
  1582.         tkErgebnis.geometry('600x400')
  1583.  
  1584.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1585.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1586.  
  1587.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1588.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1589.  
  1590.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1591.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1592.  
  1593.        
  1594.        
  1595.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  1596.         tkErgebnis = Tk()
  1597.         tkErgebnis.title('Spieler T gewinnt')
  1598.         tkErgebnis.geometry('600x400')
  1599.  
  1600.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1601.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1602.  
  1603.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1604.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1605.  
  1606.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1607.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1608.  
  1609.        
  1610.  
  1611.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  1612.         tkErgebnis = Tk()
  1613.         tkErgebnis.title('Spieler L gewinnt')
  1614.         tkErgebnis.geometry('600x400')
  1615.  
  1616.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1617.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1618.  
  1619.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1620.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1621.  
  1622.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1623.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1624.        
  1625.  
  1626.  
  1627.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  1628.         tkErgebnis = Tk()
  1629.         tkErgebnis.title('Unentschieden')
  1630.         tkErgebnis.geometry('600x400')
  1631.  
  1632.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  1633.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1634.  
  1635.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1636.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1637.  
  1638.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1639.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1640.  
  1641.  
  1642.  
  1643.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  1644.             buttonClick1.config(state='disabled')
  1645.             buttonClick2.config(state='disabled')
  1646.             buttonClick3.config(state='disabled')
  1647.             buttonClick4.config(state='disabled')
  1648.             buttonClick5.config(state='disabled')
  1649.             buttonClick6.config(state='disabled')
  1650.             buttonClick7.config(state='disabled')
  1651.             buttonClick8.config(state='disabled')
  1652.             buttonClick9.config(state='disabled')
  1653.  
  1654.  
  1655.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  1656.             buttonClick1.config(state='disabled')
  1657.             buttonClick2.config(state='disabled')
  1658.             buttonClick3.config(state='disabled')
  1659.             buttonClick4.config(state='disabled')
  1660.             buttonClick5.config(state='disabled')
  1661.             buttonClick6.config(state='disabled')
  1662.             buttonClick7.config(state='disabled')
  1663.             buttonClick8.config(state='disabled')
  1664.             buttonClick9.config(state='disabled')
  1665.  
  1666.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  1667.             buttonClick1.config(state='disabled')
  1668.             buttonClick2.config(state='disabled')
  1669.             buttonClick3.config(state='disabled')
  1670.             buttonClick4.config(state='disabled')
  1671.             buttonClick5.config(state='disabled')
  1672.             buttonClick6.config(state='disabled')
  1673.             buttonClick7.config(state='disabled')
  1674.             buttonClick8.config(state='disabled')
  1675.             buttonClick9.config(state='disabled')
  1676.  
  1677.  
  1678. def buttonClick6() :
  1679.     global B6
  1680.     if B6 == 1:
  1681.         global Auswahl
  1682.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  1683.             buttonClick6.config(text='T', font=('Arial', 300), fg= 'red')
  1684.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  1685.             buttonClick6.config(text='L', font=('Arial', 300), fg= 'blue')
  1686.         Auswahl = Auswahl + 1
  1687.     else:
  1688.         pass
  1689.  
  1690.     B6 = 0
  1691.  
  1692.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  1693.         tkErgebnis = Tk()
  1694.         tkErgebnis.title('Spieler T gewinnt')
  1695.         tkErgebnis.geometry('600x400')
  1696.  
  1697.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1698.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1699.  
  1700.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1701.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1702.  
  1703.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1704.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1705.  
  1706.        
  1707.        
  1708.        
  1709.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  1710.         tkErgebnis = Tk()
  1711.         tkErgebnis.title('Spieler L gewinnt')
  1712.         tkErgebnis.geometry('600x400')
  1713.  
  1714.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1715.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1716.  
  1717.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1718.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1719.  
  1720.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1721.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1722.  
  1723.        
  1724.  
  1725.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  1726.         tkErgebnis = Tk()
  1727.         tkErgebnis.title('Spieler T gewinnt')
  1728.         tkErgebnis.geometry('600x400')
  1729.  
  1730.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1731.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1732.  
  1733.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1734.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1735.  
  1736.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1737.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1738.  
  1739.        
  1740.  
  1741.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  1742.         tkErgebnis = Tk()
  1743.         tkErgebnis.title('Spieler L gewinnt')
  1744.         tkErgebnis.geometry('600x400')
  1745.  
  1746.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1747.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1748.  
  1749.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1750.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1751.  
  1752.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1753.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1754.  
  1755.        
  1756.        
  1757.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1758.         tkErgebnis = Tk()
  1759.         tkErgebnis.title('Spieler T gewinnt')
  1760.         tkErgebnis.geometry('600x400')
  1761.  
  1762.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1763.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1764.  
  1765.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1766.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1767.  
  1768.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1769.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1770.  
  1771.        
  1772.  
  1773.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1774.         tkErgebnis = Tk()
  1775.         tkErgebnis.title('Spieler L gewinnt')
  1776.         tkErgebnis.geometry('600x400')
  1777.  
  1778.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1779.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1780.  
  1781.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1782.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1783.  
  1784.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1785.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1786.        
  1787.  
  1788.  
  1789.  
  1790.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  1791.         tkErgebnis = Tk()
  1792.         tkErgebnis.title('Spieler T gewinnt')
  1793.         tkErgebnis.geometry('600x400')
  1794.  
  1795.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1796.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1797.  
  1798.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1799.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1800.  
  1801.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1802.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1803.  
  1804.        
  1805.        
  1806.        
  1807.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  1808.         tkErgebnis = Tk()
  1809.         tkErgebnis.title('Spieler L gewinnt')
  1810.         tkErgebnis.geometry('600x400')
  1811.  
  1812.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1813.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1814.  
  1815.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1816.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1817.  
  1818.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1819.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1820.  
  1821.        
  1822.  
  1823.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  1824.         tkErgebnis = Tk()
  1825.         tkErgebnis.title('Spieler T gewinnt')
  1826.         tkErgebnis.geometry('600x400')
  1827.  
  1828.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1829.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1830.  
  1831.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1832.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1833.  
  1834.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1835.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1836.  
  1837.        
  1838.  
  1839.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  1840.         tkErgebnis = Tk()
  1841.         tkErgebnis.title('Spieler L gewinnt')
  1842.         tkErgebnis.geometry('600x400')
  1843.  
  1844.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1845.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1846.  
  1847.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1848.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1849.  
  1850.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1851.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1852.  
  1853.        
  1854.        
  1855.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1856.         tkErgebnis = Tk()
  1857.         tkErgebnis.title('Spieler T gewinnt')
  1858.         tkErgebnis.geometry('600x400')
  1859.  
  1860.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1861.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1862.  
  1863.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1864.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1865.  
  1866.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1867.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1868.  
  1869.        
  1870.  
  1871.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1872.         tkErgebnis = Tk()
  1873.         tkErgebnis.title('Spieler L gewinnt')
  1874.         tkErgebnis.geometry('600x400')
  1875.  
  1876.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1877.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1878.  
  1879.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1880.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1881.  
  1882.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1883.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1884.  
  1885.        
  1886.  
  1887.  
  1888.  
  1889.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  1890.         tkErgebnis = Tk()
  1891.         tkErgebnis.title('Spieler T gewinnt')
  1892.         tkErgebnis.geometry('600x400')
  1893.  
  1894.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1895.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1896.  
  1897.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1898.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1899.  
  1900.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1901.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1902.  
  1903.        
  1904.  
  1905.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  1906.         tkErgebnis = Tk()
  1907.         tkErgebnis.title('Spieler L gewinnt')
  1908.         tkErgebnis.geometry('600x400')
  1909.  
  1910.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1911.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1912.  
  1913.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1914.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1915.  
  1916.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1917.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1918.  
  1919.        
  1920.        
  1921.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  1922.         tkErgebnis = Tk()
  1923.         tkErgebnis.title('Spieler T gewinnt')
  1924.         tkErgebnis.geometry('600x400')
  1925.  
  1926.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  1927.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1928.  
  1929.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1930.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1931.  
  1932.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1933.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1934.  
  1935.  
  1936.        
  1937.  
  1938.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  1939.         tkErgebnis = Tk()
  1940.         tkErgebnis.title('Spieler L gewinnt')
  1941.         tkErgebnis.geometry('600x400')
  1942.  
  1943.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  1944.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1945.  
  1946.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1947.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1948.  
  1949.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1950.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1951.  
  1952.        
  1953.  
  1954.  
  1955.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  1956.         tkErgebnis = Tk()
  1957.         tkErgebnis.title('Unentschieden')
  1958.         tkErgebnis.geometry('600x400')
  1959.  
  1960.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  1961.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  1962.  
  1963.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  1964.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  1965.  
  1966.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  1967.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  1968.  
  1969.  
  1970.  
  1971.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  1972.             buttonClick1.config(state='disabled')
  1973.             buttonClick2.config(state='disabled')
  1974.             buttonClick3.config(state='disabled')
  1975.             buttonClick4.config(state='disabled')
  1976.             buttonClick5.config(state='disabled')
  1977.             buttonClick6.config(state='disabled')
  1978.             buttonClick7.config(state='disabled')
  1979.             buttonClick8.config(state='disabled')
  1980.             buttonClick9.config(state='disabled')
  1981.  
  1982.  
  1983.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  1984.             buttonClick1.config(state='disabled')
  1985.             buttonClick2.config(state='disabled')
  1986.             buttonClick3.config(state='disabled')
  1987.             buttonClick4.config(state='disabled')
  1988.             buttonClick5.config(state='disabled')
  1989.             buttonClick6.config(state='disabled')
  1990.             buttonClick7.config(state='disabled')
  1991.             buttonClick8.config(state='disabled')
  1992.             buttonClick9.config(state='disabled')
  1993.  
  1994.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  1995.             buttonClick1.config(state='disabled')
  1996.             buttonClick2.config(state='disabled')
  1997.             buttonClick3.config(state='disabled')
  1998.             buttonClick4.config(state='disabled')
  1999.             buttonClick5.config(state='disabled')
  2000.             buttonClick6.config(state='disabled')
  2001.             buttonClick7.config(state='disabled')
  2002.             buttonClick8.config(state='disabled')
  2003.             buttonClick9.config(state='disabled')
  2004.  
  2005.  
  2006. def buttonClick7() :
  2007.     global B7
  2008.     if B7 == 1:
  2009.         global Auswahl
  2010.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  2011.             buttonClick7.config(text='T', font=('Arial', 300), fg= 'red')
  2012.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  2013.             buttonClick7.config(text='L', font=('Arial', 300), fg= 'blue')
  2014.         Auswahl = Auswahl + 1
  2015.     else:
  2016.         pass
  2017.  
  2018.     B7 = 0
  2019.  
  2020.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  2021.         tkErgebnis = Tk()
  2022.         tkErgebnis.title('Spieler T gewinnt')
  2023.         tkErgebnis.geometry('600x400')
  2024.  
  2025.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2026.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2027.  
  2028.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2029.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2030.  
  2031.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2032.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2033.  
  2034.  
  2035.        
  2036.        
  2037.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  2038.         tkErgebnis = Tk()
  2039.         tkErgebnis.title('Spieler L gewinnt')
  2040.         tkErgebnis.geometry('600x400')
  2041.  
  2042.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2043.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2044.  
  2045.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2046.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2047.  
  2048.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2049.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2050.  
  2051.        
  2052.  
  2053.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  2054.         tkErgebnis = Tk()
  2055.         tkErgebnis.title('Spieler T gewinnt')
  2056.         tkErgebnis.geometry('600x400')
  2057.  
  2058.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2059.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2060.  
  2061.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2062.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2063.  
  2064.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2065.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2066.  
  2067.        
  2068.  
  2069.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  2070.         tkErgebnis = Tk()
  2071.         tkErgebnis.title('Spieler L gewinnt')
  2072.         tkErgebnis.geometry('600x400')
  2073.  
  2074.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2075.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2076.  
  2077.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2078.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2079.  
  2080.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2081.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2082.  
  2083.        
  2084.        
  2085.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2086.         tkErgebnis = Tk()
  2087.         tkErgebnis.title('Spieler T gewinnt')
  2088.         tkErgebnis.geometry('600x400')
  2089.  
  2090.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2091.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2092.  
  2093.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2094.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2095.  
  2096.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2097.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2098.  
  2099.        
  2100.  
  2101.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2102.         tkErgebnis = Tk()
  2103.         tkErgebnis.title('Spieler L gewinnt')
  2104.         tkErgebnis.geometry('600x400')
  2105.  
  2106.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2107.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2108.  
  2109.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2110.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2111.  
  2112.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2113.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2114.  
  2115.  
  2116.  
  2117.  
  2118.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  2119.         tkErgebnis = Tk()
  2120.         tkErgebnis.title('Spieler T gewinnt')
  2121.         tkErgebnis.geometry('600x400')
  2122.  
  2123.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2124.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2125.  
  2126.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2127.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2128.  
  2129.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2130.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2131.  
  2132.        
  2133.        
  2134.        
  2135.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  2136.         tkErgebnis = Tk()
  2137.         tkErgebnis.title('Spieler L gewinnt')
  2138.         tkErgebnis.geometry('600x400')
  2139.  
  2140.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2141.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2142.  
  2143.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2144.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2145.  
  2146.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2147.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2148.  
  2149.        
  2150.  
  2151.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  2152.         tkErgebnis = Tk()
  2153.         tkErgebnis.title('Spieler T gewinnt')
  2154.         tkErgebnis.geometry('600x400')
  2155.  
  2156.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2157.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2158.  
  2159.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2160.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2161.  
  2162.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2163.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2164.  
  2165.        
  2166.  
  2167.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  2168.         tkErgebnis = Tk()
  2169.         tkErgebnis.title('Spieler L gewinnt')
  2170.         tkErgebnis.geometry('600x400')
  2171.  
  2172.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2173.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2174.  
  2175.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2176.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2177.  
  2178.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2179.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2180.  
  2181.  
  2182.  
  2183.        
  2184.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2185.         tkErgebnis = Tk()
  2186.         tkErgebnis.title('Spieler T gewinnt')
  2187.         tkErgebnis.geometry('600x400')
  2188.  
  2189.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2190.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2191.  
  2192.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2193.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2194.  
  2195.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2196.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2197.  
  2198.        
  2199.  
  2200.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2201.         tkErgebnis = Tk()
  2202.         tkErgebnis.title('Spieler L gewinnt')
  2203.         tkErgebnis.geometry('600x400')
  2204.  
  2205.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2206.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2207.  
  2208.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2209.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2210.  
  2211.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2212.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2213.  
  2214.  
  2215.  
  2216.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2217.         tkErgebnis = Tk()
  2218.         tkErgebnis.title('Spieler T gewinnt')
  2219.         tkErgebnis.geometry('600x400')
  2220.  
  2221.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2222.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2223.  
  2224.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2225.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2226.  
  2227.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2228.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2229.  
  2230.        
  2231.  
  2232.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2233.         tkErgebnis = Tk()
  2234.         tkErgebnis.title('Spieler L gewinnt')
  2235.         tkErgebnis.geometry('600x400')
  2236.  
  2237.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2238.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2239.  
  2240.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2241.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2242.  
  2243.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2244.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2245.  
  2246.        
  2247.        
  2248.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  2249.         tkErgebnis = Tk()
  2250.         tkErgebnis.title('Spieler T gewinnt')
  2251.         tkErgebnis.geometry('600x400')
  2252.  
  2253.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2254.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2255.  
  2256.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2257.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2258.  
  2259.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2260.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2261.  
  2262.        
  2263.  
  2264.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  2265.         tkErgebnis = Tk()
  2266.         tkErgebnis.title('Spieler L gewinnt')
  2267.         tkErgebnis.geometry('600x400')
  2268.  
  2269.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2270.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2271.  
  2272.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2273.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2274.  
  2275.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2276.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2277.  
  2278.        
  2279.  
  2280.  
  2281.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  2282.         tkErgebnis = Tk()
  2283.         tkErgebnis.title('Unentschieden')
  2284.         tkErgebnis.geometry('600x400')
  2285.  
  2286.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  2287.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2288.  
  2289.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2290.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2291.  
  2292.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2293.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2294.        
  2295.  
  2296.  
  2297.  
  2298.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  2299.             buttonClick1.config(state='disabled')
  2300.             buttonClick2.config(state='disabled')
  2301.             buttonClick3.config(state='disabled')
  2302.             buttonClick4.config(state='disabled')
  2303.             buttonClick5.config(state='disabled')
  2304.             buttonClick6.config(state='disabled')
  2305.             buttonClick7.config(state='disabled')
  2306.             buttonClick8.config(state='disabled')
  2307.             buttonClick9.config(state='disabled')
  2308.  
  2309.  
  2310.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  2311.             buttonClick1.config(state='disabled')
  2312.             buttonClick2.config(state='disabled')
  2313.             buttonClick3.config(state='disabled')
  2314.             buttonClick4.config(state='disabled')
  2315.             buttonClick5.config(state='disabled')
  2316.             buttonClick6.config(state='disabled')
  2317.             buttonClick7.config(state='disabled')
  2318.             buttonClick8.config(state='disabled')
  2319.             buttonClick9.config(state='disabled')
  2320.  
  2321.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  2322.             buttonClick1.config(state='disabled')
  2323.             buttonClick2.config(state='disabled')
  2324.             buttonClick3.config(state='disabled')
  2325.             buttonClick4.config(state='disabled')
  2326.             buttonClick5.config(state='disabled')
  2327.             buttonClick6.config(state='disabled')
  2328.             buttonClick7.config(state='disabled')
  2329.             buttonClick8.config(state='disabled')
  2330.             buttonClick9.config(state='disabled')
  2331.  
  2332.  
  2333. def buttonClick8() :
  2334.     global B8
  2335.     if B8 == 1:
  2336.         global Auswahl
  2337.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  2338.             buttonClick8.config(text='T', font=('Arial', 300), fg= 'red')
  2339.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  2340.             buttonClick8.config(text='L', font=('Arial', 300), fg= 'blue')
  2341.         Auswahl = Auswahl + 1
  2342.     else:
  2343.         pass
  2344.  
  2345.     B8 = 0
  2346.  
  2347.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  2348.         tkErgebnis = Tk()
  2349.         tkErgebnis.title('Spieler T gewinnt')
  2350.         tkErgebnis.geometry('600x400')
  2351.  
  2352.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2353.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2354.  
  2355.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2356.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2357.  
  2358.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2359.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2360.  
  2361.        
  2362.        
  2363.        
  2364.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  2365.         tkErgebnis = Tk()
  2366.         tkErgebnis.title('Spieler L gewinnt')
  2367.         tkErgebnis.geometry('600x400')
  2368.  
  2369.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2370.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2371.  
  2372.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2373.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2374.  
  2375.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2376.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2377.  
  2378.        
  2379.  
  2380.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  2381.         tkErgebnis = Tk()
  2382.         tkErgebnis.title('Spieler T gewinnt')
  2383.         tkErgebnis.geometry('600x400')
  2384.  
  2385.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2386.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2387.  
  2388.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2389.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2390.  
  2391.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2392.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2393.  
  2394.        
  2395.  
  2396.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  2397.         tkErgebnis = Tk()
  2398.         tkErgebnis.title('Spieler L gewinnt')
  2399.         tkErgebnis.geometry('600x400')
  2400.  
  2401.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2402.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2403.  
  2404.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2405.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2406.  
  2407.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2408.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2409.  
  2410.        
  2411.        
  2412.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2413.         tkErgebnis = Tk()
  2414.         tkErgebnis.title('Spieler T gewinnt')
  2415.         tkErgebnis.geometry('600x400')
  2416.  
  2417.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2418.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2419.  
  2420.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2421.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2422.  
  2423.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2424.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2425.  
  2426.        
  2427.  
  2428.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2429.         tkErgebnis = Tk()
  2430.         tkErgebnis.title('Spieler L gewinnt')
  2431.         tkErgebnis.geometry('600x400')
  2432.  
  2433.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2434.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2435.  
  2436.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2437.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2438.  
  2439.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2440.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2441.  
  2442.  
  2443.  
  2444.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  2445.         tkErgebnis = Tk()
  2446.         tkErgebnis.title('Spieler T gewinnt')
  2447.         tkErgebnis.geometry('600x400')
  2448.  
  2449.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2450.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2451.  
  2452.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2453.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2454.  
  2455.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2456.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2457.  
  2458.        
  2459.        
  2460.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  2461.         tkErgebnis = Tk()
  2462.         tkErgebnis.title('Spieler L gewinnt')
  2463.         tkErgebnis.geometry('600x400')
  2464.  
  2465.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2466.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2467.  
  2468.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2469.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2470.  
  2471.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2472.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2473.  
  2474.        
  2475.  
  2476.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  2477.         tkErgebnis = Tk()
  2478.         tkErgebnis.title('Spieler T gewinnt')
  2479.         tkErgebnis.geometry('600x400')
  2480.  
  2481.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2482.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2483.  
  2484.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2485.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2486.  
  2487.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2488.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2489.  
  2490.        
  2491.  
  2492.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  2493.         tkErgebnis = Tk()
  2494.         tkErgebnis.title('Spieler L gewinnt')
  2495.         tkErgebnis.geometry('600x400')
  2496.  
  2497.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2498.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2499.  
  2500.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2501.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2502.  
  2503.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2504.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2505.  
  2506.        
  2507.        
  2508.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2509.         tkErgebnis = Tk()
  2510.         tkErgebnis.title('Spieler T gewinnt')
  2511.         tkErgebnis.geometry('600x400')
  2512.  
  2513.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2514.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2515.  
  2516.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2517.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2518.  
  2519.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2520.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2521.  
  2522.        
  2523.  
  2524.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2525.         tkErgebnis = Tk()
  2526.         tkErgebnis.title('Spieler L gewinnt')
  2527.         tkErgebnis.geometry('600x400')
  2528.  
  2529.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2530.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2531.  
  2532.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2533.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2534.  
  2535.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2536.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2537.  
  2538.  
  2539.  
  2540.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2541.         tkErgebnis = Tk()
  2542.         tkErgebnis.title('Spieler T gewinnt')
  2543.         tkErgebnis.geometry('600x400')
  2544.  
  2545.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2546.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2547.  
  2548.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2549.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2550.  
  2551.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2552.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2553.  
  2554.        
  2555.  
  2556.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2557.         tkErgebnis = Tk()
  2558.         tkErgebnis.title('Spieler L gewinnt')
  2559.         tkErgebnis.geometry('600x400')
  2560.  
  2561.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2562.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2563.  
  2564.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2565.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2566.  
  2567.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2568.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2569.  
  2570.        
  2571.        
  2572.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  2573.         tkErgebnis = Tk()
  2574.         tkErgebnis.title('Spieler T gewinnt')
  2575.         tkErgebnis.geometry('600x400')
  2576.  
  2577.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2578.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2579.  
  2580.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2581.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2582.  
  2583.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2584.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2585.  
  2586.        
  2587.  
  2588.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  2589.         tkErgebnis = Tk()
  2590.         tkErgebnis.title('Spieler L gewinnt')
  2591.         tkErgebnis.geometry('600x400')
  2592.  
  2593.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2594.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2595.  
  2596.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2597.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2598.  
  2599.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2600.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2601.        
  2602.  
  2603.  
  2604.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  2605.         tkErgebnis = Tk()
  2606.         tkErgebnis.title('Unentschieden')
  2607.         tkErgebnis.geometry('600x400')
  2608.  
  2609.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  2610.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2611.  
  2612.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2613.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2614.  
  2615.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2616.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2617.  
  2618.  
  2619.  
  2620.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  2621.             buttonClick1.config(state='disabled')
  2622.             buttonClick2.config(state='disabled')
  2623.             buttonClick3.config(state='disabled')
  2624.             buttonClick4.config(state='disabled')
  2625.             buttonClick5.config(state='disabled')
  2626.             buttonClick6.config(state='disabled')
  2627.             buttonClick7.config(state='disabled')
  2628.             buttonClick8.config(state='disabled')
  2629.             buttonClick9.config(state='disabled')
  2630.  
  2631.  
  2632.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  2633.             buttonClick1.config(state='disabled')
  2634.             buttonClick2.config(state='disabled')
  2635.             buttonClick3.config(state='disabled')
  2636.             buttonClick4.config(state='disabled')
  2637.             buttonClick5.config(state='disabled')
  2638.             buttonClick6.config(state='disabled')
  2639.             buttonClick7.config(state='disabled')
  2640.             buttonClick8.config(state='disabled')
  2641.             buttonClick9.config(state='disabled')
  2642.  
  2643.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  2644.             buttonClick1.config(state='disabled')
  2645.             buttonClick2.config(state='disabled')
  2646.             buttonClick3.config(state='disabled')
  2647.             buttonClick4.config(state='disabled')
  2648.             buttonClick5.config(state='disabled')
  2649.             buttonClick6.config(state='disabled')
  2650.             buttonClick7.config(state='disabled')
  2651.             buttonClick8.config(state='disabled')
  2652.             buttonClick9.config(state='disabled')
  2653.  
  2654.  
  2655. def buttonClick9() :
  2656.     global B9
  2657.     if B9 == 1:
  2658.         global Auswahl
  2659.         if Auswahl == 1 or Auswahl == 3 or Auswahl == 5 or Auswahl == 7 or Auswahl == 9:
  2660.             buttonClick9.config(text='T', font=('Arial', 300), fg= 'red')
  2661.         elif Auswahl == 2 or Auswahl == 4 or Auswahl == 6 or Auswahl == 8:
  2662.             buttonClick9.config(text='L', font=('Arial', 300), fg= 'blue')
  2663.         Auswahl = Auswahl + 1
  2664.     else:
  2665.         pass
  2666.  
  2667.     B9 = 0
  2668.  
  2669.     if buttonClick1.cget('text') == 'T' and buttonClick2.cget('text') == 'T' and buttonClick3.cget('text') == 'T':
  2670.         tkErgebnis = Tk()
  2671.         tkErgebnis.title('Spieler T gewinnt')
  2672.         tkErgebnis.geometry('600x400')
  2673.  
  2674.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2675.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2676.  
  2677.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2678.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2679.  
  2680.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2681.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2682.  
  2683.        
  2684.        
  2685.        
  2686.     elif buttonClick1.cget('text') == 'L' and buttonClick2.cget('text') == 'L' and buttonClick3.cget('text') == 'L':
  2687.         tkErgebnis = Tk()
  2688.         tkErgebnis.title('Spieler L gewinnt')
  2689.         tkErgebnis.geometry('600x400')
  2690.  
  2691.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2692.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2693.  
  2694.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2695.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2696.  
  2697.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2698.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2699.  
  2700.        
  2701.  
  2702.     elif buttonClick4.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick6.cget('text') == 'T':
  2703.         tkErgebnis = Tk()
  2704.         tkErgebnis.title('Spieler T gewinnt')
  2705.         tkErgebnis.geometry('600x400')
  2706.  
  2707.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2708.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2709.  
  2710.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2711.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2712.  
  2713.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2714.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2715.  
  2716.        
  2717.  
  2718.     elif buttonClick4.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick6.cget('text') == 'L':
  2719.         tkErgebnis = Tk()
  2720.         tkErgebnis.title('Spieler L gewinnt')
  2721.         tkErgebnis.geometry('600x400')
  2722.  
  2723.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2724.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2725.  
  2726.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2727.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2728.  
  2729.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2730.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2731.  
  2732.        
  2733.        
  2734.     elif buttonClick7.cget('text') == 'T' and buttonClick8.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2735.         tkErgebnis = Tk()
  2736.         tkErgebnis.title('Spieler T gewinnt')
  2737.         tkErgebnis.geometry('600x400')
  2738.  
  2739.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2740.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2741.  
  2742.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2743.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2744.  
  2745.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2746.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2747.  
  2748.        
  2749.  
  2750.     elif buttonClick7.cget('text') == 'L' and buttonClick8.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2751.         tkErgebnis = Tk()
  2752.         tkErgebnis.title('Spieler L gewinnt')
  2753.         tkErgebnis.geometry('600x400')
  2754.  
  2755.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2756.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2757.  
  2758.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2759.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2760.  
  2761.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2762.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2763.        
  2764.  
  2765.  
  2766.  
  2767.     elif buttonClick1.cget('text') == 'T' and buttonClick4.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  2768.         tkErgebnis = Tk()
  2769.         tkErgebnis.title('Spieler T gewinnt')
  2770.         tkErgebnis.geometry('600x400')
  2771.  
  2772.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2773.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2774.  
  2775.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2776.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2777.  
  2778.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2779.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2780.  
  2781.        
  2782.        
  2783.        
  2784.     elif buttonClick1.cget('text') == 'L' and buttonClick4.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  2785.         tkErgebnis = Tk()
  2786.         tkErgebnis.title('Spieler L gewinnt')
  2787.         tkErgebnis.geometry('600x400')
  2788.  
  2789.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2790.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2791.  
  2792.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2793.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2794.  
  2795.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2796.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2797.  
  2798.        
  2799.  
  2800.     elif buttonClick2.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick8.cget('text') == 'T':
  2801.         tkErgebnis = Tk()
  2802.         tkErgebnis.title('Spieler T gewinnt')
  2803.         tkErgebnis.geometry('600x400')
  2804.  
  2805.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2806.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2807.  
  2808.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2809.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2810.  
  2811.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2812.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2813.  
  2814.        
  2815.  
  2816.     elif buttonClick2.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick8.cget('text') == 'L':
  2817.         tkErgebnis = Tk()
  2818.         tkErgebnis.title('Spieler L gewinnt')
  2819.         tkErgebnis.geometry('600x400')
  2820.  
  2821.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2822.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2823.  
  2824.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2825.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2826.  
  2827.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2828.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2829.  
  2830.        
  2831.        
  2832.     elif buttonClick3.cget('text') == 'T' and buttonClick6.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2833.         tkErgebnis = Tk()
  2834.         tkErgebnis.title('Spieler T gewinnt')
  2835.         tkErgebnis.geometry('600x400')
  2836.  
  2837.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2838.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2839.  
  2840.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2841.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2842.  
  2843.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2844.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2845.  
  2846.        
  2847.  
  2848.     elif buttonClick3.cget('text') == 'L' and buttonClick6.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2849.         tkErgebnis = Tk()
  2850.         tkErgebnis.title('Spieler L gewinnt')
  2851.         tkErgebnis.geometry('600x400')
  2852.  
  2853.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2854.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2855.  
  2856.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2857.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2858.  
  2859.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2860.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2861.  
  2862.        
  2863.  
  2864.  
  2865.  
  2866.     elif buttonClick1.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick9.cget('text') == 'T':
  2867.         tkErgebnis = Tk()
  2868.         tkErgebnis.title('Spieler T gewinnt')
  2869.         tkErgebnis.geometry('600x400')
  2870.  
  2871.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2872.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2873.  
  2874.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2875.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2876.  
  2877.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2878.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2879.  
  2880.        
  2881.  
  2882.     elif buttonClick1.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick9.cget('text') == 'L':
  2883.         tkErgebnis = Tk()
  2884.         tkErgebnis.title('Spieler L gewinnt')
  2885.         tkErgebnis.geometry('600x400')
  2886.  
  2887.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2888.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2889.  
  2890.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2891.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2892.  
  2893.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2894.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2895.  
  2896.        
  2897.        
  2898.     elif buttonClick3.cget('text') == 'T' and buttonClick5.cget('text') == 'T' and buttonClick7.cget('text') == 'T':
  2899.         tkErgebnis = Tk()
  2900.         tkErgebnis.title('Spieler T gewinnt')
  2901.         tkErgebnis.geometry('600x400')
  2902.  
  2903.         labelErgebnis = Label(master=tkErgebnis, text='Spieler T gewinnt', font=('Arial', 50), fg='red')
  2904.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2905.  
  2906.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2907.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2908.  
  2909.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2910.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2911.  
  2912.        
  2913.  
  2914.     elif buttonClick3.cget('text') == 'L' and buttonClick5.cget('text') == 'L' and buttonClick7.cget('text') == 'L':
  2915.         tkErgebnis = Tk()
  2916.         tkErgebnis.title('Spieler L gewinnt')
  2917.         tkErgebnis.geometry('600x400')
  2918.  
  2919.         labelErgebnis = Label(master=tkErgebnis, text='Spieler L gewinnt', font=('Arial', 50), fg='blue')
  2920.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2921.  
  2922.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2923.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2924.  
  2925.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2926.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2927.  
  2928.        
  2929.  
  2930.  
  2931.     elif buttonClick1.cget('text') != '' and buttonClick2.cget('text') != '' and buttonClick3.cget('text') != '' and buttonClick4.cget('text') != '' and buttonClick5.cget('text') != '' and buttonClick6.cget('text') != '' and buttonClick7.cget('text') != '' and buttonClick8.cget('text') != '' and buttonClick9.cget('text') != '':
  2932.         tkErgebnis = Tk()
  2933.         tkErgebnis.title('Unentschieden')
  2934.         tkErgebnis.geometry('600x400')
  2935.  
  2936.         labelErgebnis = Label(master=tkErgebnis, text='Unentschieden', font=('Arial', 50), fg='black')
  2937.         labelErgebnis.place(x=0, y=0, width='600', height='200')
  2938.  
  2939.         buttonNochmal = Button(master=tkErgebnis, text='NOCHMAL', font=('Arial', 20), fg='black', command=buttonNochmalClick)
  2940.         buttonNochmal.place(x=50, y=210, width='200', height='100')
  2941.  
  2942.         buttonBeenden = Button(master=tkErgebnis, text='BEENDEN', font=('Arial', 20), fg='black', command=buttonBeendenClick)
  2943.         buttonBeenden.place(x=300, y=210, width='200', height='100')
  2944.  
  2945.  
  2946.  
  2947.  
  2948.     if labelErgebnis.cget('text') == ('Spieler T gewinnt'):
  2949.             buttonClick1.config(state='disabled')
  2950.             buttonClick2.config(state='disabled')
  2951.             buttonClick3.config(state='disabled')
  2952.             buttonClick4.config(state='disabled')
  2953.             buttonClick5.config(state='disabled')
  2954.             buttonClick6.config(state='disabled')
  2955.            
  2956.             buttonClick7.config(state='disabled')
  2957.             buttonClick8.config(state='disabled')
  2958.             buttonClick9.config(state='disabled')
  2959.  
  2960.  
  2961.     elif labelErgebnis.cget('text') == ('Spieler L gewinnt'):
  2962.             buttonClick1.config(state='disabled')
  2963.             buttonClick2.config(state='disabled')
  2964.             buttonClick3.config(state='disabled')
  2965.             buttonClick4.config(state='disabled')
  2966.             buttonClick5.config(state='disabled')
  2967.             buttonClick6.config(state='disabled')
  2968.             buttonClick7.config(state='disabled')
  2969.             buttonClick8.config(state='disabled')
  2970.             buttonClick9.config(state='disabled')
  2971.  
  2972.  
  2973.     elif labelErgebnis.cget('text') == ('Unentschieden'):
  2974.             buttonClick1.config(state='disabled')
  2975.             buttonClick2.config(state='disabled')
  2976.             buttonClick3.config(state='disabled')
  2977.             buttonClick4.config(state='disabled')
  2978.             buttonClick5.config(state='disabled')
  2979.             buttonClick6.config(state='disabled')
  2980.             buttonClick7.config(state='disabled')
  2981.             buttonClick8.config(state='disabled')
  2982.             buttonClick9.config(state='disabled')
  2983.  
  2984.  
  2985.  
  2986.  
  2987.  
  2988. # Leinwand
  2989. canvas = Canvas(master=tkFenster, background="black")
  2990. canvas.place(x=0, y=0, width=949, height=949)
  2991.  
  2992. #Button
  2993. buttonClick1 = Button(master=tkFenster, text='', bg='white', command=buttonClick1)
  2994. buttonClick1.place(x=10, y=10, width=300, height=300)
  2995.  
  2996. buttonClick2 = Button(master=tkFenster, text='', bg='white', command=buttonClick2)
  2997. buttonClick2.place(x=320, y=10, width=300, height=300)
  2998.  
  2999. buttonClick3 = Button(master=tkFenster, text='', bg='white', command=buttonClick3)
  3000. buttonClick3.place(x=630, y=10, width=300, height=300)
  3001.  
  3002. buttonClick4 = Button(master=tkFenster, text='', bg='white', command=buttonClick4)
  3003. buttonClick4.place(x=10, y=320, width=300, height=300)
  3004.  
  3005. buttonClick5 = Button(master=tkFenster, text='', bg='white', command=buttonClick5)
  3006. buttonClick5.place(x=320, y=320, width=300, height=300)
  3007.  
  3008. buttonClick6 = Button(master=tkFenster, text='', bg='white', command=buttonClick6)
  3009. buttonClick6.place(x=630, y=320, width=300, height=300)
  3010.  
  3011. buttonClick7 = Button(master=tkFenster, text='', bg='white', command=buttonClick7)
  3012. buttonClick7.place(x=10, y=630, width=300, height=300)
  3013.  
  3014. buttonClick8 = Button(master=tkFenster, text='', bg='white', command=buttonClick8)
  3015. buttonClick8.place(x=320, y=630, width=300, height=300)
  3016.  
  3017. buttonClick9 = Button(master=tkFenster, text='', bg='white', command=buttonClick9)
  3018. buttonClick9.place(x=630, y=630, width=300, height=300)
  3019.  
  3020.                  
  3021.  
  3022.  
  3023. tkFenster.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement