Is wxPython good for a hardware simulator?

To assign a computer architecture, I'm trying to replace a C ++ library called "Sim" with something in Python.

I already use MyHDL for the simulator, but the C ++ program has a nice interactive function that allows students to see the components connected together (gates, inputs, outputs, triggers, etc.) and switch any signal.

I am trying to create this interactive aspect, and I just need to choose the library to use. I was wondering if wxPython would be a good choice in this case. In the GUI, you basically need to draw gates or devices, such as triggers and counters, use lines to connect them, and have some signal representation (for example, 0 and 1 or black and white).

Is wxPython a good idea or are there better libraries for this app?

+3
source share
3 answers

Sounds like you're modeling logic circuits? Depending on the type of user interface you are looking for, I would say that wxPython can definitely do the job. You may not even need this.

Most python distributions include Tkinter, a fairly simple graphics library. Here's an example of an existing (albeit fairly old) digital circuit simulator written in python using Tkinter and PMW:

http://cvs.savannah.gnu.org/viewvc/pydcs/?root=pydcs

PyGame. , , .

+1

wxPython pyside ( python Qt) .

wx , MFC, Qt, , .

+1

wxPython and PyQt are a good option. I find Qt easy compared to wxPython.

0
source

Source: https://habr.com/ru/post/1792971/


All Articles