Why does my Messaging Menu code not work when split into functions?
- by fluteflute
Below are two python programs. They're exactly the same, except for one is split into two functions. However only the one that's split into two functions doesn't work - the second function doesn't work. Why would this be?
Note the code is taken from this useful blog post.
Without functions (works):
import gtk
def show_window_function(x, y):
…