Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : zywek via Audiogames-reflector
Re: python question Ahh, it looks nice.Thanks. URL: https://forum.audiogames.net/post/554123/#p554123 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question You can write your code like this.  Note that this won't actually run, it's just showing you the idea:import sound import keyboard import player class Game: def __init__(self): self.sound_engine = sound.SoundEngine() self.keyboard

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : zywek via Audiogames-reflector
Re: python question So in your opinion passing something as parameter is enough as I need?I didn't see any code which operate on the same parts of code which is not reinitialized or initialized again, thus duplicated.. URL: https://forum.audiogames.net/post/554111/#p554111

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question Circular imports are bad in any language. Just because you can doesn't mean you should.  Learn to fix this, not how to hack around it.You can do this in something like PHP because PHP doesn't have a proper package system, which introduces other problems.  You can do

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : zywek via Audiogames-reflector
Re: python question I can pass something as parameters, but it's stupit. What is the logical explanation it's not possible in python. I can define something in php, something in c++ and it works. Not in python. URL: https://forum.audiogames.net/post/554069/#p554069 -- Audiogames

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: python question So take those situations as a challenge to find new and more appropriate way to handle those problems instead of solving them with more global variables. URL: https://forum.audiogames.net/post/554053/#p554053 -- Audiogames-reflector mailing list Audiogames

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : zywek via Audiogames-reflector
Re: python question I'm not importing gettext as the first module, I'm installing language and then defining a _ variable and it works as i wrote in first post.So I don't know, what i'm doing wrong. Sometimes I need to import file which contains variables, which have to be available in all

Re: python question

2020-07-20 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: python question You can actually do the same thing gettext does, you can define something that will be globally available to all your submodules, theoretically. It is possible, but not just bad coding style, but, als Camlorn already said, its most likely to cause problems later

Re: python question

2020-07-19 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question You can't do what gettext does.  It's also not doing what you think.  I would have trouble explaining how this is possible to an experienced Python programmer, but it's not making a global variable.The manual for gettext doesn't assign to _ and tells you to call

Re: python question

2020-07-19 Thread AudioGames . net Forum — Developers room : zywek via Audiogames-reflector
Re: python question So only gettext can do this magic thinks? Or can i define variables available in all submodules without importing anything? URL: https://forum.audiogames.net/post/553880/#p553880 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com

Re: python question

2020-07-19 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question I had to look this up, so congratulations on stumping me.  Gettext can do some magic stuff that lets it hook into things you should never hook into.  Don't try to duplicate it, it's very bad practice and will likely lead to bugs, and I can't even find complete

python question

2020-07-19 Thread AudioGames . net Forum — Developers room : zywek via Audiogames-reflector
python question Hello. I have a question.When i define_ = gettext.gettextin main.py, so I can use _("Text to translate") in all imported submodules without importing gettext in each other.But when I definep = lucia.audio_backend.SoundPool()i have to import p from globals or some

Re: Image Module In python Question

