Python Forum
[Tkinter] Display on gui instead of Python shell - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Tkinter] Display on gui instead of Python shell (/thread-2294.html)



Display on gui instead of Python shell - Justin - Mar-05-2017

Hey guys , i have made a sample gui in python with tkinter,which prompts the user the mac address of his pc, however when i execute the python snippet the mac address gets displayed on the python shell instead of the gui, how do i work around this?


RE: Display on gui instead of Python shell - Barrowman - Mar-05-2017

You need to show us your code.
I suspect you are trying to display it with a print statement which is the way to display it in the shell or terminal.


RE: Display on gui instead of Python shell - Larz60+ - Mar-05-2017

You need an entry widget like:

pwd_entry = Entry(parent)
pwd_entry.pack()
pwd_entry.config(show="*");