#๐Ÿ”’ tryna learn tkinter

37 messages ยท Page 1 of 1 (latest)

normal cobaltBOT
#

@chilly saddle

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sweet pagoda
#

Have you watched any tutorials?

#

The docs?

#

It's been a while since I worked with tkinter but if I remember correctly, and this goes for every gui that I know of, you need a main loop to keep the program running

#

Since you've already made an instance of the Tk() class, you should call the mainloop method at the bottom

#

Are you familiar with classes tho?

#

(You don't need to be btw just checking)

#

Ik what you're making ๐Ÿ˜‚ I read like 3 different instances of your earlier message

#

at the bottom do window.mainloop()

#

Noobie question but, you know how to display information(output) on the terminal. Right?

#

For example do you know how to display "hello world" on the terminal? (Not talking about gui)

sweet pagoda
#

How?

#

Yes

#

So we "print" stuff on the terminal. It's no different with a gui. You need to learn the methods to do the same on the gui screen

#

How to "print" on tkinter?

#

Okay sure

#

No, all you're doing is creating a variable. It's the same as doing

message = "hello world"
#

But there's no print

#

All you're doing with gui is a different way to handle inputs and outputs. Everything else remains the same

#

msg = tk.label(text = "hey")

#

Just an example

#

You're just handling your inputs and outputs differently is all

#

So you need to read the docs to learn the methods

#

Could you rephrase?

#

I asked what you meant by that question

#

You'll learn the concept behind making gui frontend and backend

#

You already have your rock paper scissors. All you're learning here is how to make an app of it basically

#

Not an actual app but the design of one

#

Yeah you'd need to take extra steps after you're done to convert it into an apk or whatsoever. I've never done that so don't ask me how ๐Ÿ˜‚

#

Still need extra steps

#

Like an app that converts

#

I'm not good at Python yet but, you have nothing to worry about as long as you keep coding, you'll get better. Especially at your age

#

Just look up tkinter tutorial on youtube and look for the most recent one. It's been a while since I watched one of those so idk what to recommend

#

Done

normal cobaltBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.