Startseite

Hi, ich bin Maxine

Ich interessiere mich für IT, besonders für Netzwerke, Server und praktische Problemlösungen.
Aktuell suche ich ein Praktikum, um mehr Erfahrung zu sammeln.

Ich Arbeite derzeit an einem eigenen Homeserver, als Testumgebung und für Programme wie Jellyfin, verschiedene VMs und Gameserver. Zusätzlich Arbeite ich an 3D Modellen in Blender für Spiele und Modifikationen in der Unreal Engine.

Folgendes Kann ich zu meinen Skills zählen:

  • Linux (Grundlagen)
  • HTML und CSS
  • Netzwerke und Internet
  • Virtualisierung (z.b. VirtualBox / Proxmox Erfahrungen)
  • Python (Grundlagen)
  • Allgemeines IT- Interesse & Troubleshooting
#8Ball
from pygame import mixer
import tkinter as tk
from pathlib import Path
from tkinter import PhotoImage
from tkinter import messagebox
import random

root = tk.Tk()
root.title("Magic 8 Ball")
root.resizable(False, False)
root.geometry("400x400")
root.configure(bg="white")

BASE_DIR = Path(__file__).parent

def shake():
    userInput = questionEntry.get()
    if len(userInput) == 0:
        messagebox.showerror("Error", "You have to ask a question!")
    else:
        answer = random.choice(answers)
        answerLabel.config(text=answer)
        mixer.music.play(loops=0)

def clear():
    questionEntry.delete(0, tk.END) # Eingabefeld leeren
    answerLabel.config(text="") # Antwortfeld leeren
    
mixer.init()
mixer.music.load(BASE_DIR / "buzz.wav")
    
answers = [
"Can't tell you now",
"It is certain",
"Ask again later",
"Yes",
"Don't count on it",
"Doubtful",
"No chance"
]

answerLabel = tk.Label(
root,
text="",
font=("Arial", 16, "bold"),
bg="yellow",
width=30,
height=2
)
answerLabel.pack(pady=10)

try:
    eightballImage = PhotoImage(file=BASE_DIR / "8ball.gif")
    eightballLabel = tk.Label(root, image=eightballImage, bg="white")
    eightballLabel.pack(pady=10)
except tk.TclError:
    eightballLabel = tk.Label(root, text="No 8ball.gif", bg="white")
    eightballLabel.config(font=("Arial", 12))
    eightballLabel.pack(pady=10)


questionEntry = tk.Entry(root, font=("Arial", 16), width=30)
questionEntry.pack(pady=10)
buttonFrame = tk.Frame(root, bg="white")
buttonFrame.pack(pady=10)

shakeButton = tk.Button(buttonFrame, text="Shake", command=shake)
shakeButton.config(font=("Arial", 14))
shakeButton.pack(side="left", padx=10)
clearButton = tk.Button(buttonFrame, text="Clear", command=clear)
clearButton.config(font=("Arial", 14))
clearButton.pack(side="left", padx=10)




root.mainloop()
Nach oben scrollen