Re: 2 questions about python

2019-04-17 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: 2 questions about python When you way you want the sound to play automatically, under what circumstances do you want it to play? As the code is written, whenever the main loop checks for an event it will play the sound. Judging by the name of the sound file is it safe to assume your

Re: 2 questions about python

2019-04-17 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python import pygame   from pygame import mixerimport sysdef intro():    pygame.init()    mixer.init()window = pygame.display.set_mode([800, 400])pygame.mixer.init(44100, -16,2,2048)sound = pygame.mixer.Sound('sons\intro.ogg')while True:    for event

Re: 2 questions about python

2019-04-16 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: 2 questions about python The example provided should only play the sound when the space bar is pressed. If you've altered the code for another purpose, it would help to share that code to better troubleshoot the issue. URL: https://forum.audiogames.net/post/427277/#p427277

Re: 2 questions about python

2019-04-16 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python Hello guys! I am trying to play a sound automatically and when I press enter it stops.  What I was able to do was reproduce the sound, but every key that I pressed it playdd the sound again. Anyone have any tips? I followed the help of post 7. URL: https

Re: 2 questions about python

2019-04-12 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: 2 questions about python @10, your second question has a solution but it is a bit advanced. Here's how you do that though:The sys function has a variable, excepthook, which defines what the application will do when an exception is thrown and not caught by any try blocks in the program

Re: 2 questions about python

2019-04-12 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python Hello guys!Two more questions:1: I installed visual studio 2019 code, python 3.7 and python extension.When I try to run some code, it does not show the python interpreter in the list that opens.How to correct this?2: When writing some program even with errors

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python is there any way to, when I'm programming in notepad ++ and want to run the code in python, I press a key and it does?I tried to search but the solution I found did not work URL: https://forum.audiogames.net/post/425739/#p425739 -- Audiogames-reflector

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python thank you!it's working! URL: https://forum.audiogames.net/post/425738/#p425738 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: 2 questions about python Type "pip3 install pygame" on the command line. Then in the python shell type:import pygame pygame.version.verThat should tell you the pygame version, if installed correctly. Note that python IDLE doesn't play nice with screen readers, but you can us

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python Hello guys!I'm trying to install pygame from python shell, but it does not install.Anyone have any tips?I have python 3.7.3 URL: https://forum.audiogames.net/post/425705/#p425705 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : keithwipf1 via Audiogames-reflector
Re: 2 questions about python Open python shell and type:import pygameIf you get an error then it didn't install.If it says hello from the Pygame comunity then it works. URL: https://forum.audiogames.net/post/425689/#p425689 -- Audiogames-reflector mailing list Audiogames-reflector

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector
Re: 2 questions about python If you google pygame, you will find its homepage. From there you should  easily find the getting started section. There under the installation heading you will get instructions for installation as well as info on how to check if pygame is successfully

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
Re: 2 questions about python one other question:I installed pygame using its installer, but I do not know if it worked.How can I check? URL: https://forum.audiogames.net/post/425633/#p425633 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : tabutcu via Audiogames-reflector
Re: 2 questions about python Hi there.As I look your code, I find a error.You should put a comma when you type "The sum of 5+10 is", so your code should be looks like that:print("The sum of 5+10 is", calc) URL: https://forum.audiogames.net/post/425538/#p425538 --

Re: 2 questions about python

2019-04-08 Thread AudioGames . net Forum — Developers room : tabutcu via Audiogames-reflector
Re: 2 questions about python Hi there.AsI look to the code, there's a errorYou should put a comma after you say "the sum of 5+10 is" so you should do that print code like that:print("The sum of 5+10 is", calc) URL: https://forum.audiogames.net/post/425537/#p42553

2 questions about python

2019-04-07 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
2 questions about python Hello guys!I have two questions:1: How can I define so that when I press a key the interpreter is opened and the program is executed?2: Here is a sample code.I would like to join the text with a variable.print("hello!")calc=5+10print("the sum of 5 +

2 questions about python

2019-04-07 Thread AudioGames . net Forum — Developers room : Diego via Audiogames-reflector
2 questions about python Hello guys!I have two questions:1: How can I define so that when I press a key in notepad++, the interpreter is opened and the program is executed?2: Here is a sample code.I would like to join the text with a variable.print("hello!")calc=5+10print(&qu