2020-05-11 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Image Module In python Question The declarations may be case sensitive, so you may need to import PIL in all caps, Image with a capitol I, etc. From the examples the declarations of opening a file would look like this:from PIL import Image img = Image.open("your_image.jpg"

Image Module In python Question

2020-05-11 Thread AudioGames . net Forum — Developers room : Thatguy via Audiogames-reflector
Image Module In python Question Hey everybody:Recently, I have been experiencing a lot of difficulty with python's pil library. I'm just really not sure why it's not working like it should. Here's what's up.So I try to import pil by typing:import pilBut apparently there is no module called

Re: python question

2020-03-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question Also if you don't launch it from a command prompt but instead by clicking on the file, and if the text finishes writing before your screen reader can see that window, it won't autoread there either unless the program prints more text because the screen reader hasn't

Re: python question

2020-03-05 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: python question Hit NVDA + 5 and make sure speak dynamic content changes is on URL: https://forum.audiogames.net/post/506444/#p506444 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: python question

2020-03-05 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: python question @5 I myself use WXPython. Do *not* use TKinter, it is not accessible, but wxpython works fine for me URL: https://forum.audiogames.net/post/506436/#p506436 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : arturminyazev via Audiogames-reflector
Re: python question helloi solved the problem, i started saving files in utf8 encoding.but i have an other problem: when i'm opening programs, nvda reads c:\path_to_python\python.exe terminal, and nothing else, and i must use num7 and num9 to read whats written here URL: https

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : arturminyazev via Audiogames-reflector
Re: python question helloi solved the problem, i started saving files in utf8 encoding. URL: https://forum.audiogames.net/post/506399/#p506399 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question @7Interesting; I've never seen that particular issue. I believe if you use CFFI or Cython this is solved for you, because Python passes the right flags to LoadLibraryEx when loading C extension modules though.  I could be wrong, but I've done stuff with dlls before (i.e

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question @7Interesting; I've never seen that particular issue. I believe if you use CFFI or Cython this is solved for you, because Python passes the right flags to LoadLibraryEx when loading C extension modules though.  I could be wrong, but I've done stuff with dlls before (i.e

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: python question @4, not true at all. Python file association comes in very handy.If I have a module that uses a DLL within my directory, typing "python script.py" will raise an error saying that the DLL cannot be found. However, typing "script.py" gets rid of th

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question @5I don't know anything about easygui but NVDA is using WXPhoenix.  If you want more info than that I suggest a separate thread. URL: https://forum.audiogames.net/post/506178/#p506178 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
Re: python question Hello to all. I take advantage of the post to ask a question about Python and graphical interfaces. Can anyone point me to a way to develop accessible graphical interfaces? Somewhere I read that with easygui you can do it, but how?Thank you. URL: https

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: python question First: I'm assuming that you're talking about clicking on your .py files, not python.exe itself.  If Python.exe itself is immediately closing you have a different class of problem.You need to open a command prompt and run Python from there.  Python myfile.py.  If Python

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
Re: python question Is it python 2 or 3 on the school computers? That does make a difference, especially if it's a console app or uses lots of older libsIf it's console, print "Hello world!"becomes print("Hello world!")andname = raw_input("Type your name.")be

Re: python question

2020-03-04 Thread AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
Re: python question Hi, you probably have version 2.7 on one computer and the latest version on the other? Because if so, some instructions change. For example:Python 2.7print "Hello!"Version 3 or higherprint ("Hello!")That is, from version 3, brackets must also be ins

python question

2020-03-04 Thread AudioGames . net Forum — Developers room : arturminyazev via Audiogames-reflector
python question helloi'm beginner at programming, i started learning python at school 2 weeks ago, and on school's computers i wrote some symple  programs, and it works fine, but i can't launch it on my laptop, i installed latest python release, and, the program immediately closes, when

Re: newbie python question

2019-11-20 Thread AudioGames . net Forum — Developers room : jfayre via Audiogames-reflector
Re: newbie python question Ok, can anyone give me an idea how to use the timer in Lucia? I can import it, but can't figure out how to actually start an instance of a timer. There doesn't seem to be any documentation for the timer utility. URL: https://forum.audiogames.net/post/478501

Re: newbie python question

2019-11-20 Thread AudioGames . net Forum — Developers room : jfayre via Audiogames-reflector
Re: newbie python question Brilliant! I actually didn't know about Lucia. I'm downloading it now. This might do exactly what I need. URL: https://forum.audiogames.net/post/478472/#p478472 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: newbie python question

2019-11-20 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: newbie python question Number two's approach would work, but there is an easier way of doing it, at least for me. If you haven't heard, an engine called Lucia has made it's appearance on the forum. The engine offers both speech and timer capabilities, though speech uses

Re: newbie python question

2019-11-20 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: newbie python question Easy solution. Just use one and the same single-threaded loop for your checks/message output and don't use an actual sleep command. You just have two variables which contain the time you want to check next:import time def main(): next_check_flaps = time.time

newbie python question

2019-11-20 Thread AudioGames . net Forum — Developers room : jfayre via Audiogames-reflector
newbie python question Hi all,I am very new to coding in Python, so I apologize if my questions are extremely obvious.For the past few months, I've been working on a python script which interfaces with Microsoft Flight Simulator or Prepar3d. The add-on tells you the nearest city to your

Re: python question related to ren'py

2018-12-15 Thread AudioGames . net Forum — Developers room : zenothrax via Audiogames-reflector
Re: python question related to ren'py Better ask on the renpy forums. Never used it. URL: http://forum.audiogames.net/post/398896/#p398896 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

python question related to ren'py

2018-12-06 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
python question related to ren'py hi all, my question is reelly short and simple:for those of you who knows ren'py, and used it with python before, I already know how to create a variable in python with ren'py. but after creating and manapulating the variable from the python block, how can

Re: Python question

2016-06-28 Thread AudioGames . net Forum — Off-topic room : magurp244 via Audiogames-reflector
Re: Python question The 64bit 2.7 version is here. URL: http://forum.audiogames.net/viewtopic.php?pid=266220#p266220 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi

Re: Python question

2016-06-28 Thread AudioGames . net Forum — Off-topic room : leibylucwgamer via Audiogames-reflector
Re: Python question @magurp244,THe Pywin32 installer only works with Python 3.5.  Is there a version that supports 2.7?Luke URL: http://forum.audiogames.net/viewtopic.php?pid=266201#p266201 ___ Audiogames-reflector mailing list Audiogames

Re: Python question

2016-06-24 Thread AudioGames . net Forum — Off-topic room : kaigoku via Audiogames-reflector
Re: Python question These are the basic instructions to run your Python script:1. In Windows, type Windows plus R for the Run Dialogue.2. In Windows, type "cmd" for the command line interface.3. In most operating systems, if environment variables are properly set, you can ty

Re: Python question

2016-06-22 Thread AudioGames . net Forum — Off-topic room : wanderer via Audiogames-reflector
Re: Python question Either run it from the Windows console like this:py Or use the interactive prompt, which you can either access from the start menu, or, as of python 3.something, just type "python" from anywhere in a console window. Personally I think IDEs are kind of

Re: Python question

2016-06-22 Thread AudioGames . net Forum — Off-topic room : magurp244 via Audiogames-reflector
Re: Python question Hm, I think this post may belong in the developer section, heh.Anyway, the default interpreter that comes with python called IDLE doesn't really play nice with screen readers unfortunately. There are other developers here who usually use either notepad or the command

Python question

2016-06-22 Thread AudioGames . net Forum — Off-topic room : leibylucwgamer via Audiogames-reflector
Python question Hi all:For those of you who have experience with this, I'm wondering how to use the Python interpreter from python.org.  I'm learning to code with Python, and am looking for a way to test some code offline.I'm obviously a noob at this, so I'm sorry if my terminology

Re: python question

2015-10-14 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: python question Is python installed? because you should be typing:python setup.py install URL: http://forum.audiogames.net/viewtopic.php?pid=234853#p234853 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: python question

2015-10-14 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
Re: python question No, It didn't work.Command: Path c:\pyaudiogame0.04\pyaudiogame0.04Setup.py installResult: Error package directory pyaudiogame doesn't exist.I've changed the name of the directory to pyaudiogame, but it doesn't work.What should I do now? And Is there any way to create

Re: python question

2015-10-14 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
Re: python question Yes, I'm using python 3.5.0. And python setup.py install works, but the problem is, It can't detect the correct directory. URL: http://forum.audiogames.net/viewtopic.php?pid=234869#p234869 ___ Audiogames-reflector

Re: python question

2015-10-14 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: python question Yes of coarse. You just need to create an iterator and assign it to move forward and back when the correct keys are pressed. Then when you hit enter, a callback function runs.accessible_output2 is the package that makes the speech.http://hg.q-continuum.net

Re: python question

2015-10-13 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: python question You should be putting everything into C:\users\yourname\someFolderNameor c:\SomeFolderNameBecause1. python doesn't like names with spaces and2. anything in program files won't work.Panda3d is active and so is pyglet URL: http://forum.audiogames.net/viewtopic.php?pid

Re: python question

2015-10-08 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector
Re: python question Firstly you may not want to store that in the temp directory; Those files get deleted. URL: http://forum.audiogames.net/viewtopic.php?pid=234269#p234269 ___ Audiogames-reflector mailing list Audiogames-reflector

Re: python question

2015-10-08 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
Re: python question HiFirst, python setup.py install doesn't work. So I typed this.Path c:\temp\pyaudiogame-0.04\pyaudiogame-0.04Then, I typed setup.py install.But it couldn't detect the pyaudiogame directory.But I've installed all the requirements using this method. What should I do next

Re: python question

2015-10-08 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
Re: python question No, I've created a new folder called temp. So it's not an actual temp directory. URL: http://forum.audiogames.net/viewtopic.php?pid=234327#p234327 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: python question

2015-10-08 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
Re: python question HiOne more question. How can I allow command line to acces everything I want? When I attempt to install something, It sometimes displays a permission error. I'm using the admin account in my windows, And I have only 1 account. What should I do?Thanks URL: http

Re: python question

2015-10-07 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: python question pyaudiogame comes with a prebuilt python installed, so you should use that. Otherwise:You don't do anything with the folder. You download the zip file, unzip it, go into the requirements folder, and go into each folder in there. While you are in the folder where each

Re: python question

2015-10-05 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
Re: python question HiSo I solved the problem, but I've encountered another problem.When I run the setup.py install, It doesn't detect the pyaudiogame directory, So I got this error.Error packige directory pyaudiogame does not exist.I've extracted the pyaudiogame and I've set path

Re: python question

2015-10-05 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: python question If you are in the correct directory, and you have the file association that runs .py files with python, try:setup.py installI haven't tried pyaudiogame, but this usually works. URL: http://forum.audiogames.net/viewtopic.php?pid=233833#p233833

python question

2015-10-04 Thread AudioGames . net Forum — Developers room : momo7807 via Audiogames-reflector
python question Hi all.So I want to start very basic of python, but I don't know how to install pyaudiogame.I typed python setup.py install but python couldn't find the setup.py file. what should I do?Thanks URL: http://forum.audiogames.net/viewtopic.php?pid=233828#p233828