5 odpowiedzi
+ 2
tkinter
sfml
pygame
+ 1
I posted a simillar question, round about 1 year ago.
For me I got it with small programms at the beginning. Than greater.
Try to build a root window.
Try to build a Label in the root window.
Try to build a Entry in the root window.
Try to build a Button a in the root window.
Try to build a label, a entry and a button in the root window.
Try to connect the butzon with a command.
Try to get the input of the Entry to proceed with the Button.
Practise.
Then you are able to write every Python programm with GUI.
If you need a start project, take my.
A telephone- book.
Its a dictionary
t_numbers = {
"Sam" : "123456",
"Sara" : "1122334",
"Pablo E." : "777888999"
}
user_input = dict_key
we need the get() method to get the right number.
So
t_numbers.get(dict_key, "number not in data")
But what we do now???
the input method dont work, bc its console.
We need a Entry on a root window.
Maybe ther is a label with the text: insert name.
There will be a Button, named "Get number!"
The Button is connec
+ 1
Ted with a command.
the get() thing.
And we musst show it.
But where
We could add the creation of a new Label to the get() statement.
And so on.
If you are struggel, feel free to write me a message.
Have fun :)
edit:
yes SL teach you the basics.
Now you have to search in the internet how tkinter works.
+ 1
Thanks a lot. Sven_m
:)
0
Tq