<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: wxPython: Creating a Simple MP3 Player</title>
	<atom:link href="http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/</link>
	<description>Python Programming from the Frontlines</description>
	<lastBuildDate>Sun, 05 Feb 2012 20:38:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: driscollis</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-21225</link>
		<dc:creator>driscollis</dc:creator>
		<pubDate>Sun, 25 Jul 2010 21:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-21225</guid>
		<description>Are you using the archive download or did you just copy and paste the code from the post? That message means that it either can&#039;t find the bitmaps for the buttons or the bitmap is corrupt.&lt;br&gt;&lt;br&gt;- Mike</description>
		<content:encoded><![CDATA[<p>Are you using the archive download or did you just copy and paste the code from the post? That message means that it either can&#39;t find the bitmaps for the buttons or the bitmap is corrupt.</p>
<p>- Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ran4</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-21224</link>
		<dc:creator>Ran4</dc:creator>
		<pubDate>Sun, 25 Jul 2010 19:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-21224</guid>
		<description>It gives me an error, which I&#039;m quite puzzled by.&lt;br&gt;&lt;br&gt;Python25libsite-packageswx-2.8-msw-unicodewx_core.py&quot;, line 3440, in ImageFromBitmap&lt;br&gt;    val = _core_.new_ImageFromBitmap(*args, **kwargs)&lt;br&gt;wx._core.PyAssertionError: C++ assertion &quot;bmp.Ok()&quot; failed at ....srcmswdib.cpp(148) in wxDIB::Create(): wxDIB::Create(): invalid bitmap&lt;br&gt;&lt;br&gt;Odd, I must say... What might be the fix?</description>
		<content:encoded><![CDATA[<p>It gives me an error, which I&#39;m quite puzzled by.</p>
<p>Python25libsite-packageswx-2.8-msw-unicodewx_core.py&#8221;, line 3440, in ImageFromBitmap<br />    val = _core_.new_ImageFromBitmap(*args, **kwargs)<br />wx._core.PyAssertionError: C++ assertion &#8220;bmp.Ok()&#8221; failed at &#8230;.srcmswdib.cpp(148) in wxDIB::Create(): wxDIB::Create(): invalid bitmap</p>
<p>Odd, I must say&#8230; What might be the fix?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: driscollis</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-21062</link>
		<dc:creator>driscollis</dc:creator>
		<pubDate>Sat, 03 Jul 2010 07:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-21062</guid>
		<description>Oops...someone else showed me a similar solution to this quite some time ago, but I forgot to update the code in the post. Thanks for the heads-up! &lt;br&gt;&lt;br&gt;- Mike</description>
		<content:encoded><![CDATA[<p>Oops&#8230;someone else showed me a similar solution to this quite some time ago, but I forgot to update the code in the post. Thanks for the heads-up! </p>
<p>- Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Muzenhardt</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-21061</link>
		<dc:creator>Mark Muzenhardt</dc:creator>
		<pubDate>Fri, 02 Jul 2010 20:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-21061</guid>
		<description>There is an error in the Program. This function is to change so that the volume slider works properly:&lt;br&gt;&lt;br&gt;    def onSetVolume(self, event):&lt;br&gt;        &quot;&quot;&quot;&lt;br&gt;        Sets the volume of the music player&lt;br&gt;        &quot;&quot;&quot;&lt;br&gt;        self.currentVolume = self.volumeCtrl.GetValue()&lt;br&gt;        print &quot;setting volume to: %s&quot; % int(self.currentVolume)&lt;br&gt;        self.mediaPlayer.SetVolume(float(self.currentVolume) / 100)</description>
		<content:encoded><![CDATA[<p>There is an error in the Program. This function is to change so that the volume slider works properly:</p>
<p>    def onSetVolume(self, event):<br />        &#8220;&#8221;"<br />        Sets the volume of the music player<br />        &#8220;&#8221;"<br />        self.currentVolume = self.volumeCtrl.GetValue()<br />        print &#8220;setting volume to: %s&#8221; % int(self.currentVolume)<br />        self.mediaPlayer.SetVolume(float(self.currentVolume) / 100)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diane</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-22886</link>
		<dc:creator>Diane</dc:creator>
		<pubDate>Sun, 06 Jun 2010 04:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-22886</guid>
		<description>There are many different layouts that we could have gone with, but for this example, we’ll use the traditional one where we have a horizontal song track slider widget along the top with player controls underneath and a volume control on the right.And the shaped buttons would be perfect for this application.If we know what widgets of wxPython is. Thanks G-d bless ;-)</description>
		<content:encoded><![CDATA[<p>There are many different layouts that we could have gone with, but for this example, we’ll use the traditional one where we have a horizontal song track slider widget along the top with player controls underneath and a volume control on the right.And the shaped buttons would be perfect for this application.If we know what widgets of wxPython is. Thanks G-d bless <img src='http://www.blog.pythonlibrary.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GrooveWalrus</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-20619</link>
		<dc:creator>GrooveWalrus</dc:creator>
		<pubDate>Sat, 24 Apr 2010 07:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-20619</guid>
		<description>Playing with wx.media recently, the above works fine in Windows 7.  If say you wanted to load and play at the same time (ex. getting the first selection on a previously loaded playlist) eg.&lt;br&gt;&lt;br&gt;def OnPlayClick(self, event):&lt;br&gt;...&lt;br&gt;    self.mediaPlayer.Load(&quot;c:some.mp3&quot;)&lt;br&gt;    self.mediaPlayer.Play()&lt;br&gt;&lt;br&gt;It won&#039;t play and it&#039;ll fill you with murderous rage.&lt;br&gt;&lt;br&gt;What you need is 2 things, specify a backend and Bind a media loaded event:&lt;br&gt;self.mdaPlyr=wx.media.MediaCtrl(...szBackend=wx.media.MEDIABACKEND_WMP10)&lt;br&gt;self.Bind(wx.media.EVT_MEDIA_LOADED, self.PlayWxMedia)</description>
		<content:encoded><![CDATA[<p>Playing with wx.media recently, the above works fine in Windows 7.  If say you wanted to load and play at the same time (ex. getting the first selection on a previously loaded playlist) eg.</p>
<p>def OnPlayClick(self, event):<br />&#8230;<br />    self.mediaPlayer.Load(&#8220;c:some.mp3&#8243;)<br />    self.mediaPlayer.Play()</p>
<p>It won&#39;t play and it&#39;ll fill you with murderous rage.</p>
<p>What you need is 2 things, specify a backend and Bind a media loaded event:<br />self.mdaPlyr=wx.media.MediaCtrl(&#8230;szBackend=wx.media.MEDIABACKEND_WMP10)<br />self.Bind(wx.media.EVT_MEDIA_LOADED, self.PlayWxMedia)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haseeb ahmed</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-20600</link>
		<dc:creator>haseeb ahmed</dc:creator>
		<pubDate>Thu, 22 Apr 2010 13:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-20600</guid>
		<description>thanks you, very nice&lt;br&gt;going to watch image viewer now</description>
		<content:encoded><![CDATA[<p>thanks you, very nice<br />going to watch image viewer now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ProgMan (Mike)</title>
		<link>http://www.blog.pythonlibrary.org/2010/04/20/wxpython-creating-a-simple-mp3-player/comment-page-1/#comment-20594</link>
		<dc:creator>ProgMan (Mike)</dc:creator>
		<pubDate>Wed, 21 Apr 2010 11:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.pythonlibrary.org/?p=812#comment-20594</guid>
		<description>Very nice work Mike, thanks for your effort.&lt;br&gt;&lt;br&gt;ProgMan (Mike from the wxPy IRC channel)</description>
		<content:encoded><![CDATA[<p>Very nice work Mike, thanks for your effort.</p>
<p>ProgMan (Mike from the wxPy IRC channel)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.000 seconds -->

