tkMessageBox that receives text as an answer

Post here if you need help with creating a Graphical User Interface in Python.

tkMessageBox that receives text as an answer

Postby micma418 » Sat Dec 28, 2013 2:34 am

Hi there!
How would you use TkMessageBox to recieve text as an input from the user. I have already tried messagebox.askquestion() but that returns yes, no. I have also tried messagebox.showinfo but I don't think that works either.

I'm not sure if there is anything. If not, are there any other options for user interaction in a text box form?

Thanks so much!
Last edited by Yoriz on Sat Dec 28, 2013 2:37 am, edited 1 time in total.
Reason: First post lock
micma418
 
Posts: 2
Joined: Sat Dec 28, 2013 2:24 am

Re: tkMessageBox that receives text as an answer

Postby Yoriz » Sat Dec 28, 2013 2:40 am

Hi welcome to the forum.
Please read the 'new users, read this' link in my signature.
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Image
User avatar
Yoriz
 
Posts: 1019
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Re: tkMessageBox that receives text as an answer

Postby micma418 » Sat Dec 28, 2013 2:44 am

Thanks! Did I do ok? I am kinda working on my first big(er) project in python and I have had a lot of trouble sending a emailthrough python. I have been working on it for a few days now :? But anyway, thanks for the welcome @Yoriz
micma418
 
Posts: 2
Joined: Sat Dec 28, 2013 2:24 am

Re: tkMessageBox that receives text as an answer

Postby metulburr » Sat Dec 28, 2013 2:23 pm

I have already tried messagebox.askquestion() but that returns yes, no. I have also tried messagebox.showinfo

I believe he is referring to the fact that you have not posted any code for your project. You are going to want to look at tk.Entry()
http://effbot.org/tkinterbook/entry.htm

tk message box is filled with default basic popups windows. I dont think there is one that has an input field in it. However you can create custom popup windows with whatever you want in it, thus requiring Entry()
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1497
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY


Return to GUI

Who is online

Users browsing this forum: No registered users and 2 guests