Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory savings of Python Tkinter GUI vs PyQT

BACKGROUND: It's important to consider memory usage of applications on ARM computers like the Raspberry Pi. When programming with Python, there are several GUI choices. A couple of the most popular are QT and TK. The Raspberry Pi 2 and 3 are limited by 1-Gbyte RAM, and 32-Gbyte max USB memory storage, per stick. They also have a much slower RISC (ARM) processor compared to popular desktop or laptop computers. Still, it's "enough" to run applications, even many GUI applications at a time if they use conservative programming techniques. I'm figuring that if a user stuck to TK based applications (Python-Tkinter-GUI) with the Raspberry Pi, then there wouldn't be nearly the number of difficulties.

Q: Does anyone have any statistics on this ... by using Tkinter instead of PyQT for GUI program development with the intended user being on a Raspberry Pi version 2 or 3 ...

Performance ratios, programming with Tkinter vs PyQT:

  1. Size of Program in storage
  2. Size of Program executed in RAM
  3. Speed of Application
like image 902
user12711 Avatar asked Jun 28 '17 19:06

user12711


People also ask

Is Tkinter or PyQt better?

thenPyQt comes with many powerful and advanced widgets. TkInter does not come with advanced widgets. 5. PyQt have a Qt Designer tool which we can use to build GUIs than get python code of that GUI using Qt Designer.

Is PyQt good for GUI?

Building GUI applications using the PYQT designer tool is comparatively less time-consuming than code the widgets. It is one of the fastest and easiest ways to create GUIs. The normal approach is to write the code even for the widgets and for the functionalities as well.

Should I learn Tkinter or PyQt first?

If you want a solid good learning experience learn tkinter first. It has more limitation but i think it is more simple for the basics. Once you get the basics down its easier to figure out how to use PyQt and translate between version 4 and 5.


1 Answers

tkinter based GUI should be smaller on the disk and RAM but has less capabilities and may not suite your needs depending on what you need. tkinter is best for a small, simple gui. it will have no problems running a fair sized document.

like image 88
littleting1 Avatar answered Oct 19 '22 00:10

littleting1