Sep-02-2017, 01:15 PM
my question here: Hi all! In my project, every time I load a music or an image it drops in my directory "Telechargements". But I should like it drops in my project. What shall I do ? Thanks
How to transfer a music file, from "Telechargements" into my project
|
Sep-02-2017, 01:15 PM
my question here: Hi all! In my project, every time I load a music or an image it drops in my directory "Telechargements". But I should like it drops in my project. What shall I do ? Thanks
Sep-02-2017, 01:20 PM
(This post was last modified: Sep-02-2017, 01:21 PM by sparkz_alot.)
(Sep-02-2017, 01:15 PM)sylas Wrote: What shall I do ? Thou shalt post thy code that thee has so far.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch" Python 3.6.5, IDE: PyCharm 2018 Community Edition
Not correct image.
Sep-02-2017, 03:22 PM
That's not code!
Sep-02-2017, 04:41 PM
The picture is not complete.
Please post code as text and not encoded in base64 as picture where more of the half data is missing because the message is too long.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Sep-02-2017, 05:14 PM
I am on a project(game) with about 40 files. As I load a music, I save in the "uploads", but there, it is of no use for me. I must do something to transfer it in my project. Can you help me ? The screenshot was tried in order to show you my project. Within C++ , I knew how to . With our python forum I don't. Thanks for your reply.
Sep-02-2017, 09:27 PM
Quote:save in the "uploads",Since you have some sort of save routine, does it allow you to save to a file on your local computer? If so, save it as a binary file. You can then read it into your program with something like: with open('My_file_name_here', 'rb'), as f: my_picture = f.read() |
|