473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Detect song is over - wxpython

28
How do I detect song is over? I have a function that run ONLY when song have finished playing. How do I do that?
Dec 8 '08 #1
2 1856
Smygis
126 100+
@Apostle
Well first you need to figure out how your audio playing lib handles this. If there is any events risen or something you can use.

Secondly i think you want to have a look at wx.CallAfter... I think.
Dec 8 '08 #2
Apostle
28
@Smygis
wx.CallAfter can't wait for song to finish, fires up as soon as play() is called. If Iam to use wxCallAfter i need another function to delay until song finishes
Dec 8 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jay Davis | last post by:
We have an application in wxPython that works quite well on our local computers, but we want people to be able to run the program over the internet. One way that would work is to use an Xwindows...
6
by: Rune | last post by:
Hey I'm trying to build a gui application and need to know if the user is actually holding down the shift or ctrl key. That is, if the user currently is holding down the shift key. In pseudo...
2
by: Ringwraith | last post by:
Hello! How to detect in Python that some click action was performed in some module imported by my main module? Let's assume I have a tree.py module that implements all functionality of a tree...
6
by: Stephane Belzile | last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS unit in case of power failure? Thanks
2
by: Vinay | last post by:
Hi, I want to verify if a particular song is being played from my program. I have read a lot of examples of using winmm.dll and importing PlaySound(). If there anyway to check if a song is being...
39
by: clintonG | last post by:
This is not about starting a fight but an observation that seems to be proving itself on its own merit and is therefore simply a point of conjecture. I did not get serious about writing software...
2
by: Kevin Walzer | last post by:
I've spent some time playing with both, and while wxPython is nice, Tkinter just seems to fit my head better, and with appropriate selection of widgets and interface design, seems to yield up...
1
by: SMALLp | last post by:
How to? I couldn't find anything except EVT_ENTER_WINDOW that didn't work.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.