[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Classless Utilities?




> or have the function be free-standing so it can be called from anywhere.

Actually, if you desire, you can assign a function to a button via assignment.

PSEUDO:

def Beep():
     Jukebox.beepsound.play ()

beep_button = Button()

beep_button.>
Of course, that's probably not how you'd use it, but just a kind of indication of hooking up GUI objects to their functions.

--
Andrew Ulysses Baker
"failrate"