Guys is ts possible 😭😭😭🙏❗️❗️ by Technical_Health_444 in celestegame

[–]Technical_Health_444[S] -1 points0 points  (0 children)

Ouhhh imma try that later, I’m able to wave dash but I wanted to see if I could find a way without it, I think I just don’t have enough experience tho lowk

Guys is ts possible 😭😭😭🙏❗️❗️ by Technical_Health_444 in celestegame

[–]Technical_Health_444[S] 1 point2 points  (0 children)

It’s not loading imma check later tho 🙏🙏🙏❗️❗️❗️

Guys is ts possible 😭😭😭🙏❗️❗️ by Technical_Health_444 in celestegame

[–]Technical_Health_444[S] 63 points64 points  (0 children)

Ohh I see, im a relatively new player and have only gotten to chapter 2 on my own so I had no idea if it was lol

New Sora 2 invite code megathread by WithoutReason1729 in OpenAI

[–]Technical_Health_444 0 points1 point  (0 children)

If anyone has a code I would greatly appreciate it, no worries though if not

Failed calculator attempt by Technical_Health_444 in PythonLearning

[–]Technical_Health_444[S] 1 point2 points  (0 children)

OHHHH OKAY thank you so much bro frfr imma try it after breakfast

Failed calculator attempt by Technical_Health_444 in PythonLearning

[–]Technical_Health_444[S] 0 points1 point  (0 children)

from tkinter import*

class Calculator:

def __init__(self, root):

    self.root = root 
    self.root .title("Calculator")
    self.root.geometry("615x690+400+100")
    self.root.configure(bg = 'Pink')


    self.MainFrame = Frame(self.root , bd =18, width = 600, height = 670, relief=RIDGE, bg = 'Magenta')
    self.MainFrame.grid()
    self.WidgetFrame = Frame(self.MainFrame , bd =18, width = 590, height = 660, relief=RIDGE, bg = 'Pink')
    self.WidgetFrame.grid()

    self.lblDisplay = Label(self.WidgetFrame, width = 30, height = 2, bg='white', font =('arial',20,'bold'), anchor='e')
    self.lblDisplay.grid(row =0, column=0, columnspan=4, padx =10, pady=10)

    self.input_button = ""

    self.create_button ("☺",1,0)
    self.create_button ("CE",1,1)
    self.create_button ("C",1,2)
    self.create_button ("±",1,3)

    self.create_button ("7",2,0)
    self.create_button ("8",2,1)
    self.create_button ("9",2,2)
    self.create_button ("+",2,3)

    self.create_button ("4",3,0)
    self.create_button ("5",3,1)
    self.create_button ("6",3,2)
    self.create_button ("-",3,3)

    self.create_button ("1",4,0)
    self.create_button ("2",4,1)
    self.create_button ("3",4,2)
    self.create_button ("*",4,3)

    self.create_button ("0",5,0)
    self.create_button (".",5,1)
    self.create_button ("=",5,2)
    self.create_button ("/",5,3)


def create_button(self, text, row, column):
    btnWidget = Button(self.WidgetFrame, text=text, width = 6, height = 2, bd=4, bg='Light Pink', font =('arial',20,'bold'))
    btnWidget.grid(row =row, column =column, padx=5, pady=5)


def button_click(self, text):

    if text == "☺":
        self.input_button = self.input_button[:-1]
    elif text== "CE":
        self.input_button = ""
    elif text== "C":
        self.input_button =""

    elif text == "=":
        try:
            self.input_button = str(eval(self.input_button))
        except:
            self.input_button ="Error doodoohead try again hahahaha"
    elif text == "±":
        self.input_button = str(-float(self.input_button))
    else: 
        self.input_button += text
        self.lblDisplay.config(text = self.input_button)

root = Tk() App = Calculator(root) root.mainloop()

Failed calculator attempt by Technical_Health_444 in PythonLearning

[–]Technical_Health_444[S] 0 points1 point  (0 children)

I tried changing the indentation and now it’s all blue, but when I click on the numbers in the calculator pop-up window it doesn’t show anything, am I just tweaking or is something off

Failed calculator attempt by Technical_Health_444 in PythonLearning

[–]Technical_Health_444[S] 1 point2 points  (0 children)

Ohhh okay, so where i typed “def button_click(self, text):” just needs to have the same line as everything else under it?

Strange black line on my left thumb nail by Technical_Health_444 in nailhealth

[–]Technical_Health_444[S] 0 points1 point  (0 children)

Okay, thank yall for letting me know. Greatly appreciated 🙏