-
Hello! I would like to access
|
Beta Was this translation helpful? Give feedback.
Answered by
Akascape
Nov 4, 2022
Replies: 1 comment 2 replies
-
@Jeymen Don't put the variables in the function as you are not returning any value from it. example: import customtkinter
class Generate(customtkinter.CTk):
allowed_extensions = [
'png',
'jpg',
'PNG',
'JPG',
'jpeg',
'JPEG',
'jfif',
'JFIF',
'webp',
'WEBP',
]
def __init__(self):
self.qr_gen()
def qr_gen(self):
print(self.allowed_extensions)
if __name__ == "__main__":
app = Generate() |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Jeymen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Jeymen Don't put the variables in the function as you are not returning any value from it.
You can put them in the class directly (outside function) so that you can access it easily.
example: