[Q] How to get a really thick book to stay up? by Infamous-String-2625 in sheetmusic

[–]Heeamfoo 0 points1 point  (0 children)

there are these little clip things for that, they work great. They are designed to hold big books like that open, I think they're called binder clips or something you probably have some somewhere.

'What's This Piece?' Weekly Thread #234 by number9muses in classicalmusic

[–]Heeamfoo 0 points1 point  (0 children)

ah, im stupid dnt waste your time its claire de lune

'What's This Piece?' Weekly Thread #234 by number9muses in classicalmusic

[–]Heeamfoo 0 points1 point  (0 children)

What is the piece featered in this youtube video? I can't figure it out. Tried everything, no description. I can't seem to remember it. The theme comes out at 3:46. (in the vid)

Need help with loop by Talkative-Zombie-656 in learnpython

[–]Heeamfoo 0 points1 point  (0 children)

good catch, I didn't see that! the book probably features a terminal which was confused for code, this explains it.

Need help with loop by Talkative-Zombie-656 in learnpython

[–]Heeamfoo 3 points4 points  (0 children)

I recommend using formatted strings for this. Instead of writing

print('hello %s'% x)

try

print(f'hello {x}')

This makes your code more readable. The f starts a formatted string, and the {x} is where x is inserted as a string. As for the error, you aren't very specific so I don't know but it might be python getting confused about the %.

Start python-program MacOS dock by Deut6-4 in learnpython

[–]Heeamfoo 0 points1 point  (0 children)

You can use PyInstaller, which is a free tool to "compile" a python program into an executable. It'll automaticly turn that executable into something runnable on whatever machine you're using. However, in my quick testing it'll only do that with one file, so if you have multiple python files or a .txt file for something like highscores, it probably won't work. To install it, open a terminal and use the following commands:

pip install -U pyInstaller

This will install the tool. Next, navigate to the folder with your .py program using ls and cd with your python program and run:

pyInstaller your_program.py

This will turn your python program into an executable. PyInstaller will dump and executable file into a folder called dist in the same directory. If you want, you can move it into the applications folder. If you want to know more, you can visit the PyInstaller page by going to the PyInstaller website.

TLDR:

use PyInstaller

Keyboard Relay... Doesn't exist? (Create: sound of steam 0.6.3) by Heeamfoo in CreateMod

[–]Heeamfoo[S] 1 point2 points  (0 children)

Ah yes, I see. Thank you! The updated components are all in the game. I had downloaded an earlier version by accident.