Re: [pygame] emulating /replacing py2exe for pygame projects using python 3 and abore

2014-10-30 Thread Ian Dickinson
That would be great can you please send me your script for reference

Thanks

Ian
On 30 Oct 2014 09:15, diliup gabadamudalige dili...@gmail.com wrote:

 I use py2ex.
 I pack sound, images and fonts as data into py files so that py2exe
 produces only 1 exe file with no other files or folders. workds only
 windows.
 if you like i can send you my py2exe script.


 On Wed, Oct 29, 2014 at 11:12 PM, Ian Dickinson ianldickinso...@gmail.com
  wrote:

 Thanks thats great

 On 29 October 2014 16:58, Thomas Kluyver tak...@gmail.com wrote:

 On 29 October 2014 08:14, NuMedia ianldickinso...@gmail.com wrote:

 Can i emulate py2exe for python version 3 and above i also use pygame
 any
 suggestions for a basic staring script would be greatly appreciated


 I'm involved with two projects that do similar things, and work on
 Python 3:

 cx_Freeze (http://cx-freeze.sourceforge.net/ ) works in quite a similar
 way, to produce an executable for your application, along with a set of
 associated files.

 Pynsist (http://pynsist.readthedocs.org/en/latest/ ) is more different:
 it produces a Windows installer that unpacks the Python files onto the
 target user's computer. It's quite new, but there is a pygame example:
 https://github.com/takluyver/pynsist/tree/master/examples/pygame

 Thomas





 --
 Diliup Gabadamudalige

 http://www.diliupg.com
 http://soft.diliupg.com/


 **
 This e-mail is confidential. It may also be legally privileged. If you are
 not the intended recipient or have received it in error, please delete it
 and all copies from your system and notify the sender immediately by return
 e-mail. Any unauthorized reading, reproducing, printing or further
 dissemination of this e-mail or its contents is strictly prohibited and may
 be unlawful. Internet communications cannot be guaranteed to be timely,
 secure, error or virus-free. The sender does not accept liability for any
 errors or omissions.

 **




Re: [pygame] Using sound with python 2.7 and above

2014-10-29 Thread Ian Dickinson
no change it still prints warning



On 29 October 2014 16:43, Alec Bennett wrybr...@gmail.com wrote:

 And if you put that line after the pygame.init() line?



 On Wed, Oct 29, 2014 at 7:37 AM, NuMedia ianldickinso...@gmail.com
 wrote:

 Hi can any one help with this when using python 2.7 and above or 3.X the
 line

  if not pygame.mixer:
 print 'Warning, sound disabled'

 message gets printed how do i get round this

 thanks NuMedia

 code below


 #--

 import pygame


 #--

 from App_Class import *


 #--

 def main():

   if not pygame.mixer:
 print 'Warning, sound disabled'

   pygame.init()

   app = AppClass ()

   app.run ()


 #--

 #this calls the 'main' function when this script is executed
 if __name__ == '__main__': main()


 #--



 --
 View this message in context:
 http://pygame-users.25799.x6.nabble.com/Using-sound-with-python-2-7-and-above-tp1492.html
 Sent from the pygame-users mailing list archive at Nabble.com.





Re: [pygame] emulating /replacing py2exe for pygame projects using python 3 and abore

2014-10-29 Thread Ian Dickinson
Thanks thats great

On 29 October 2014 16:58, Thomas Kluyver tak...@gmail.com wrote:

 On 29 October 2014 08:14, NuMedia ianldickinso...@gmail.com wrote:

 Can i emulate py2exe for python version 3 and above i also use pygame any
 suggestions for a basic staring script would be greatly appreciated


 I'm involved with two projects that do similar things, and work on Python
 3:

 cx_Freeze (http://cx-freeze.sourceforge.net/ ) works in quite a similar
 way, to produce an executable for your application, along with a set of
 associated files.

 Pynsist (http://pynsist.readthedocs.org/en/latest/ ) is more different:
 it produces a Windows installer that unpacks the Python files onto the
 target user's computer. It's quite new, but there is a pygame example:
 https://github.com/takluyver/pynsist/tree/master/examples/pygame

 Thomas