Python Forum
I think this is a problem with returning? maby?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I think this is a problem with returning? maby?
#6
Sorry forgot to look at your imports.
startbuttonstuff = Menues.Menues()

Example
class A:
    def __init__(self):
        print('init')

    def __call__(self):
        print('call')

a = A() # __init__
a() # __call__

python let you unpacked.
bxp = startbuttonstuff[0]
    byp = startbuttonstuff[1]
    bxw = startbuttonstuff[2]
    byw = startbuttonstuff[3]
also could do this.
bxy, byp, bxw, byw = startbuttonstuff[0:4]
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
RE: I think this is a problem with returning? maby? - by Windspar - Aug-16-2018, 08:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem returning values Naito 7 3,981 Jan-19-2019, 08:21 PM
Last Post: Naito

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020