#๐ vscode + making friends app help
54 messages ยท Page 1 of 1 (latest)
@terse otter
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Sry
I will do it now
@delicate flicker i done it
so my problem is
when i run the code
i want it so that when i press show friends images of the friends show up but for some reason when i press show friends it pops up with no such path
path = 'imgages/' # folder that has all the images
is your folder really called imgages?
its called images
well in the code you just pasted you spelled it imgages
try using print() to debug
do i just type it into the command line?
if it says no such path, you want to try to print out whatever the path variable is just before the error
so you can look it over carefully
no, you'd put it in a line of code just before when the error occurs
oh ok
if i wanted to decrease the size of the images
what line of code would i put it in
adjust*
you can see the else only happens if its an invalid path, because the line 41 if failed
so you could put a print(path) at line 40, and look carefully to check if your computer has gone crazy (not likely) or if there's some mistake in the path
oh ok i get it tysm
last question
if i wanted to change the image size
would it be line
most tk things are in a tree
its probably a property of friendPhoto = PhotoImage(file=ItemLoc) photoimage
or maybe you can resize the encapsulating button
ok let me try
Case Study: IDLE Modernization: Part of a Modern Tk Tutorial for Python, Tcl, Ruby, and Perl
that seems to suggest it has height and width property
i dont get it
what do i do with that?
@delicate flicker another question
if i wanted the pictures to go across rather then going down
how would i adjust my code?
can someone @ me when u help me out pls
So I want the pictures to go across nd not down
update:
i got my pictures across
but then the text so where it says the name then Btn it didnt go across with it
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.