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
#9
If i click button1 to switch the album its not working. It will switch only if the button is already press before i compile. For button2 if i press 5 seconds the pushbutton the image will freeze for 3 minutes. That part work. My question is it possible to move image_voiliers and image_yacht out of the scope of the class or the scope of the loop. I dont really understand why its not working. Cant solve what i dont understand.
If it is possible and extract the image from a file than i could use button1 gpio to choose with if statement between a image_voilier file or image_yatch file for example using io.
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 Frankduc - May-27-2022, 11:46 PM

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