#๐Ÿ”’ vscode + making friends app help

54 messages ยท Page 1 of 1 (latest)

echo palmBOT
#

@terse otter

Python help channel opened

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.

delicate flicker
#

bro don't screenshot code ๐Ÿ˜‚

#

!paste

echo palmBOT
#
Pasting large amounts of code

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.

terse otter
#

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

delicate flicker
#

path = 'imgages/' # folder that has all the images

#

is your folder really called imgages?

terse otter
#

its called images

delicate flicker
#

well in the code you just pasted you spelled it imgages

terse otter
#

hold on

#

๐Ÿคฆโ€โ™‚๏ธ

#

really done that to myself

#

i applogise

#

tysm ๐Ÿ˜‚

delicate flicker
#

try using print() to debug

terse otter
#

do i just type it into the command line?

delicate flicker
#

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

terse otter
#

oh ok

#

if i wanted to decrease the size of the images

#

what line of code would i put it in

#

adjust*

delicate flicker
#

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

terse otter
#

oh ok i get it tysm

#

last question

#

if i wanted to change the image size

#

would it be line

delicate flicker
#

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

terse otter
#

ok let me try

delicate flicker
#

that seems to suggest it has height and width property

terse otter
#

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

terse otter
#

update:

#

i got my pictures across

#

but then the text so where it says the name then Btn it didnt go across with it

echo palmBOT
#
Python help channel closed

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.