Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong syntax on hello world program #8

Open
nirban256 opened this issue May 2, 2024 · 7 comments
Open

Wrong syntax on hello world program #8

nirban256 opened this issue May 2, 2024 · 7 comments

Comments

@nirban256
Copy link

The given code is

"""Hello World application for Tkinter"""


from tkinter import *
from tkinter.ttk 
import *

root = Tk()

label = Label(root, text="Hello World")
label.pack()
root.mainloop()

It should be like this on the second line because otherwise it is giving me error

"""Hello World application for Tkinter"""


from tkinter import *
from tkinter.ttk import *

root = Tk()

label = Label(root, text="Hello World")
label.pack()
root.mainloop()

On the second line the import of 3rd line should be on the above line

If you can assign me the issue then I can create a pull requeest to solve the issue

@Double-Guo
Copy link

Double-Guo commented May 2, 2024 via email

@nirban256
Copy link
Author

please merge the pull request @Double-Guo

@LuckyIntel
Copy link

Checked the code myself and yes lol it is acutally wrong. import * means import everything.But from what or where.So yes your fix is how this code actually should work.This repo is very old so no one will problaly care.

@Double-Guo
Copy link

Double-Guo commented Jul 30, 2024 via email

@nirban256
Copy link
Author

您好,已收到。祝好!

can you please tell in english proper translation I couldn't find. Thank you.

@LuckyIntel
Copy link

您好,已收到。祝好!

can you please tell in english proper translation I couldn't find. Thank you.

I translated it and it says something like "message received, good luck".So it's just something like auto-reply.

@nirban256
Copy link
Author

您好,已收到。祝好!

can you please tell in english proper translation I couldn't find. Thank you.

I translated it and it says something like "message received, good luck".So it's just something like auto-reply.

ok thanks for clarifying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants