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

Tkinter Entry girdisini int olarak işleme sokabilmek #1

Closed
OgiBalboa opened this issue Sep 23, 2019 · 0 comments
Closed

Tkinter Entry girdisini int olarak işleme sokabilmek #1

OgiBalboa opened this issue Sep 23, 2019 · 0 comments

Comments

@OgiBalboa
Copy link
Owner

OgiBalboa commented Sep 23, 2019

Tkinter ile kullanıcıdan girdi almak için Entry yöntemi kullanılır.
Kullanımı :
girdi=Entry(kayit,width=5)
girdi.grid(column=100,row=11)
grid fonksiyonu materyali gui de konumlandırır. Normalde girdi=Entry(kayit,width=5).grid(column = 100,row = 11) de yapabilirdik. Ancak bu yazım şekli pythonda hata veriyor. Bu yüzden ayrı yazınız.(diğer şeylerde birleşik yazabilirsiniz.)
Tkinter ile kullanıcıdan girdi alıp bu entry' i işleme sokamaya çalıştığımızda hata verecektir. Bunu çözmek için şu yöntemi kullanınız :
girdi=int(str(timnt.get()))
Önce string e daha sonra integer a çevrilerek çözüme ulaşılır.

@OgiBalboa OgiBalboa pinned this issue Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant