[python-win32] Simple little sound mixing app that reads timing/sound data from XML file

Jacob Kruger jacob at blindza.co.za
Wed Nov 20 06:40:00 CET 2013


Oh yes, and considered class implementation, but, haven't bothered as of yet, since, like said, this was actually more of a form of testing/trying out XML parsing to start off with.

Also, presume with regards to global keyword usage, while it may not always be required/necessary, unless you want to be 100% sure referral to something like that blStop, sort of boolean switch variable is definitely referring to correct object/element, I was maybe also just being careful, but, will have a look around for a bit more documentation regarding this side of it - sorry, but, python is also sort of like my secondary platform, so am definitely not perfect in my workings with it as such...<smile>...and, things like the blStop switch variable are generally the type of thing would try use if was running something like the playback routines in another, background thread process, or something, instead of how this one is currently operating.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

  ----- Original Message ----- 
  From: Tim Roberts 
  To: Python-Win32 List 
  Sent: Wednesday, November 20, 2013 03:03 AM
  Subject: Re: [python-win32] Simple little sound mixing app that reads timing/sound data from XML file


  Jacob Kruger wrote:

    As subject line says - current example .xml file is tracks.xml, and sound clips are in /sounds subdirectory, and it uses sound_lib to handle playback:

  Are you looking for critique?

  With the one exception of blStop in OnEvent, none of your "global" directives are necessary.  As an overgeneralization, global variables are bad.  That "lbc.py" module encourages you to think of your application in a rather non-Pythonic (non-wx) way, in my opinion.  Usually, almost your whole app would be member functions within a class derived from wx.Dialog.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------


  _______________________________________________
  python-win32 mailing list
  python-win32 at python.org
  https://mail.python.org/mailman/listinfo/python-win32
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20131120/057201fe/attachment.html>


More information about the python-win32 mailing list