I looked at the stack overflow question that OnGle said in his answer, and saw two solutions that I feel I can implement.
Solution 1
fooobar.com/questions/633221 / ... I could completely save part of the PyGTK program in a separate process and just send data between the two current programs. However, this seems a bit overboard for what I need.
Decision 2
I could use PGU or OcempGUI , which are Pygame libraries designed to simplify low-level graphical programming. Using one of them, I could forget about using PyGTK completely and just use ready-made objects from them.
Summary
While solution 1 supports my initial implementation of PyGTK, it may also be too complicated for such a simple program that I am doing. In addition, using solution 1 would also mean that I would have to continue to open two windows at once when my program starts up, which makes it seem cluttered and cumbersome.
Solution 2, on the other hand, purely integrates the list of objects in my Pygame project, and also reduces the amount of code I have to execute. I also donβt need to worry that different operating systems handle data transfer differently, as this is likely to be a problem with solution 1. In the end, this seems like the best solution to my situation.
source share