Python Forum
migrate code from tkinter to pygame
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
migrate code from tkinter to pygame
#2
You will get no benefit going from tkinter to Qt (PySide). In both cases your difficulties are caused by the blocking event loop (mainloop() in tkinter, exec() in Qt). And in both cases there are ways to schedule events that can be used to periodically run a function. In tkinter this is done using .after(). In Qt there are multiple ways to accomplish this, but the easiest to understand is probably QTimer.
Reply


Messages In This Thread
migrate code from tkinter to pygame - by Frankduc - May-26-2022, 02:40 PM
RE: migrate code from tkinter to pygame - by deanhystad - May-26-2022, 03:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame and tkinter seteg 1 1,586 Feb-14-2022, 12:04 PM
Last Post: dboxall123
  Pygame mixer and tkinter music player Kumarkv 1 2,817 May-14-2020, 06:08 PM
Last Post: Larz60+
  How can I use concurrency to migrate database in Python? binhduonggttn 4 2,613 Jan-31-2020, 09:25 AM
Last Post: buran
  Pygame*import pygame ImportError: No module named pygame CASPERHANISCH 1 9,810 Jun-05-2017, 09:50 PM
Last Post: nilamo
  Global Variables. Migrate code from MatLab Felipe 8 7,024 Jan-13-2017, 01:19 AM
Last Post: Felipe

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020