2 threads; 1 more Tkinter and 1 more terminal. problem

C

ChrisChia

Hi all,
i am trying to do a GUI with Tkinter package, but i am stuck no matter
what...
The problem right now is that my GUI has a label= 'A' (where 'A' is
the text on display)

i wish to run a program with 2 threads... one for my GUI and the other
for the terminal where the terminal will keep listening to the user
input (let's say if he enters 'B'), the GUI will update it's label to
'B'.

It's easy to let the terminal wait after the user has entered the
input.
But the problem is that when the GUI loads up... the

root.mainloop()

doesn't seem to release the control, hence my thread cannot work on
GUI.

Is there a way to solve this problem?
2 threads; 1 more GUI and 1 more terminal.
 
T

Terry Reedy

Hi all,
i am trying to do a GUI with Tkinter package, but i am stuck no matter
what...
The problem right now is that my GUI has a label= 'A' (where 'A' is
the text on display)

i wish to run a program with 2 threads... one for my GUI and the other
for the terminal where the terminal will keep listening to the user
input (let's say if he enters 'B'), the GUI will update it's label to
'B'.

Makes no sense to me. GUI = graphics user interface. Interface = input
from and output to the user. Additional threads for for other activities
that may block or be compute intensive, not a separate text user interface.
It's easy to let the terminal wait after the user has entered the
input.
But the problem is that when the GUI loads up... the

root.mainloop()

doesn't seem to release the control,

That seems to be the point of a GUI
 
C

ChrisChia

Makes no sense to me. GUI = graphics user interface. Interface = input
from and output to the user. Additional threads for for other activities
that may block or be compute intensive, not a separate text user interface.


That seems to be the point of a GUI


The idea has is that the interface acts as a window to display the
text type from the terminal.
It's a crazy idea but i wish to implement something that way.

The GUI in the case will display any text that the user enters from
the terminal...

Any idea to make both the processes running and listening at the same
time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top