Is there a way of putting the Python Shell output in a tkinter window?

Let’s find an answer to "Is there a way of putting the Python Shell output in a tkinter window?". The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

Is there a way of putting the Python Shell output in a tkinter window?

I was wondering if it is possible (and if so, how) to have the Python Shell output and input inside a tkinter window I have made. I searched on google but I can't seem to find anything. If possible, is there a short version that a beginner could understand. (All the websites I have tried I just could not understand.) Here is my code that I have got: from tkinter import * def Exit(): print() def newClassResults(): #assigns variable to an input so it can be reffered to later amount = int(input...

Answer:

Have a look at this post. The author inserts a terminal emulator in a tkinter window. I've modified...

Read more

AlexDear at Stack Overflow Mark as irrelevant Undo

Other solutions

What is a convenient way to execute a shell command in Python and retrieve its output?

The commands module seems like the way to go. The subprocess module doesn't seem very intuitive to use. Are there any other options?

Answer:

subprocess is the most common idiom in my experience, replacing the old popen2().

Read more

Jeff Hammerbacher at Quora Mark as irrelevant Undo

Can I use the terminal's python shell as the output shell for a python file? When using the IDE?

I use IDLE to edit code and then it runs in IDLE's built in shell by default. It is a long story and shouldn't matter as to why, but I want to edit the code in IDLE and have ...show more

Answer:

>> IDLE is pretty bad, but it seems as though every programmer has his/her idea of what's a...

Read more

2YO72HBZZNNIRCCTZ3NDZW4PLU at Yahoo! Answers Mark as irrelevant Undo

Any way to shorten this python GUI? python v3.2 using Tkinter?

ip address at the click of a button # shows how to aquire both public and private ip address's and shows them in a text box from tkinter import * import urllib import socket from urllib import * from urllib import request class Application(Frame): ....

Answer:

There is no possible way to shorten the code.

Read more

Jared Garrow at Yahoo! Answers Mark as irrelevant Undo

An odesk contractor appears to have added a script to my site.  I want to be fair, is there any way this is a mistake?

He was modifying an existing site.  The site he created caused several words on my page to appear hyperlinked and when you moused over a little advertising window appeared.  My site did NOT do this before.  I commented out a script that was not on the...

Answer:

data.htm is an entry point and run.js contains the actual code to add underlined ads as well as what...

Read more

Deep Joy Majumdar at Quora Mark as irrelevant Undo

How to distribute a python Tkinter GUI from one Mac to another

I've been writing python software with Tkinter GUIs as a hobby for a while, but for the first time, I've made a some pieces of code that a few other people want to use. Unfortunately, I've been really frustrated by attempts to distribute the software...

Answer:

I know nothing about the app bundles that py2app creates, but on OSX you can include Foo.framework inside...

Read more

Salvor Hardin at Ask.Metafilter.Com Mark as irrelevant Undo

Python question - I can't seem to find python shell from IDLE in windows ?

I just installed Python and I can't seem to find python shell from IDLE in windows. When I right click in a *.py file I can chosse EDIT WITH IDLE. With IDLE open I can choose the menu RUN --> PYTHON SHELL But I can't find a way to open this PYTHON...

Answer:

Why would you want to do it like this? Under Windows, I use Notepad ++ to edit my source files, and...

Read more

Poseur de question revisited at Yahoo! Answers Mark as irrelevant Undo

Customizing the size of the tex-shell window

I want to make a very small but critical change in the way emacs behaves in latex-mode. Can I force the tex-shell window to be a different size than half the current window? When I'm editing a *.tex file, I hit C-c C-f to typeset it. The first result...

Answer:

You want sticky-repl.el Download this file: http://twb.ath.cx/~twb/canon/sticky-repl/sticky-repl.el...

Read more

gleuschk at Ask.Metafilter.Com Mark as irrelevant Undo

Need a Python program using Tkinter

I've downloaded Python 2.2.2 for Windows and have started to learn Python using IDLE. My eventual goal is to create some simple programs that use Tkinter, and that I can put on my Win98 desktop to use when I need them. I'd like someone to create an example...

Answer:

Below is a script called grepper.py that I wrote to your specifications. You'll notice that in the second...

Read more

donkan-ga at Google Answers Mark as irrelevant Undo

Window air conditioners and winter: how do they mix?

I'm probably going to need to leave my air conditioner in the window during the '07-'08 winter, and I have a few questions about air conditioners and winter. I live in a studio in Chicago's north Uptown. I bought my first air conditioner last summer...

Answer:

I would recommend against leaving the unit mounted during the winter, especially in Chicago. From my...

Read more

WCityMike at Ask.Metafilter.Com Mark as irrelevant Undo

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.