A cross-border community for researchers with openness, equality and inclusion

ABSTRACT LIBRARY

Benchmarking Pygame vs. Tkinter: Performance and Code Complexity in Python GUI Development

Publisher: IEEE

Authors: Biibosunova Saltanat, Arabaev Kyrgyz State University Biibosunov Daniiar, Arabaev Kyrgyz State University Yi Ming Ma, Arabaev Kyrgyz State University Fang Liu, Arabaev Kyrgyz State University Xingzhou Fan, Arabaev Kyrgyz State University Da Huang, Arabaev Kyrgyz State University

  • Favorite
  • Share:

Abstract:

The research evaluates two Python GUI (Graphical User Interface) development methods through Tkinter and Pygame libraries. The event loop and drawing facilities of Pygame enable developers to use this library for creating general-purpose GUI applications despite its main purpose being 2D game development. The research evaluates which approach provides better performance and faster response times and easier development processes.

There are implemented identical functional applications through Tkinter and Pygame to compare their performance. The execution time results demonstrate Pygame outperforms Tkinter by 3.5 to 3.7 times in both startup and processing speed while certain tasks show performance improvements of 6 to 7 times. The Pygame codebase needed less lines of code and provided a more straightforward abstraction for handling events and rendering graphics.

It shows Pygame provides equivalent performance to Tkinter for applications that need fast GUI rendering and real-time graphics and animation. The research shows that Tkinter works best for basic form-based interfaces and standard desktop widgets, but Pygame excels at performance-critical GUI applications. The research provides guidance about toolkit selection based on application requirements and suggests future investigation directions.

Keywords: Python, graphical user interface (GUI), Pygame, Tkinter, event-driven programming.

Published in: 2024 Asian Conference on Communication and Networks (ASIANComNet)

Date of Publication: --

DOI: -

Publisher: IEEE

×

USS WeChat Official Account

USSsociety

Please scan the QR code to follow
the wechat official account.